Ticket #36335: 36335.14.diff
File 36335.14.diff, 45.7 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/admin.php
50 50 require_once(ABSPATH . 'wp-admin/includes/post.php'); 51 51 52 52 /** WordPress Administration Screen API */ 53 require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');54 53 require_once(ABSPATH . 'wp-admin/includes/screen.php'); 55 54 56 55 /** WordPress Taxonomy Administration API */ … … 60 59 require_once(ABSPATH . 'wp-admin/includes/template.php'); 61 60 62 61 /** 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');65 62 require_once(ABSPATH . 'wp-admin/includes/list-table.php'); 66 63 67 64 /** WordPress Theme Administration API */ … … 70 67 /** WordPress User Administration API */ 71 68 require_once(ABSPATH . 'wp-admin/includes/user.php'); 72 69 73 /** WordPress Site Icon API */74 require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');75 76 70 /** WordPress Update Administration API */ 77 71 require_once(ABSPATH . 'wp-admin/includes/update.php'); 78 72 -
src/wp-admin/includes/ajax-actions.php
1507 1507 1508 1508 $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; 1509 1509 1510 require(ABSPATH . WPINC . '/class-wp-editor.php');1511 1510 $results = _WP_Editors::wp_link_query( $args ); 1512 1511 1513 1512 if ( ! isset( $results ) ) … … 3137 3136 */ 3138 3137 function wp_ajax_press_this_save_post() { 3139 3138 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3140 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );3141 3139 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3142 3140 } 3143 3141 … … 3153 3151 */ 3154 3152 function wp_ajax_press_this_add_category() { 3155 3153 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3156 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );3157 3154 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3158 3155 } 3159 3156 … … 3183 3180 3184 3181 switch ( $context ) { 3185 3182 case 'site-icon': 3186 require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php';3187 3183 $wp_site_icon = new WP_Site_Icon(); 3188 3184 3189 3185 // Skip creating a new attachment if the attachment is a Site Icon. … … 3332 3328 wp_send_json_error( $status ); 3333 3329 } 3334 3330 3335 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3336 3331 include_once( ABSPATH . 'wp-admin/includes/theme.php' ); 3337 3332 3338 3333 $api = themes_api( 'theme_information', array( … … 3439 3434 wp_send_json_error( $status ); 3440 3435 } 3441 3436 3442 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3443 3444 3437 $current = get_site_transient( 'update_themes' ); 3445 3438 if ( empty( $current ) ) { 3446 3439 wp_update_themes(); … … 3590 3583 wp_send_json_error( $status ); 3591 3584 } 3592 3585 3593 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );3594 3586 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); 3595 3587 3596 3588 $api = plugins_api( 'plugin_information', array( … … 3698 3690 $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); 3699 3691 } 3700 3692 3701 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';3702 3703 3693 wp_update_plugins(); 3704 3694 3705 3695 $skin = new WP_Ajax_Upgrader_Skin(); -
src/wp-admin/includes/class-ftp.php
903 903 $mod_sockets = extension_loaded( 'sockets' ); 904 904 } 905 905 906 require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";907 908 906 if ( $mod_sockets ) { 909 907 class ftp extends ftp_sockets {} 910 908 } else { -
src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
30 30 $this->method = 'ftpsockets'; 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 }37 33 $this->ftp = new ftp(); 38 34 39 35 if ( empty($opt['port']) ) -
src/wp-admin/includes/class-wp-upgrader.php
9 9 * @since 2.8.0 10 10 */ 11 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';44 45 12 /** 46 13 * Core class used for upgrading/installing a local set of files via 47 14 * the Filesystem Abstraction classes from a Zip file. … … 887 854 } 888 855 889 856 } 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'; -
src/wp-admin/includes/deprecated.php
749 749 750 750 static $num = 1; 751 751 752 if ( ! class_exists( '_WP_Editors', false ) )753 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );754 755 752 $editor_id = 'content' . $num++; 756 753 757 754 $set = array( … … 1144 1141 if ( !empty($feedback) ) 1145 1142 add_filter('update_feedback', $feedback); 1146 1143 1147 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );1148 1144 $upgrader = new Core_Upgrader(); 1149 1145 return $upgrader->upgrade($current); 1150 1146 … … 1167 1163 if ( !empty($feedback) ) 1168 1164 add_filter('update_feedback', $feedback); 1169 1165 1170 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );1171 1166 $upgrader = new Plugin_Upgrader(); 1172 1167 return $upgrader->upgrade($plugin); 1173 1168 } … … 1189 1184 if ( !empty($feedback) ) 1190 1185 add_filter('update_feedback', $feedback); 1191 1186 1192 include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );1193 1187 $upgrader = new Theme_Upgrader(); 1194 1188 return $upgrader->upgrade($theme); 1195 1189 } -
src/wp-admin/includes/file.php
737 737 738 738 mbstring_binary_safe_encoding(); 739 739 740 require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');741 742 740 $archive = new PclZip($file); 743 741 744 742 $archive_files = $archive->extract(PCLZIP_OPT_EXTRACT_AS_STRING); … … 886 884 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { 887 885 global $wp_filesystem; 888 886 889 require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');890 891 887 $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership ); 892 888 893 889 if ( ! $method ) 894 890 return false; 895 891 896 if ( ! class_exists( "WP_Filesystem_$method" ) ) { 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 ); 897 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 ) ) { 908 898 909 /** 899 910 * Filters the path for a specific filesystem method class file. 900 911 * … … 907 918 */ 908 919 $abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method ); 909 920 910 if ( ! file_exists( $abstraction_file) )921 if ( ! file_exists( $abstraction_file ) ) { 911 922 return; 923 } 912 924 913 require_once( $abstraction_file);925 require_once( $abstraction_file ); 914 926 } 915 $method = "WP_Filesystem_$method";916 927 917 $wp_filesystem = new $ method($args);928 $wp_filesystem = new $classname( $args ); 918 929 919 930 //Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default. 920 931 if ( ! defined('FS_CONNECT_TIMEOUT') ) -
src/wp-admin/includes/list-table.php
40 40 ); 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 46 43 if ( isset( $args['screen'] ) ) 47 44 $args['screen'] = convert_to_screen( $args['screen'] ); 48 45 elseif ( isset( $GLOBALS['hook_suffix'] ) ) -
src/wp-admin/includes/nav-menu.php
7 7 * @since 3.0.0 8 8 */ 9 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' );15 16 10 /** 17 11 * Prints the appropriate response to a menu quick search. 18 12 * -
src/wp-admin/includes/template.php
8 8 * @subpackage Administration 9 9 */ 10 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' );16 17 11 // 18 12 // Category Checklists 19 13 // -
src/wp-admin/includes/translation-install.php
202 202 } 203 203 $translation = (object) $translation; 204 204 205 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';206 205 $skin = new Automatic_Upgrader_Skin; 207 206 $upgrader = new Language_Pack_Upgrader( $skin ); 208 207 $translation->type = 'core'; … … 228 227 return false; 229 228 } 230 229 231 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';232 230 $skin = new Automatic_Upgrader_Skin; 233 231 $upgrader = new Language_Pack_Upgrader( $skin ); 234 232 $upgrader->init(); -
src/wp-admin/includes/update.php
74 74 if ( ! $updates || empty( $updates->updates ) ) 75 75 return false; 76 76 77 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );78 79 77 $auto_update = false; 80 78 $upgrader = new WP_Automatic_Updater; 81 79 foreach ( $updates->updates as $update ) { -
src/wp-admin/install.php
41 41 /** Load WordPress Translation Install API */ 42 42 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 43 43 44 /** Load wpdb */45 require_once( ABSPATH . WPINC . '/wp-db.php' );46 47 44 nocache_headers(); 48 45 49 46 $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0; -
src/wp-admin/press-this.php
23 23 * @global WP_Press_This $wp_press_this 24 24 */ 25 25 if ( empty( $GLOBALS['wp_press_this'] ) ) { 26 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );27 26 $GLOBALS['wp_press_this'] = new WP_Press_This(); 28 27 } 29 28 -
src/wp-admin/update-core.php
163 163 _e('You have the latest version of WordPress.'); 164 164 165 165 if ( wp_http_supports( array( 'ssl' ) ) ) { 166 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';167 166 $upgrader = new WP_Automatic_Updater; 168 167 $future_minor_update = (object) array( 169 168 'current' => $wp_version . '.1.next.minor', … … 187 186 } 188 187 189 188 if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) { 190 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';191 189 $upgrader = new WP_Automatic_Updater; 192 190 if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) { 193 191 echo '<div class="updated inline"><p>'; … … 438 436 function do_core_upgrade( $reinstall = false ) { 439 437 global $wp_filesystem; 440 438 441 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );442 443 439 if ( $reinstall ) 444 440 $url = 'update-core.php?action=do-core-reinstall'; 445 441 else … … 710 706 check_admin_referer( 'upgrade-translations' ); 711 707 712 708 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 713 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );714 709 715 710 $url = 'update-core.php?action=do-translation-upgrade'; 716 711 $nonce = 'upgrade-translations'; -
src/wp-admin/update.php
12 12 /** WordPress Administration Bootstrap */ 13 13 require_once( dirname( __FILE__ ) . '/admin.php' ); 14 14 15 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );16 17 15 if ( isset($_GET['action']) ) { 18 16 $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : ''; 19 17 $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : ''; … … 218 216 if ( ! current_user_can('install_themes') ) 219 217 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 220 218 221 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..222 223 219 check_admin_referer( 'install-theme_' . $theme ); 224 220 $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth. 225 221 -
src/wp-includes/admin-bar.php
23 23 function _wp_admin_bar_init() { 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 29 /* Load the admin bar class code ready for instantiation */30 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );31 32 30 /* Instantiate the admin bar */ 33 31 34 32 /** … … 39 37 * @param string $wp_admin_bar_class Admin bar class to use. Default 'WP_Admin_Bar'. 40 38 */ 41 39 $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' ); 42 if ( class_exists( $admin_bar_class ) ) 40 if ( class_exists( $admin_bar_class ) ) { 43 41 $wp_admin_bar = new $admin_bar_class; 44 else42 } else { 45 43 return false; 46 44 } 47 45 $wp_admin_bar->initialize(); 48 46 $wp_admin_bar->add_menus(); 49 47 … … 294 292 } 295 293 296 294 if ( is_network_admin() ) { 297 /* translators: %s: site name */ 295 /* translators: %s: site name */ 298 296 $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); 299 297 } elseif ( is_user_admin() ) { 300 /* translators: %s: site name */ 298 /* translators: %s: site name */ 301 299 $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); 302 300 } 303 301 -
src/wp-includes/class-IXR.php
38 38 * @link http://scripts.incutio.com/xmlrpc/ Site/manual 39 39 * @license http://www.opensource.org/licenses/bsd-license.php BSD 40 40 */ 41 42 require_once( ABSPATH . WPINC . '/IXR/class-IXR-value.php' );43 44 require_once( ABSPATH . WPINC . '/IXR/class-IXR-message.php' );45 46 require_once( ABSPATH . WPINC . '/IXR/class-IXR-server.php' );47 48 require_once( ABSPATH . WPINC . '/IXR/class-IXR-request.php' );49 50 require_once( ABSPATH . WPINC . '/IXR/class-IXR-client.php' );51 52 require_once( ABSPATH . WPINC . '/IXR/class-IXR-error.php' );53 54 require_once( ABSPATH . WPINC . '/IXR/class-IXR-date.php' );55 56 require_once( ABSPATH . WPINC . '/IXR/class-IXR-base64.php' );57 58 require_once( ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php' );59 60 require_once( ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php' );61 No newline at end of file -
src/wp-includes/class-http.php
7 7 * @since 2.7.0 8 8 */ 9 9 10 if ( ! class_exists( 'Requests' ) ) {10 if ( ! class_exists( 'Requests', false ) ) { 11 11 require( ABSPATH . WPINC . '/class-requests.php' ); 12 12 13 13 Requests::register_autoloader(); -
src/wp-includes/class-phpmailer.php
1385 1385 public function getSMTPInstance() 1386 1386 { 1387 1387 if (!is_object($this->smtp)) { 1388 require_once( 'class-smtp.php' );1389 1388 $this->smtp = new SMTP; 1390 1389 } 1391 1390 return $this->smtp; -
src/wp-includes/class-wp-customize-control.php
598 598 protected function content_template() {} 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' ); -
src/wp-includes/class-wp-customize-manager.php
205 205 * @since 3.4.0 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 244 208 /** 245 209 * Filters the core Customizer components to load. 246 210 * … … 258 222 */ 259 223 $components = apply_filters( 'customize_loaded_components', $this->components, $this ); 260 224 261 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );262 225 $this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); 263 226 264 227 if ( in_array( 'widgets', $components, true ) ) { 265 require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );266 228 $this->widgets = new WP_Customize_Widgets( $this ); 267 229 } 268 230 269 231 if ( in_array( 'nav_menus', $components, true ) ) { 270 require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );271 232 $this->nav_menus = new WP_Customize_Nav_Menus( $this ); 272 233 } 273 234 -
src/wp-includes/class-wp-customize-panel.php
384 384 <?php 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' ); -
src/wp-includes/class-wp-customize-section.php
373 373 <?php 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' ); -
src/wp-includes/class-wp-customize-setting.php
893 893 return isset( $result ); 894 894 } 895 895 } 896 897 /** WP_Customize_Filter_Setting class */898 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );899 900 /** WP_Customize_Header_Image_Setting class */901 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );902 903 /** WP_Customize_Background_Image_Setting class */904 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );905 906 /** WP_Customize_Nav_Menu_Item_Setting class */907 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );908 909 /** WP_Customize_Nav_Menu_Setting class */910 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' ); -
src/wp-includes/comment.php
2369 2369 */ 2370 2370 function pingback($content, $post_ID) { 2371 2371 global $wp_version; 2372 include_once(ABSPATH . WPINC . '/class-IXR.php');2373 include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');2374 2372 2375 2373 // original code by Mort (http://mort.mine.nu:8080) 2376 2374 $post_links = array(); … … 2513 2511 */ 2514 2512 function weblog_ping($server = '', $path = '') { 2515 2513 global $wp_version; 2516 include_once(ABSPATH . WPINC . '/class-IXR.php');2517 include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');2518 2514 2519 2515 // using a timeout of 3 seconds should be enough to cover slow servers 2520 2516 $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); -
src/wp-includes/customize/class-wp-customize-selective-refresh.php
67 67 */ 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' );71 70 72 71 add_action( 'customize_preview_init', array( $this, 'init_preview' ) ); 73 72 } -
src/wp-includes/feed.php
666 666 if ( ! class_exists( 'SimplePie', false ) ) { 667 667 require_once( ABSPATH . WPINC . '/class-simplepie.php' ); 668 668 } 669 require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );670 require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );671 require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );672 require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );673 669 674 670 $feed = new SimplePie(); 675 671 -
src/wp-includes/functions.php
561 561 global $wpdb; 562 562 563 563 //TODO: Tidy this ghetto code up and make the debug code optional 564 include_once( ABSPATH . WPINC . '/class-IXR.php' );565 566 564 $post_links = array(); 567 565 568 566 $pung = get_enclosed( $post_ID ); -
src/wp-includes/general-template.php
2980 2980 * @param array $settings See _WP_Editors::editor(). 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' );2985 2986 2983 _WP_Editors::editor($content, $editor_id, $settings); 2987 2984 } 2988 2985 -
src/wp-includes/link-template.php
2909 2909 function get_shortcut_link() { 2910 2910 global $is_IE, $wp_version; 2911 2911 2912 include_once( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );2913 2912 $GLOBALS['wp_press_this'] = new WP_Press_This(); 2914 2913 $bookmarklet_version = $GLOBALS['wp_press_this']->version; 2915 2914 $link = ''; -
src/wp-includes/load.php
394 394 function require_wp_db() { 395 395 global $wpdb; 396 396 397 require_once( ABSPATH . WPINC . '/wp-db.php' );398 397 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) 399 398 require_once( WP_CONTENT_DIR . '/db.php' ); 400 399 401 if ( isset( $wpdb ) ) 400 if ( isset( $wpdb ) ) { 402 401 return; 402 } 403 403 404 404 $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST ); 405 405 } -
src/wp-includes/media.php
2909 2909 * editor claims to support the request. 2910 2910 */ 2911 2911 function _wp_image_editor_choose( $args = array() ) { 2912 require_once ABSPATH . WPINC . '/class-wp-image-editor.php';2913 require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php';2914 require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';2915 2916 2912 /** 2917 2913 * Filters the list of image editing library classes. 2918 2914 * -
src/wp-includes/ms-settings.php
22 22 */ 23 23 global $current_site, $current_blog; 24 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' );30 31 25 /** Multisite loader */ 32 26 require_once( ABSPATH . WPINC . '/ms-load.php' ); 33 27 -
src/wp-includes/nav-menu-template.php
7 7 * @since 3.0.0 8 8 */ 9 9 10 /** Walker_Nav_Menu class */11 require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';12 13 10 /** 14 11 * Displays a navigation menu. 15 12 * -
src/wp-includes/pluggable.php
211 211 // (Re)create it, if it's gone missing 212 212 if ( ! ( $phpmailer instanceof PHPMailer ) ) { 213 213 require_once ABSPATH . WPINC . '/class-phpmailer.php'; 214 require_once ABSPATH . WPINC . '/class-smtp.php';215 214 $phpmailer = new PHPMailer( true ); 216 215 } 217 216 -
src/wp-includes/script-loader.php
16 16 * @package WordPress 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 28 19 /** WordPress Scripts Functions */ 29 20 require( ABSPATH . WPINC . '/functions.wp-scripts.php' ); 30 21 31 /** WordPress Styles Class */32 require( ABSPATH . WPINC . '/class.wp-styles.php' );33 34 22 /** WordPress Styles Functions */ 35 23 require( ABSPATH . WPINC . '/functions.wp-styles.php' ); 36 24 -
src/wp-includes/theme.php
1756 1756 add_action( 'wp_head', $args[0]['wp-head-callback'] ); 1757 1757 1758 1758 if ( is_admin() ) { 1759 require_once( ABSPATH . 'wp-admin/custom-header.php' );1760 1759 $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1761 1760 } 1762 1761 } … … 1769 1768 add_action( 'wp_head', $args[0]['wp-head-callback'] ); 1770 1769 1771 1770 if ( is_admin() ) { 1772 require_once( ABSPATH . 'wp-admin/custom-background.php' );1773 1771 $custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] ); 1774 1772 } 1775 1773 } … … 2082 2080 return; 2083 2081 } 2084 2082 2085 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';2086 2083 $GLOBALS['wp_customize'] = new WP_Customize_Manager(); 2087 2084 } 2088 2085 -
src/wp-includes/update.php
505 505 */ 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' );509 508 510 509 $upgrader = new WP_Automatic_Updater; 511 510 $upgrader->run(); -
src/wp-includes/wp-diff.php
16 16 /** Text_Diff_Renderer_inline class */ 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' );22 No newline at end of file -
src/wp-mail.php
21 21 */ 22 22 do_action( 'wp-mail.php' ); 23 23 24 /** Get the POP3 class with which to access the mailbox. */25 require_once( ABSPATH . WPINC . '/class-pop3.php' );26 27 24 /** Only check at this interval for new messages. */ 28 25 if ( !defined('WP_MAIL_INTERVAL') ) 29 26 define('WP_MAIL_INTERVAL', 300); // 5 minutes -
src/wp-settings.php
17 17 */ 18 18 define( 'WPINC', 'wp-includes' ); 19 19 20 // WordPress Core PHP 5.2-compatible Autoloader 21 require_once( ABSPATH . 'wp-vendor/autoload_52.php' ); 22 20 23 // Include files required for initialization. 21 24 require( ABSPATH . WPINC . '/load.php' ); 22 25 require( ABSPATH . WPINC . '/default-constants.php' ); … … 93 96 require( ABSPATH . WPINC . '/compat.php' ); 94 97 require( ABSPATH . WPINC . '/option.php' ); 95 98 require( ABSPATH . WPINC . '/functions.php' ); 96 require( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' );97 require( ABSPATH . WPINC . '/class-wp.php' );98 require( ABSPATH . WPINC . '/class-wp-error.php' );99 99 require( ABSPATH . WPINC . '/pomo/mo.php' ); 100 require( ABSPATH . WPINC . '/class-phpass.php' );101 100 102 101 // Include the wpdb class and, if present, a db.php database drop-in. 103 102 global $wpdb; … … 115 114 116 115 // Initialize multisite if enabled. 117 116 if ( is_multisite() ) { 118 require( ABSPATH . WPINC . '/class-wp-site-query.php' );119 require( ABSPATH . WPINC . '/class-wp-network-query.php' );120 117 require( ABSPATH . WPINC . '/ms-blogs.php' ); 121 118 require( ABSPATH . WPINC . '/ms-settings.php' ); 122 119 } elseif ( ! defined( 'MULTISITE' ) ) { … … 136 133 wp_not_installed(); 137 134 138 135 // Load most of WordPress. 139 require( ABSPATH . WPINC . '/class-wp-walker.php' );140 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );141 136 require( ABSPATH . WPINC . '/formatting.php' ); 142 137 require( ABSPATH . WPINC . '/capabilities.php' ); 143 require( ABSPATH . WPINC . '/class-wp-roles.php' );144 require( ABSPATH . WPINC . '/class-wp-role.php' );145 require( ABSPATH . WPINC . '/class-wp-user.php' );146 require( ABSPATH . WPINC . '/class-wp-query.php' );147 138 require( ABSPATH . WPINC . '/query.php' ); 148 require( ABSPATH . WPINC . '/date.php' );149 139 require( ABSPATH . WPINC . '/theme.php' ); 150 require( ABSPATH . WPINC . '/class-wp-theme.php' );151 140 require( ABSPATH . WPINC . '/template.php' ); 152 141 require( ABSPATH . WPINC . '/user.php' ); 153 require( ABSPATH . WPINC . '/class-wp-user-query.php' );154 require( ABSPATH . WPINC . '/class-wp-session-tokens.php' );155 require( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );156 142 require( ABSPATH . WPINC . '/meta.php' ); 157 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );158 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );159 143 require( ABSPATH . WPINC . '/general-template.php' ); 160 144 require( ABSPATH . WPINC . '/link-template.php' ); 161 145 require( ABSPATH . WPINC . '/author-template.php' ); 162 146 require( ABSPATH . WPINC . '/post.php' ); 163 require( ABSPATH . WPINC . '/class-walker-page.php' );164 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );165 require( ABSPATH . WPINC . '/class-wp-post-type.php' );166 require( ABSPATH . WPINC . '/class-wp-post.php' );167 147 require( ABSPATH . WPINC . '/post-template.php' ); 168 148 require( ABSPATH . WPINC . '/revision.php' ); 169 149 require( ABSPATH . WPINC . '/post-formats.php' ); 170 150 require( ABSPATH . WPINC . '/post-thumbnail-template.php' ); 171 151 require( ABSPATH . WPINC . '/category.php' ); 172 require( ABSPATH . WPINC . '/class-walker-category.php' );173 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );174 152 require( ABSPATH . WPINC . '/category-template.php' ); 175 153 require( ABSPATH . WPINC . '/comment.php' ); 176 require( ABSPATH . WPINC . '/class-wp-comment.php' );177 require( ABSPATH . WPINC . '/class-wp-comment-query.php' );178 require( ABSPATH . WPINC . '/class-walker-comment.php' );179 154 require( ABSPATH . WPINC . '/comment-template.php' ); 180 155 require( ABSPATH . WPINC . '/rewrite.php' ); 181 require( ABSPATH . WPINC . '/class-wp-rewrite.php' );182 156 require( ABSPATH . WPINC . '/feed.php' ); 183 157 require( ABSPATH . WPINC . '/bookmark.php' ); 184 158 require( ABSPATH . WPINC . '/bookmark-template.php' ); … … 187 161 require( ABSPATH . WPINC . '/deprecated.php' ); 188 162 require( ABSPATH . WPINC . '/script-loader.php' ); 189 163 require( ABSPATH . WPINC . '/taxonomy.php' ); 190 require( ABSPATH . WPINC . '/class-wp-term.php' );191 require( ABSPATH . WPINC . '/class-wp-term-query.php' );192 require( ABSPATH . WPINC . '/class-wp-tax-query.php' );193 164 require( ABSPATH . WPINC . '/update.php' ); 194 165 require( ABSPATH . WPINC . '/canonical.php' ); 195 166 require( ABSPATH . WPINC . '/shortcodes.php' ); 196 167 require( ABSPATH . WPINC . '/embed.php' ); 197 require( ABSPATH . WPINC . '/class-wp-embed.php' );198 require( ABSPATH . WPINC . '/class-oembed.php' );199 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );200 168 require( ABSPATH . WPINC . '/media.php' ); 201 169 require( ABSPATH . WPINC . '/http.php' ); 202 require( ABSPATH . WPINC . '/class-http.php' );203 require( ABSPATH . WPINC . '/class-wp-http-streams.php' );204 require( ABSPATH . WPINC . '/class-wp-http-curl.php' );205 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );206 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );207 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );208 require( ABSPATH . WPINC . '/class-wp-http-response.php' );209 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );210 170 require( ABSPATH . WPINC . '/widgets.php' ); 211 require( ABSPATH . WPINC . '/class-wp-widget.php' );212 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );213 171 require( ABSPATH . WPINC . '/nav-menu.php' ); 214 172 require( ABSPATH . WPINC . '/nav-menu-template.php' ); 215 173 require( ABSPATH . WPINC . '/admin-bar.php' ); 216 174 require( ABSPATH . WPINC . '/rest-api.php' ); 217 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );218 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );219 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );220 require( ABSPATH . WPINC . '/class-wp-locale.php' );221 175 222 176 $GLOBALS['wp_embed'] = new WP_Embed(); 223 177 -
src/wp-vendor/autoload_52.php
4 4 5 5 require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php'; 6 6 7 return ComposerAutoloaderInit 84e65be829c2294b794a94e0a8b5807c::getLoader();7 return ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9::getLoader(); -
src/wp-vendor/composer/autoload_real_52.php
2 2 3 3 // autoload_real_52.php generated by xrstf/composer-php52 4 4 5 class ComposerAutoloaderInit 84e65be829c2294b794a94e0a8b5807c{5 class ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9 { 6 6 private static $loader; 7 7 8 8 public static function loadClassLoader($class) { … … 19 19 return self::$loader; 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit 84e65be829c2294b794a94e0a8b5807c', 'loadClassLoader'), true /*, true */);22 spl_autoload_register(array('ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9', 'loadClassLoader'), true /*, true */); 23 23 self::$loader = $loader = new xrstf_Composer52_ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit 84e65be829c2294b794a94e0a8b5807c', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9', 'loadClassLoader')); 25 25 26 26 $vendorDir = dirname(dirname(__FILE__)); 27 27 $baseDir = dirname($vendorDir); -
src/xmlrpc.php
59 59 exit; 60 60 } 61 61 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'); 62 include_once( ABSPATH . 'wp-admin/includes/admin.php' ); 65 63 66 64 /** 67 65 * Posts submitted via the XML-RPC interface get that title -
tests/phpunit/includes/install.php
20 20 require_once ABSPATH . '/wp-settings.php'; 21 21 22 22 require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 23 require_once ABSPATH . '/wp-includes/wp-db.php';24 23 25 24 // Override the PHPMailer 26 25 global $phpmailer; -
tests/phpunit/includes/testcase-xmlrpc.php
1 1 <?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'); 2 include_once( ABSPATH . 'wp-admin/includes/admin.php' ); 5 3 6 4 class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase { 7 5 protected $myxmlrpcserver;