Make WordPress Core

Ticket #37816: autoload.diff

File autoload.diff, 15.6 KB (added by wonderboymusic, 8 years ago)
  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    77 * @since 2.8.0
    88 */
    99
    10 /** WP_Upgrader_Skin class */
    11 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
    1210
    13 /** Plugin_Upgrader_Skin class */
    14 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';
    1511
    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
     3return 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

     
    77 * @since 2.7.0
    88 */
    99
    10 if ( ! class_exists( 'Requests' ) ) {
     10if ( ! class_exists( 'Requests', false ) ) {
    1111        require( ABSPATH . WPINC . '/class-requests.php' );
    1212
    1313        Requests::register_autoloader();
  • src/wp-includes/class-wp-embed.php

     
    384384                return apply_filters( 'embed_maybe_make_link', $output, $url );
    385385        }
    386386}
    387 $GLOBALS['wp_embed'] = new WP_Embed();
  • src/wp-includes/class-wp-error.php

     
    203203        }
    204204}
    205205
    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.0
    212  *
    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

     
    394394function require_wp_db() {
    395395        global $wpdb;
    396396
    397         require_once( ABSPATH . WPINC . '/wp-db.php' );
    398397        if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )
    399398                require_once( WP_CONTENT_DIR . '/db.php' );
    400399
     
    10451044         */
    10461045        return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
    10471046}
     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 */
     1058function 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 */
     1068function 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

     
    77 * @since 3.0.0
    88 */
    99
    10 /** Walker_Nav_Menu class */
    11 require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';
    12 
    1310/**
    1411 * Displays a navigation menu.
    1512 *
  • src/wp-includes/pomo/mo.php

     
    77 * @subpackage mo
    88 */
    99
    10 require_once dirname(__FILE__) . '/translations.php';
    11 require_once dirname(__FILE__) . '/streams.php';
    12 
    1310if ( ! class_exists( 'MO', false ) ):
    1411class MO extends Gettext_Translations {
    1512
  • src/wp-includes/pomo/po.php

     
    77 * @subpackage po
    88 */
    99
    10 require_once dirname(__FILE__) . '/translations.php';
    11 
    1210if ( ! defined( 'PO_MAX_LINE_LEN' ) ) {
    1311        define('PO_MAX_LINE_LEN', 79);
    1412}
  • src/wp-includes/pomo/translations.php

     
    77 * @subpackage translations
    88 */
    99
    10 require_once dirname(__FILE__) . '/entry.php';
    11 
    1210if ( ! class_exists( 'Translations', false ) ):
    1311class Translations {
    1412        var $entries = array();
  • src/wp-settings.php

     
    9292// Load early WordPress files.
    9393require( ABSPATH . WPINC . '/compat.php' );
    9494require( 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' );
    9895
     96spl_autoload_register( 'wp_core_autoloader' );
     97
    9998// Include the wpdb class and, if present, a db.php database drop-in.
    10099global $wpdb;
    101100require_wp_db();
     
    112111
    113112// Initialize multisite if enabled.
    114113if ( is_multisite() ) {
    115         require( ABSPATH . WPINC . '/class-wp-site-query.php' );
    116         require( ABSPATH . WPINC . '/class-wp-network-query.php' );
    117114        require( ABSPATH . WPINC . '/ms-blogs.php' );
    118115        require( ABSPATH . WPINC . '/ms-settings.php' );
    119116} elseif ( ! defined( 'MULTISITE' ) ) {
     
    133130wp_not_installed();
    134131
    135132// Load most of WordPress.
    136 require( ABSPATH . WPINC . '/class-wp-walker.php' );
    137 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
    138133require( ABSPATH . WPINC . '/formatting.php' );
    139134require( 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' );
    143135require( ABSPATH . WPINC . '/query.php' );
    144 require( ABSPATH . WPINC . '/date.php' );
    145136require( ABSPATH . WPINC . '/theme.php' );
    146 require( ABSPATH . WPINC . '/class-wp-theme.php' );
    147137require( ABSPATH . WPINC . '/template.php' );
    148138require( ABSPATH . WPINC . '/user.php' );
    149 require( ABSPATH . WPINC . '/class-wp-user-query.php' );
    150 require( ABSPATH . WPINC . '/session.php' );
    151139require( ABSPATH . WPINC . '/meta.php' );
    152 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
    153 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
    154140require( ABSPATH . WPINC . '/general-template.php' );
    155141require( ABSPATH . WPINC . '/link-template.php' );
    156142require( ABSPATH . WPINC . '/author-template.php' );
    157143require( 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' );
    162144require( ABSPATH . WPINC . '/post-template.php' );
    163145require( ABSPATH . WPINC . '/revision.php' );
    164146require( ABSPATH . WPINC . '/post-formats.php' );
    165147require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
    166148require( ABSPATH . WPINC . '/category.php' );
    167 require( ABSPATH . WPINC . '/class-walker-category.php' );
    168 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
    169149require( ABSPATH . WPINC . '/category-template.php' );
    170150require( 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' );
    174151require( ABSPATH . WPINC . '/comment-template.php' );
    175152require( ABSPATH . WPINC . '/rewrite.php' );
    176153require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
     
    182159require( ABSPATH . WPINC . '/deprecated.php' );
    183160require( ABSPATH . WPINC . '/script-loader.php' );
    184161require( 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' );
    188162require( ABSPATH . WPINC . '/update.php' );
    189163require( ABSPATH . WPINC . '/canonical.php' );
    190164require( ABSPATH . WPINC . '/shortcodes.php' );
    191165require( ABSPATH . WPINC . '/embed.php' );
    192 require( ABSPATH . WPINC . '/class-wp-embed.php' );
    193 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
    194166require( ABSPATH . WPINC . '/media.php' );
    195167require( ABSPATH . WPINC . '/http.php' );
    196168require( 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' );
    204169require( ABSPATH . WPINC . '/widgets.php' );
    205 require( ABSPATH . WPINC . '/class-wp-widget.php' );
    206 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
    207170require( ABSPATH . WPINC . '/nav-menu.php' );
    208171require( ABSPATH . WPINC . '/nav-menu-template.php' );
    209172require( ABSPATH . WPINC . '/admin-bar.php' );
    210173require( 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' );
    214174
     175$GLOBALS['wp_embed'] = new WP_Embed();
     176
    215177// Load multisite-specific files.
    216178if ( is_multisite() ) {
    217179        require( ABSPATH . WPINC . '/ms-functions.php' );