Changeset 38470
- Timestamp:
- 08/31/2016 04:30:48 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 49 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/admin.php
r38411 r38470 51 51 52 52 /** WordPress Administration Screen API */ 53 require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php'); 53 54 require_once(ABSPATH . 'wp-admin/includes/screen.php'); 54 55 … … 60 61 61 62 /** WordPress List Table Administration API and base class */ 63 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php'); 64 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php'); 62 65 require_once(ABSPATH . 'wp-admin/includes/list-table.php'); 63 66 … … 67 70 /** WordPress User Administration API */ 68 71 require_once(ABSPATH . 'wp-admin/includes/user.php'); 72 73 /** WordPress Site Icon API */ 74 require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'); 69 75 70 76 /** WordPress Update Administration API */ -
trunk/src/wp-admin/includes/ajax-actions.php
r38465 r38470 1496 1496 $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; 1497 1497 1498 require(ABSPATH . WPINC . '/class-wp-editor.php'); 1498 1499 $results = _WP_Editors::wp_link_query( $args ); 1499 1500 … … 3116 3117 */ 3117 3118 function wp_ajax_press_this_save_post() { 3119 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); 3118 3120 $wp_press_this = new WP_Press_This(); 3119 3121 $wp_press_this->save_post(); … … 3126 3128 */ 3127 3129 function wp_ajax_press_this_add_category() { 3130 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); 3128 3131 $wp_press_this = new WP_Press_This(); 3129 3132 $wp_press_this->add_category(); … … 3153 3156 switch ( $context ) { 3154 3157 case 'site-icon': 3158 require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php'; 3155 3159 $wp_site_icon = new WP_Site_Icon(); 3156 3160 … … 3301 3305 } 3302 3306 3307 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 3303 3308 include_once( ABSPATH . 'wp-admin/includes/theme.php' ); 3304 3309 … … 3407 3412 } 3408 3413 3414 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 3415 3409 3416 $current = get_site_transient( 'update_themes' ); 3410 3417 if ( empty( $current ) ) { … … 3556 3563 } 3557 3564 3565 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 3558 3566 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); 3559 3567 … … 3663 3671 } 3664 3672 3673 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 3674 3665 3675 wp_update_plugins(); 3666 3676 -
trunk/src/wp-admin/includes/class-ftp.php
r38411 r38470 904 904 } 905 905 906 require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; 907 906 908 if ( $mod_sockets ) { 907 909 class ftp extends ftp_sockets {} -
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r38411 r38470 31 31 $this->errors = new WP_Error(); 32 32 33 // Check if possible to use ftp functions. 34 if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { 35 return; 36 } 33 37 $this->ftp = new ftp(); 34 38 -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r38411 r38470 9 9 * @since 2.8.0 10 10 */ 11 12 /** WP_Upgrader_Skin class */ 13 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php'; 14 15 /** Plugin_Upgrader_Skin class */ 16 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php'; 17 18 /** Theme_Upgrader_Skin class */ 19 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php'; 20 21 /** Bulk_Upgrader_Skin class */ 22 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php'; 23 24 /** Bulk_Plugin_Upgrader_Skin class */ 25 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php'; 26 27 /** Bulk_Theme_Upgrader_Skin class */ 28 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php'; 29 30 /** Plugin_Installer_Skin class */ 31 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php'; 32 33 /** Theme_Installer_Skin class */ 34 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php'; 35 36 /** Language_Pack_Upgrader_Skin class */ 37 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php'; 38 39 /** Automatic_Upgrader_Skin class */ 40 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php'; 41 42 /** WP_Ajax_Upgrader_Skin class */ 43 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php'; 11 44 12 45 /** … … 855 888 856 889 } 890 891 /** Plugin_Upgrader class */ 892 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php'; 893 894 /** Theme_Upgrader class */ 895 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php'; 896 897 /** Language_Pack_Upgrader class */ 898 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php'; 899 900 /** Core_Upgrader class */ 901 require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php'; 902 903 /** File_Upload_Upgrader class */ 904 require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php'; 905 906 /** WP_Automatic_Updater class */ 907 require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php'; -
trunk/src/wp-admin/includes/deprecated.php
r38411 r38470 750 750 static $num = 1; 751 751 752 if ( ! class_exists( '_WP_Editors', false ) ) 753 require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 754 752 755 $editor_id = 'content' . $num++; 753 756 … … 1142 1145 add_filter('update_feedback', $feedback); 1143 1146 1147 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 1144 1148 $upgrader = new Core_Upgrader(); 1145 1149 return $upgrader->upgrade($current); … … 1164 1168 add_filter('update_feedback', $feedback); 1165 1169 1170 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 1166 1171 $upgrader = new Plugin_Upgrader(); 1167 1172 return $upgrader->upgrade($plugin); … … 1185 1190 add_filter('update_feedback', $feedback); 1186 1191 1192 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 1187 1193 $upgrader = new Theme_Upgrader(); 1188 1194 return $upgrader->upgrade($theme); -
trunk/src/wp-admin/includes/file.php
r38411 r38470 738 738 mbstring_binary_safe_encoding(); 739 739 740 require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php'); 741 740 742 $archive = new PclZip($file); 741 743 … … 885 887 global $wp_filesystem; 886 888 889 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php'); 890 887 891 $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership ); 888 892 … … 890 894 return false; 891 895 892 $map = array( 893 'base' => 'WP_Filesystem_Base', 894 'direct' => 'WP_Filesystem_Direct', 895 'ftpext' => 'WP_Filesystem_FTPext', 896 'ftpsockets' => 'WP_Filesystem_ftpsockets', 897 'ssh2' => 'WP_Filesystem_SSH2', 898 ); 899 900 $l = strtolower( $method ); 901 if ( array_key_exists( $l, $map ) ) { 902 $classname = $map[ $l ]; 903 } else { 904 $classname = "WP_Filesystem_{$method}"; 905 } 906 907 if ( ! class_exists( $classname ) ) { 896 if ( ! class_exists( "WP_Filesystem_$method" ) ) { 908 897 909 898 /** … … 919 908 $abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method ); 920 909 921 if ( ! file_exists( $abstraction_file ) ) {910 if ( ! file_exists($abstraction_file) ) 922 911 return; 923 } 924 925 require_once( $abstraction_file );926 }927 928 $wp_filesystem = new $ classname( $args);912 913 require_once($abstraction_file); 914 } 915 $method = "WP_Filesystem_$method"; 916 917 $wp_filesystem = new $method($args); 929 918 930 919 //Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default. -
trunk/src/wp-admin/includes/list-table.php
r38455 r38470 41 41 42 42 if ( isset( $core_classes[ $class ] ) ) { 43 foreach ( (array) $core_classes[ $class ] as $required ) 44 require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' ); 45 43 46 if ( isset( $args['screen'] ) ) 44 47 $args['screen'] = convert_to_screen( $args['screen'] ); -
trunk/src/wp-admin/includes/nav-menu.php
r38411 r38470 7 7 * @since 3.0.0 8 8 */ 9 10 /** Walker_Nav_Menu_Edit class */ 11 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' ); 12 13 /** Walker_Nav_Menu_Checklist class */ 14 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' ); 9 15 10 16 /** -
trunk/src/wp-admin/includes/template.php
r38468 r38470 8 8 * @subpackage Administration 9 9 */ 10 11 /** Walker_Category_Checklist class */ 12 require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' ); 13 14 /** WP_Internal_Pointers class */ 15 require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' ); 10 16 11 17 // -
trunk/src/wp-admin/includes/translation-install.php
r38411 r38470 203 203 $translation = (object) $translation; 204 204 205 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 205 206 $skin = new Automatic_Upgrader_Skin; 206 207 $upgrader = new Language_Pack_Upgrader( $skin ); … … 228 229 } 229 230 231 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 230 232 $skin = new Automatic_Upgrader_Skin; 231 233 $upgrader = new Language_Pack_Upgrader( $skin ); -
trunk/src/wp-admin/includes/update.php
r38411 r38470 74 74 if ( ! $updates || empty( $updates->updates ) ) 75 75 return false; 76 77 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 76 78 77 79 $auto_update = false; -
trunk/src/wp-admin/install.php
r38411 r38470 41 41 /** Load WordPress Translation Install API */ 42 42 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 43 44 /** Load wpdb */ 45 require_once( ABSPATH . WPINC . '/wp-db.php' ); 43 46 44 47 nocache_headers(); -
trunk/src/wp-admin/load-scripts.php
r38412 r38470 25 25 exit; 26 26 27 require( ABSPATH . 'wp-vendor/autoload_52.php' );28 27 require( ABSPATH . 'wp-admin/includes/noop.php' ); 29 28 require( ABSPATH . WPINC . '/script-loader.php' ); -
trunk/src/wp-admin/load-styles.php
r38412 r38470 15 15 define( 'WPINC', 'wp-includes' ); 16 16 17 require( ABSPATH . 'wp-vendor/autoload_52.php' );18 17 require( ABSPATH . 'wp-admin/includes/noop.php' ); 19 18 require( ABSPATH . WPINC . '/script-loader.php' ); -
trunk/src/wp-admin/press-this.php
r38466 r38470 20 20 } 21 21 22 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); 22 23 $wp_press_this = new WP_Press_This(); 23 24 $wp_press_this->html(); -
trunk/src/wp-admin/update-core.php
r38459 r38470 165 165 166 166 if ( wp_http_supports( array( 'ssl' ) ) ) { 167 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 167 168 $upgrader = new WP_Automatic_Updater; 168 169 $future_minor_update = (object) array( … … 188 189 189 190 if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) { 191 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 190 192 $upgrader = new WP_Automatic_Updater; 191 193 if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) { … … 433 435 global $wp_filesystem; 434 436 437 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 438 435 439 if ( $reinstall ) 436 440 $url = 'update-core.php?action=do-core-reinstall'; … … 703 707 704 708 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 709 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 705 710 706 711 $url = 'update-core.php?action=do-translation-upgrade'; -
trunk/src/wp-admin/update.php
r38411 r38470 12 12 /** WordPress Administration Bootstrap */ 13 13 require_once( dirname( __FILE__ ) . '/admin.php' ); 14 15 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); 14 16 15 17 if ( isset($_GET['action']) ) { … … 217 219 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 218 220 221 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api.. 222 219 223 check_admin_referer( 'install-theme_' . $theme ); 220 224 $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth. -
trunk/src/wp-includes/admin-bar.php
r38411 r38470 24 24 global $wp_admin_bar; 25 25 26 if ( ! is_admin_bar_showing() ) {26 if ( ! is_admin_bar_showing() ) 27 27 return false; 28 } 28 29 /* Load the admin bar class code ready for instantiation */ 30 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' ); 29 31 30 32 /* Instantiate the admin bar */ … … 38 40 */ 39 41 $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' ); 40 if ( class_exists( $admin_bar_class ) ) {42 if ( class_exists( $admin_bar_class ) ) 41 43 $wp_admin_bar = new $admin_bar_class; 42 } else {44 else 43 45 return false; 44 } 46 45 47 $wp_admin_bar->initialize(); 46 48 $wp_admin_bar->add_menus(); … … 293 295 294 296 if ( is_network_admin() ) { 295 /* translators: %s: site name */ 297 /* translators: %s: site name */ 296 298 $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); 297 299 } elseif ( is_user_admin() ) { 298 /* translators: %s: site name */ 300 /* translators: %s: site name */ 299 301 $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); 300 302 } -
trunk/src/wp-includes/class-IXR.php
r38411 r38470 39 39 * @license http://www.opensource.org/licenses/bsd-license.php BSD 40 40 */ 41 42 require_once( ABSPATH . WPINC . '/IXR/class-IXR-server.php' ); 43 44 require_once( ABSPATH . WPINC . '/IXR/class-IXR-base64.php' ); 45 46 require_once( ABSPATH . WPINC . '/IXR/class-IXR-client.php' ); 47 48 require_once( ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php' ); 49 50 require_once( ABSPATH . WPINC . '/IXR/class-IXR-date.php' ); 51 52 require_once( ABSPATH . WPINC . '/IXR/class-IXR-error.php' ); 53 54 require_once( ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php' ); 55 56 require_once( ABSPATH . WPINC . '/IXR/class-IXR-message.php' ); 57 58 require_once( ABSPATH . WPINC . '/IXR/class-IXR-request.php' ); 59 60 require_once( ABSPATH . WPINC . '/IXR/class-IXR-value.php' ); -
trunk/src/wp-includes/class-http.php
r38459 r38470 8 8 */ 9 9 10 if ( ! class_exists( 'Requests' , false) ) {10 if ( ! class_exists( 'Requests' ) ) { 11 11 require( ABSPATH . WPINC . '/class-requests.php' ); 12 12 -
trunk/src/wp-includes/class-phpmailer.php
r38411 r38470 1386 1386 { 1387 1387 if (!is_object($this->smtp)) { 1388 require_once( 'class-smtp.php' ); 1388 1389 $this->smtp = new SMTP; 1389 1390 } -
trunk/src/wp-includes/class-wp-customize-control.php
r38411 r38470 599 599 600 600 } 601 602 /** WP_Customize_Color_Control class */ 603 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' ); 604 605 /** WP_Customize_Media_Control class */ 606 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' ); 607 608 /** WP_Customize_Upload_Control class */ 609 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' ); 610 611 /** WP_Customize_Image_Control class */ 612 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' ); 613 614 /** WP_Customize_Background_Image_Control class */ 615 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' ); 616 617 /** WP_Customize_Cropped_Image_Control class */ 618 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' ); 619 620 /** WP_Customize_Site_Icon_Control class */ 621 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' ); 622 623 /** WP_Customize_Header_Image_Control class */ 624 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' ); 625 626 /** WP_Customize_Theme_Control class */ 627 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' ); 628 629 /** WP_Widget_Area_Customize_Control class */ 630 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' ); 631 632 /** WP_Widget_Form_Customize_Control class */ 633 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' ); 634 635 /** WP_Customize_Nav_Menu_Control class */ 636 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' ); 637 638 /** WP_Customize_Nav_Menu_Item_Control class */ 639 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' ); 640 641 /** WP_Customize_Nav_Menu_Location_Control class */ 642 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' ); 643 644 /** WP_Customize_Nav_Menu_Name_Control class */ 645 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' ); 646 647 /** WP_Customize_Nav_Menu_Auto_Add_Control class */ 648 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' ); 649 650 /** WP_Customize_New_Menu_Control class */ 651 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' ); -
trunk/src/wp-includes/class-wp-customize-manager.php
r38411 r38470 206 206 */ 207 207 public function __construct() { 208 require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' ); 209 require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' ); 210 require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' ); 211 require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' ); 212 213 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' ); 214 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' ); 215 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' ); 216 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' ); 217 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' ); 218 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' ); 219 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' ); 220 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' ); 221 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' ); 222 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' ); 223 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' ); 224 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' ); 225 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' ); 226 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' ); 227 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' ); 228 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' ); 229 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' ); 230 231 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' ); 232 233 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' ); 234 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' ); 235 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' ); 236 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' ); 237 238 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' ); 239 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' ); 240 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' ); 241 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' ); 242 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' ); 243 208 244 /** 209 245 * Filters the core Customizer components to load. … … 223 259 $components = apply_filters( 'customize_loaded_components', $this->components, $this ); 224 260 261 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' ); 225 262 $this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); 226 263 227 264 if ( in_array( 'widgets', $components, true ) ) { 265 require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); 228 266 $this->widgets = new WP_Customize_Widgets( $this ); 229 267 } 230 268 231 269 if ( in_array( 'nav_menus', $components, true ) ) { 270 require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); 232 271 $this->nav_menus = new WP_Customize_Nav_Menus( $this ); 233 272 } -
trunk/src/wp-includes/class-wp-customize-panel.php
r38411 r38470 385 385 } 386 386 } 387 388 /** WP_Customize_Nav_Menus_Panel class */ 389 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' ); -
trunk/src/wp-includes/class-wp-customize-section.php
r38411 r38470 374 374 } 375 375 } 376 377 /** WP_Customize_Themes_Section class */ 378 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' ); 379 380 /** WP_Customize_Sidebar_Section class */ 381 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' ); 382 383 /** WP_Customize_Nav_Menu_Section class */ 384 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' ); 385 386 /** WP_Customize_New_Menu_Section class */ 387 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' ); -
trunk/src/wp-includes/class-wp-customize-setting.php
r38436 r38470 896 896 } 897 897 } 898 899 /** WP_Customize_Filter_Setting class */ 900 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' ); 901 902 /** WP_Customize_Header_Image_Setting class */ 903 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' ); 904 905 /** WP_Customize_Background_Image_Setting class */ 906 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' ); 907 908 /** WP_Customize_Nav_Menu_Item_Setting class */ 909 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' ); 910 911 /** WP_Customize_Nav_Menu_Setting class */ 912 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' ); -
trunk/src/wp-includes/comment.php
r38459 r38470 2367 2367 */ 2368 2368 function pingback($content, $post_ID) { 2369 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 2370 include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' ); 2371 2369 2372 // original code by Mort (http://mort.mine.nu:8080) 2370 2373 $post_links = array(); … … 2505 2508 */ 2506 2509 function weblog_ping($server = '', $path = '') { 2510 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 2511 include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' ); 2512 2507 2513 // using a timeout of 3 seconds should be enough to cover slow servers 2508 2514 $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); -
trunk/src/wp-includes/customize/class-wp-customize-selective-refresh.php
r38411 r38470 68 68 public function __construct( WP_Customize_Manager $manager ) { 69 69 $this->manager = $manager; 70 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-partial.php' ); 70 71 71 72 add_action( 'customize_preview_init', array( $this, 'init_preview' ) ); -
trunk/src/wp-includes/feed.php
r38411 r38470 668 668 } 669 669 670 require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' ); 671 require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' ); 672 require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' ); 673 require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' ); 674 670 675 $feed = new SimplePie(); 671 676 -
trunk/src/wp-includes/functions.php
r38469 r38470 564 564 565 565 //TODO: Tidy this ghetto code up and make the debug code optional 566 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 567 566 568 $post_links = array(); 567 569 … … 2864 2866 * @access private 2865 2867 * 2866 * @param string $message Error message. 2867 * @param string $title Optional. Error title (unused). Default empty. 2868 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 2869 */ 2870 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { 2871 $defaults = array( 2872 'response' => 200, 2873 ); 2874 $r = wp_parse_args( $args, $defaults ); 2875 2876 if ( ! headers_sent() ) { 2877 status_header( $r['response'] ); 2868 * @param string $message Error message. 2869 * @param string $title Optional. Error title (unused). Default empty. 2870 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 2871 */ 2872 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { 2873 $defaults = array( 2874 'response' => 200, 2875 ); 2876 $r = wp_parse_args( $args, $defaults ); 2877 2878 if ( ! headers_sent() ) { 2879 status_header( $r['response'] ); 2878 2880 } 2879 2881 if ( is_scalar( $message ) ) -
trunk/src/wp-includes/general-template.php
r38468 r38470 2981 2981 */ 2982 2982 function wp_editor( $content, $editor_id, $settings = array() ) { 2983 if ( ! class_exists( '_WP_Editors', false ) ) 2984 require( ABSPATH . WPINC . '/class-wp-editor.php' ); 2983 2985 _WP_Editors::editor($content, $editor_id, $settings); 2984 2986 } -
trunk/src/wp-includes/link-template.php
r38468 r38470 2903 2903 global $is_IE; 2904 2904 2905 include_once( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); 2906 2905 2907 $link = ''; 2906 2908 -
trunk/src/wp-includes/load.php
r38457 r38470 395 395 global $wpdb; 396 396 397 require_once( ABSPATH . WPINC . '/wp-db.php' ); 397 398 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) 398 399 require_once( WP_CONTENT_DIR . '/db.php' ); -
trunk/src/wp-includes/media.php
r38459 r38470 2914 2914 */ 2915 2915 function _wp_image_editor_choose( $args = array() ) { 2916 require_once ABSPATH . WPINC . '/class-wp-image-editor.php'; 2917 require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php'; 2918 require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php'; 2916 2919 /** 2917 2920 * Filters the list of image editing library classes. -
trunk/src/wp-includes/ms-settings.php
r38411 r38470 22 22 */ 23 23 global $current_site, $current_blog; 24 25 /** WP_Network class */ 26 require_once( ABSPATH . WPINC . '/class-wp-network.php' ); 27 28 /** WP_Site class */ 29 require_once( ABSPATH . WPINC . '/class-wp-site.php' ); 24 30 25 31 /** Multisite loader */ -
trunk/src/wp-includes/nav-menu-template.php
r38411 r38470 7 7 * @since 3.0.0 8 8 */ 9 10 /** Walker_Nav_Menu class */ 11 require_once ABSPATH . WPINC . '/class-walker-nav-menu.php'; 9 12 10 13 /** -
trunk/src/wp-includes/pluggable.php
r38421 r38470 212 212 if ( ! ( $phpmailer instanceof PHPMailer ) ) { 213 213 require_once ABSPATH . WPINC . '/class-phpmailer.php'; 214 require_once ABSPATH . WPINC . '/class-smtp.php'; 214 215 $phpmailer = new PHPMailer( true ); 215 216 } -
trunk/src/wp-includes/script-loader.php
r38426 r38470 17 17 */ 18 18 19 /** WordPress Dependency Class */ 20 require( ABSPATH . WPINC . '/class-wp-dependency.php' ); 21 22 /** WordPress Dependencies Class */ 23 require( ABSPATH . WPINC . '/class.wp-dependencies.php' ); 24 25 /** WordPress Scripts Class */ 26 require( ABSPATH . WPINC . '/class.wp-scripts.php' ); 27 19 28 /** WordPress Scripts Functions */ 20 29 require( ABSPATH . WPINC . '/functions.wp-scripts.php' ); 30 31 /** WordPress Styles Class */ 32 require( ABSPATH . WPINC . '/class.wp-styles.php' ); 21 33 22 34 /** WordPress Styles Functions */ -
trunk/src/wp-includes/theme.php
r38411 r38470 1757 1757 1758 1758 if ( is_admin() ) { 1759 require_once( ABSPATH . 'wp-admin/custom-header.php' ); 1759 1760 $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1760 1761 } … … 1769 1770 1770 1771 if ( is_admin() ) { 1772 require_once( ABSPATH . 'wp-admin/custom-background.php' ); 1771 1773 $custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1772 1774 } … … 2081 2083 } 2082 2084 2085 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 2083 2086 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 2084 2087 } -
trunk/src/wp-includes/update.php
r38411 r38470 506 506 function wp_maybe_auto_update() { 507 507 include_once( ABSPATH . '/wp-admin/includes/admin.php' ); 508 include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' ); 508 509 509 510 $upgrader = new WP_Automatic_Updater; -
trunk/src/wp-includes/wp-diff.php
r38411 r38470 17 17 require( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' ); 18 18 } 19 20 require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' ); 21 require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php' ); -
trunk/src/wp-mail.php
r38411 r38470 21 21 */ 22 22 do_action( 'wp-mail.php' ); 23 24 /** Get the POP3 class with which to access the mailbox. */ 25 require_once( ABSPATH . WPINC . '/class-pop3.php' ); 23 26 24 27 /** Only check at this interval for new messages. */ -
trunk/src/wp-settings.php
r38469 r38470 17 17 */ 18 18 define( 'WPINC', 'wp-includes' ); 19 20 // WordPress Core PHP 5.2-compatible Autoloader21 require_once( ABSPATH . 'wp-vendor/autoload_52.php' );22 19 23 20 // Include files required for initialization. … … 96 93 require( ABSPATH . WPINC . '/compat.php' ); 97 94 require( ABSPATH . WPINC . '/functions.php' ); 95 require( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' ); 96 require( ABSPATH . WPINC . '/class-wp.php' ); 97 require( ABSPATH . WPINC . '/class-wp-error.php' ); 98 98 require( ABSPATH . WPINC . '/pomo/mo.php' ); 99 require( ABSPATH . WPINC . '/class-phpass.php' ); 99 100 100 101 // Include the wpdb class and, if present, a db.php database drop-in. … … 114 115 // Initialize multisite if enabled. 115 116 if ( is_multisite() ) { 117 require( ABSPATH . WPINC . '/class-wp-site-query.php' ); 118 require( ABSPATH . WPINC . '/class-wp-network-query.php' ); 116 119 require( ABSPATH . WPINC . '/ms-blogs.php' ); 117 120 require( ABSPATH . WPINC . '/ms-settings.php' ); … … 133 136 134 137 // Load most of WordPress. 138 require( ABSPATH . WPINC . '/class-wp-walker.php' ); 139 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' ); 135 140 require( ABSPATH . WPINC . '/formatting.php' ); 136 141 require( ABSPATH . WPINC . '/capabilities.php' ); 142 require( ABSPATH . WPINC . '/class-wp-roles.php' ); 143 require( ABSPATH . WPINC . '/class-wp-role.php' ); 144 require( ABSPATH . WPINC . '/class-wp-user.php' ); 145 require( ABSPATH . WPINC . '/class-wp-query.php' ); 137 146 require( ABSPATH . WPINC . '/query.php' ); 147 require( ABSPATH . WPINC . '/date.php' ); 138 148 require( ABSPATH . WPINC . '/theme.php' ); 149 require( ABSPATH . WPINC . '/class-wp-theme.php' ); 139 150 require( ABSPATH . WPINC . '/template.php' ); 140 151 require( ABSPATH . WPINC . '/user.php' ); 152 require( ABSPATH . WPINC . '/class-wp-user-query.php' ); 153 require( ABSPATH . WPINC . '/class-wp-session-tokens.php' ); 154 require( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' ); 141 155 require( ABSPATH . WPINC . '/meta.php' ); 156 require( ABSPATH . WPINC . '/class-wp-meta-query.php' ); 157 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' ); 142 158 require( ABSPATH . WPINC . '/general-template.php' ); 143 159 require( ABSPATH . WPINC . '/link-template.php' ); 144 160 require( ABSPATH . WPINC . '/author-template.php' ); 145 161 require( ABSPATH . WPINC . '/post.php' ); 162 require( ABSPATH . WPINC . '/class-walker-page.php' ); 163 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' ); 164 require( ABSPATH . WPINC . '/class-wp-post-type.php' ); 165 require( ABSPATH . WPINC . '/class-wp-post.php' ); 146 166 require( ABSPATH . WPINC . '/post-template.php' ); 147 167 require( ABSPATH . WPINC . '/revision.php' ); … … 149 169 require( ABSPATH . WPINC . '/post-thumbnail-template.php' ); 150 170 require( ABSPATH . WPINC . '/category.php' ); 171 require( ABSPATH . WPINC . '/class-walker-category.php' ); 172 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' ); 151 173 require( ABSPATH . WPINC . '/category-template.php' ); 152 174 require( ABSPATH . WPINC . '/comment.php' ); 175 require( ABSPATH . WPINC . '/class-wp-comment.php' ); 176 require( ABSPATH . WPINC . '/class-wp-comment-query.php' ); 177 require( ABSPATH . WPINC . '/class-walker-comment.php' ); 153 178 require( ABSPATH . WPINC . '/comment-template.php' ); 154 179 require( ABSPATH . WPINC . '/rewrite.php' ); 180 require( ABSPATH . WPINC . '/class-wp-rewrite.php' ); 155 181 require( ABSPATH . WPINC . '/feed.php' ); 156 182 require( ABSPATH . WPINC . '/bookmark.php' ); … … 161 187 require( ABSPATH . WPINC . '/script-loader.php' ); 162 188 require( ABSPATH . WPINC . '/taxonomy.php' ); 189 require( ABSPATH . WPINC . '/class-wp-term.php' ); 190 require( ABSPATH . WPINC . '/class-wp-term-query.php' ); 191 require( ABSPATH . WPINC . '/class-wp-tax-query.php' ); 163 192 require( ABSPATH . WPINC . '/update.php' ); 164 193 require( ABSPATH . WPINC . '/canonical.php' ); 165 194 require( ABSPATH . WPINC . '/shortcodes.php' ); 166 195 require( ABSPATH . WPINC . '/embed.php' ); 196 require( ABSPATH . WPINC . '/class-wp-embed.php' ); 197 require( ABSPATH . WPINC . '/class-oembed.php' ); 198 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' ); 167 199 require( ABSPATH . WPINC . '/media.php' ); 168 200 require( ABSPATH . WPINC . '/http.php' ); 201 require( ABSPATH . WPINC . '/class-http.php' ); 202 require( ABSPATH . WPINC . '/class-wp-http-streams.php' ); 203 require( ABSPATH . WPINC . '/class-wp-http-curl.php' ); 204 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' ); 205 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' ); 206 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' ); 207 require( ABSPATH . WPINC . '/class-wp-http-response.php' ); 208 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' ); 169 209 require( ABSPATH . WPINC . '/widgets.php' ); 210 require( ABSPATH . WPINC . '/class-wp-widget.php' ); 211 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' ); 170 212 require( ABSPATH . WPINC . '/nav-menu.php' ); 171 213 require( ABSPATH . WPINC . '/nav-menu-template.php' ); 172 214 require( ABSPATH . WPINC . '/admin-bar.php' ); 173 215 require( ABSPATH . WPINC . '/rest-api.php' ); 216 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' ); 217 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' ); 218 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' ); 219 require( ABSPATH . WPINC . '/class-wp-locale.php' ); 174 220 175 221 $GLOBALS['wp_embed'] = new WP_Embed(); -
trunk/src/wp-vendor/autoload_52.php
r38411 r38470 5 5 require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php'; 6 6 7 return ComposerAutoloaderInit 1dd196791ebd0cfea0668c22edc062f9::getLoader();7 return ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c::getLoader(); -
trunk/src/wp-vendor/composer/autoload_real_52.php
r38411 r38470 3 3 // autoload_real_52.php generated by xrstf/composer-php52 4 4 5 class ComposerAutoloaderInit 1dd196791ebd0cfea0668c22edc062f9{5 class ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c { 6 6 private static $loader; 7 7 … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit 1dd196791ebd0cfea0668c22edc062f9', 'loadClassLoader'), true /*, true */);22 spl_autoload_register(array('ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c', 'loadClassLoader'), true /*, true */); 23 23 self::$loader = $loader = new xrstf_Composer52_ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit 1dd196791ebd0cfea0668c22edc062f9', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c', 'loadClassLoader')); 25 25 26 26 $vendorDir = dirname(dirname(__FILE__)); -
trunk/src/xmlrpc.php
r38411 r38470 60 60 } 61 61 62 include_once( ABSPATH . 'wp-admin/includes/admin.php' ); 62 include_once(ABSPATH . 'wp-admin/includes/admin.php'); 63 include_once(ABSPATH . WPINC . '/class-IXR.php'); 64 include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php'); 63 65 64 66 /** -
trunk/tests/phpunit/includes/install.php
r38411 r38470 21 21 22 22 require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 23 require_once ABSPATH . '/wp-includes/wp-db.php'; 23 24 24 25 // Override the PHPMailer -
trunk/tests/phpunit/includes/testcase-xmlrpc.php
r38411 r38470 1 1 <?php 2 include_once( ABSPATH . 'wp-admin/includes/admin.php' ); 2 include_once(ABSPATH . 'wp-admin/includes/admin.php'); 3 include_once(ABSPATH . WPINC . '/class-IXR.php'); 4 include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php'); 3 5 4 6 class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
Note: See TracChangeset
for help on using the changeset viewer.