Ticket #37816: autoload.diff
File autoload.diff, 15.6 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/class-wp-upgrader-skins.php
7 7 * @since 2.8.0 8 8 */ 9 9 10 /** WP_Upgrader_Skin class */11 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';12 10 13 /** Plugin_Upgrader_Skin class */14 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';15 11 16 /** Theme_Upgrader_Skin class */17 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';18 19 /** Bulk_Upgrader_Skin class */20 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';21 22 /** Bulk_Plugin_Upgrader_Skin class */23 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';24 25 /** Bulk_Theme_Upgrader_Skin class */26 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';27 28 /** Plugin_Installer_Skin class */29 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';30 31 /** Theme_Installer_Skin class */32 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';33 34 /** Language_Pack_Upgrader_Skin class */35 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';36 37 /** Automatic_Upgrader_Skin class */38 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';39 40 /** WP_Ajax_Upgrader_Skin class */41 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php'; -
src/wp-classmap.php
1 <?php 2 3 return array( 4 'Automatic_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php', 5 'Bulk_Plugin_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php', 6 'Bulk_Theme_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php', 7 'Bulk_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php', 8 'Gettext_Translations' => ABSPATH . WPINC . '/pomo/translations.php', 9 'NOOP_Translations' => ABSPATH . WPINC . '/pomo/translations.php', 10 'Language_Pack_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php', 11 'MO' => ABSPATH . WPINC . '/pomo/mo.php', 12 'Plugin_Installer_Skin' => ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php', 13 'Plugin_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php', 14 'PO' => ABSPATH . WPINC . '/pomo/po.php', 15 'POMO_CachedFileReader' => ABSPATH . WPINC . '/pomo/streams.php', 16 'POMO_CachedIntFileReader' => ABSPATH . WPINC . '/pomo/streams.php', 17 'POMO_FileReader' => ABSPATH . WPINC . '/pomo/streams.php', 18 'POMO_Reader' => ABSPATH . WPINC . '/pomo/streams.php', 19 'POMO_StringReader' => ABSPATH . WPINC . '/pomo/streams.php', 20 'Theme_Installer_Skin' => ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php', 21 'Theme_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php', 22 'Translation_Entry' => ABSPATH . WPINC . '/pomo/entry.php', 23 'Translations' => ABSPATH . WPINC . '/pomo/translations.php', 24 'wpdb' => ABSPATH . WPINC . '/wp-db.php', 25 'Walker' => ABSPATH . WPINC . '/class-wp-walker.php', 26 'Walker_Category' => ABSPATH . WPINC . '/class-walker-category.php', 27 'Walker_CategoryDropdown' => ABSPATH . WPINC . '/class-walker-category-dropdown.php', 28 'Walker_Comment' => ABSPATH . WPINC . '/class-walker-comment.php', 29 'Walker_Nav_Menu' => ABSPATH . WPINC . '/class-walker-nav-menu.php', 30 'Walker_Page' => ABSPATH . WPINC . '/class-walker-page.php', 31 'Walker_PageDropdown' => ABSPATH . WPINC . '/class-walker-page-dropdown.php', 32 'WP' => ABSPATH . WPINC . '/class-wp.php', 33 'WP_Ajax_Response' => ABSPATH . WPINC . '/class-wp-ajax-response.php', 34 'WP_Ajax_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php', 35 'WP_Automatic_Updater' => ABSPATH . 'wp-admin/includes/class-wp-automatic-upgrader.php', 36 'WP_Comment' => ABSPATH . WPINC . '/class-wp-comment.php', 37 'WP_Comment_Query' => ABSPATH . WPINC . '/class-wp-comment-query.php', 38 'WP_Date_Query' => ABSPATH . WPINC . '/date.php', 39 'WP_Embed' => ABSPATH . WPINC . '/class-wp-embed.php', 40 'WP_Error' => ABSPATH . WPINC . '/class-wp-error.php', 41 'WP_Http_Streams' => ABSPATH . WPINC . '/class-wp-http-streams.php', 42 'WP_Http_Curl' => ABSPATH . WPINC . '/class-wp-http-curl.php', 43 'WP_HTTP_Proxy' => ABSPATH . WPINC . '/class-wp-http-proxy.php', 44 'WP_Http_Cookie' => ABSPATH . WPINC . '/class-wp-http-cookie.php', 45 'WP_Http_Encoding' => ABSPATH . WPINC . '/class-wp-http-encoding.php', 46 'WP_HTTP_Response' => ABSPATH . WPINC . '/class-wp-http-response.php', 47 'WP_HTTP_Requests_Response' => ABSPATH . WPINC . '/class-wp-http-requests-response.php', 48 'WP_Meta_Query' => ABSPATH . WPINC . '/class-wp-meta-query.php', 49 'WP_Metadata_Lazyloader' => ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php', 50 'WP_Network_Query' => ABSPATH . WPINC . '/class-wp-network-query.php', 51 'WP_oEmbed_Controller' => ABSPATH . WPINC . '/class-wp-oembed-controller.php', 52 'WP_Post' => ABSPATH . WPINC . '/class-wp-post.php', 53 'WP_Post_Type' => ABSPATH . WPINC . '/class-wp-post-type.php', 54 'WP_REST_Server' => ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php', 55 'WP_REST_Response' => ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php', 56 'WP_REST_Request' => ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php', 57 'WP_Role' => ABSPATH . WPINC . '/class-wp-role.php', 58 'WP_Roles' => ABSPATH . WPINC . '/class-wp-roles.php', 59 'WP_Session_Tokens' => ABSPATH . WPINC . '/session.php', 60 'WP_Site_Query' => ABSPATH . WPINC . '/class-wp-site-query.php', 61 'WP_Tax_Query' => ABSPATH . WPINC . '/class-wp-tax-query.php', 62 'WP_Term' => ABSPATH . WPINC . '/class-wp-term.php', 63 'WP_Term_Query' => ABSPATH . WPINC . '/class-wp-term-query.php', 64 'WP_Theme' => ABSPATH . WPINC . '/class-wp-theme.php', 65 'WP_Upgrader_Skin' => ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php', 66 'WP_User' => ABSPATH . WPINC . '/class-wp-user.php', 67 'WP_User_Meta_Session_Tokens' => ABSPATH . WPINC . '/session.php', 68 'WP_User_Query' => ABSPATH . WPINC . '/class-wp-user-query.php', 69 'WP_Walker' => ABSPATH . WPINC . '/class-wp-walker.php', 70 'WP_Widget' => ABSPATH . WPINC . '/class-wp-widget.php', 71 'WP_Widget_Factory' => ABSPATH . WPINC . '/class-wp-widget-factory.php', 72 ); -
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-wp-embed.php
384 384 return apply_filters( 'embed_maybe_make_link', $output, $url ); 385 385 } 386 386 } 387 $GLOBALS['wp_embed'] = new WP_Embed(); -
src/wp-includes/class-wp-error.php
203 203 } 204 204 } 205 205 206 /**207 * Check whether variable is a WordPress Error.208 *209 * Returns true if $thing is an object of the WP_Error class.210 *211 * @since 2.1.0212 *213 * @param mixed $thing Check if unknown variable is a WP_Error object.214 * @return bool True, if WP_Error. False, if not WP_Error.215 */216 function is_wp_error( $thing ) {217 return ( $thing instanceof WP_Error );218 } -
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 … … 1045 1044 */ 1046 1045 return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX ); 1047 1046 } 1047 1048 /** 1049 * Check whether variable is a WordPress Error. 1050 * 1051 * Returns true if $thing is an object of the WP_Error class. 1052 * 1053 * @since 2.1.0 1054 * 1055 * @param mixed $thing Check if unknown variable is a WP_Error object. 1056 * @return bool True, if WP_Error. False, if not WP_Error. 1057 */ 1058 function is_wp_error( $thing ) { 1059 return ( $thing instanceof WP_Error ); 1060 } 1061 1062 /** 1063 * @since 4.7.0 1064 * 1065 * @param string $class 1066 * @return boolean 1067 */ 1068 function wp_core_autoloader( $class ) { 1069 $classmap = require( ABSPATH . 'wp-classmap.php' ); 1070 1071 if ( array_key_exists( $class, $classmap ) ) { 1072 require_once( $classmap[ $class ] ); 1073 return true; 1074 } 1075 1076 return false; 1077 } 1078 No newline at end of file -
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/pomo/mo.php
7 7 * @subpackage mo 8 8 */ 9 9 10 require_once dirname(__FILE__) . '/translations.php';11 require_once dirname(__FILE__) . '/streams.php';12 13 10 if ( ! class_exists( 'MO', false ) ): 14 11 class MO extends Gettext_Translations { 15 12 -
src/wp-includes/pomo/po.php
7 7 * @subpackage po 8 8 */ 9 9 10 require_once dirname(__FILE__) . '/translations.php';11 12 10 if ( ! defined( 'PO_MAX_LINE_LEN' ) ) { 13 11 define('PO_MAX_LINE_LEN', 79); 14 12 } -
src/wp-includes/pomo/translations.php
7 7 * @subpackage translations 8 8 */ 9 9 10 require_once dirname(__FILE__) . '/entry.php';11 12 10 if ( ! class_exists( 'Translations', false ) ): 13 11 class Translations { 14 12 var $entries = array(); -
src/wp-settings.php
92 92 // Load early WordPress files. 93 93 require( ABSPATH . WPINC . '/compat.php' ); 94 94 require( ABSPATH . WPINC . '/functions.php' ); 95 require( ABSPATH . WPINC . '/class-wp.php' );96 require( ABSPATH . WPINC . '/class-wp-error.php' );97 require( ABSPATH . WPINC . '/pomo/mo.php' );98 95 96 spl_autoload_register( 'wp_core_autoloader' ); 97 99 98 // Include the wpdb class and, if present, a db.php database drop-in. 100 99 global $wpdb; 101 100 require_wp_db(); … … 112 111 113 112 // Initialize multisite if enabled. 114 113 if ( is_multisite() ) { 115 require( ABSPATH . WPINC . '/class-wp-site-query.php' );116 require( ABSPATH . WPINC . '/class-wp-network-query.php' );117 114 require( ABSPATH . WPINC . '/ms-blogs.php' ); 118 115 require( ABSPATH . WPINC . '/ms-settings.php' ); 119 116 } elseif ( ! defined( 'MULTISITE' ) ) { … … 133 130 wp_not_installed(); 134 131 135 132 // Load most of WordPress. 136 require( ABSPATH . WPINC . '/class-wp-walker.php' );137 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );138 133 require( ABSPATH . WPINC . '/formatting.php' ); 139 134 require( ABSPATH . WPINC . '/capabilities.php' ); 140 require( ABSPATH . WPINC . '/class-wp-roles.php' );141 require( ABSPATH . WPINC . '/class-wp-role.php' );142 require( ABSPATH . WPINC . '/class-wp-user.php' );143 135 require( ABSPATH . WPINC . '/query.php' ); 144 require( ABSPATH . WPINC . '/date.php' );145 136 require( ABSPATH . WPINC . '/theme.php' ); 146 require( ABSPATH . WPINC . '/class-wp-theme.php' );147 137 require( ABSPATH . WPINC . '/template.php' ); 148 138 require( ABSPATH . WPINC . '/user.php' ); 149 require( ABSPATH . WPINC . '/class-wp-user-query.php' );150 require( ABSPATH . WPINC . '/session.php' );151 139 require( ABSPATH . WPINC . '/meta.php' ); 152 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );153 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );154 140 require( ABSPATH . WPINC . '/general-template.php' ); 155 141 require( ABSPATH . WPINC . '/link-template.php' ); 156 142 require( ABSPATH . WPINC . '/author-template.php' ); 157 143 require( ABSPATH . WPINC . '/post.php' ); 158 require( ABSPATH . WPINC . '/class-walker-page.php' );159 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );160 require( ABSPATH . WPINC . '/class-wp-post-type.php' );161 require( ABSPATH . WPINC . '/class-wp-post.php' );162 144 require( ABSPATH . WPINC . '/post-template.php' ); 163 145 require( ABSPATH . WPINC . '/revision.php' ); 164 146 require( ABSPATH . WPINC . '/post-formats.php' ); 165 147 require( ABSPATH . WPINC . '/post-thumbnail-template.php' ); 166 148 require( ABSPATH . WPINC . '/category.php' ); 167 require( ABSPATH . WPINC . '/class-walker-category.php' );168 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );169 149 require( ABSPATH . WPINC . '/category-template.php' ); 170 150 require( ABSPATH . WPINC . '/comment.php' ); 171 require( ABSPATH . WPINC . '/class-wp-comment.php' );172 require( ABSPATH . WPINC . '/class-wp-comment-query.php' );173 require( ABSPATH . WPINC . '/class-walker-comment.php' );174 151 require( ABSPATH . WPINC . '/comment-template.php' ); 175 152 require( ABSPATH . WPINC . '/rewrite.php' ); 176 153 require( ABSPATH . WPINC . '/class-wp-rewrite.php' ); … … 182 159 require( ABSPATH . WPINC . '/deprecated.php' ); 183 160 require( ABSPATH . WPINC . '/script-loader.php' ); 184 161 require( ABSPATH . WPINC . '/taxonomy.php' ); 185 require( ABSPATH . WPINC . '/class-wp-term.php' );186 require( ABSPATH . WPINC . '/class-wp-term-query.php' );187 require( ABSPATH . WPINC . '/class-wp-tax-query.php' );188 162 require( ABSPATH . WPINC . '/update.php' ); 189 163 require( ABSPATH . WPINC . '/canonical.php' ); 190 164 require( ABSPATH . WPINC . '/shortcodes.php' ); 191 165 require( ABSPATH . WPINC . '/embed.php' ); 192 require( ABSPATH . WPINC . '/class-wp-embed.php' );193 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );194 166 require( ABSPATH . WPINC . '/media.php' ); 195 167 require( ABSPATH . WPINC . '/http.php' ); 196 168 require( ABSPATH . WPINC . '/class-http.php' ); 197 require( ABSPATH . WPINC . '/class-wp-http-streams.php' );198 require( ABSPATH . WPINC . '/class-wp-http-curl.php' );199 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );200 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );201 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );202 require( ABSPATH . WPINC . '/class-wp-http-response.php' );203 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );204 169 require( ABSPATH . WPINC . '/widgets.php' ); 205 require( ABSPATH . WPINC . '/class-wp-widget.php' );206 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );207 170 require( ABSPATH . WPINC . '/nav-menu.php' ); 208 171 require( ABSPATH . WPINC . '/nav-menu-template.php' ); 209 172 require( ABSPATH . WPINC . '/admin-bar.php' ); 210 173 require( ABSPATH . WPINC . '/rest-api.php' ); 211 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );212 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );213 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );214 174 175 $GLOBALS['wp_embed'] = new WP_Embed(); 176 215 177 // Load multisite-specific files. 216 178 if ( is_multisite() ) { 217 179 require( ABSPATH . WPINC . '/ms-functions.php' );