WordPress.org

Make WordPress Core

Ticket #36335: 36335-revert.diff

File 36335-revert.diff, 29.4 KB (added by wonderboymusic, 4 years ago)
  • src/wp-admin/includes/admin.php

     
    5050require_once(ABSPATH . 'wp-admin/includes/post.php');
    5151
    5252/** WordPress Administration Screen API */
     53require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');
    5354require_once(ABSPATH . 'wp-admin/includes/screen.php');
    5455
    5556/** WordPress Taxonomy Administration API */
     
    5960require_once(ABSPATH . 'wp-admin/includes/template.php');
    6061
    6162/** WordPress List Table Administration API and base class */
     63require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');
     64require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php');
    6265require_once(ABSPATH . 'wp-admin/includes/list-table.php');
    6366
    6467/** WordPress Theme Administration API */
     
    6770/** WordPress User Administration API */
    6871require_once(ABSPATH . 'wp-admin/includes/user.php');
    6972
     73/** WordPress Site Icon API */
     74require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');
     75
    7076/** WordPress Update Administration API */
    7177require_once(ABSPATH . 'wp-admin/includes/update.php');
    7278
  • src/wp-admin/includes/class-ftp.php

     
    903903        $mod_sockets = extension_loaded( 'sockets' );
    904904}
    905905
     906require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
     907
    906908if ( $mod_sockets ) {
    907909        class ftp extends ftp_sockets {}
    908910} else {
  • src/wp-admin/includes/class-wp-filesystem-ftpsockets.php

     
    3030                $this->method = 'ftpsockets';
    3131                $this->errors = new WP_Error();
    3232
     33                // Check if possible to use ftp functions.
     34                if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) {
     35                        return;
     36                }
    3337                $this->ftp = new ftp();
    3438
    3539                if ( empty($opt['port']) )
  • src/wp-admin/includes/class-wp-upgrader.php

     
    99 * @since 2.8.0
    1010 */
    1111
     12/** WP_Upgrader_Skin class */
     13require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
     14
     15/** Plugin_Upgrader_Skin class */
     16require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';
     17
     18/** Theme_Upgrader_Skin class */
     19require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';
     20
     21/** Bulk_Upgrader_Skin class */
     22require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';
     23
     24/** Bulk_Plugin_Upgrader_Skin class */
     25require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';
     26
     27/** Bulk_Theme_Upgrader_Skin class */
     28require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';
     29
     30/** Plugin_Installer_Skin class */
     31require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';
     32
     33/** Theme_Installer_Skin class */
     34require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';
     35
     36/** Language_Pack_Upgrader_Skin class */
     37require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';
     38
     39/** Automatic_Upgrader_Skin class */
     40require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';
     41
     42/** WP_Ajax_Upgrader_Skin class */
     43require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
     44
    1245/**
    1346 * Core class used for upgrading/installing a local set of files via
    1447 * the Filesystem Abstraction classes from a Zip file.
     
    854887        }
    855888
    856889}
     890
     891/** Plugin_Upgrader class */
     892require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
     893
     894/** Theme_Upgrader class */
     895require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php';
     896
     897/** Language_Pack_Upgrader class */
     898require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php';
     899
     900/** Core_Upgrader class */
     901require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php';
     902
     903/** File_Upload_Upgrader class */
     904require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php';
     905
     906/** WP_Automatic_Updater class */
     907require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php';
  • src/wp-admin/includes/deprecated.php

     
    749749
    750750        static $num = 1;
    751751
     752        if ( ! class_exists( '_WP_Editors', false ) )
     753                require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
     754
    752755        $editor_id = 'content' . $num++;
    753756
    754757        $set = array(
     
    11411144        if ( !empty($feedback) )
    11421145                add_filter('update_feedback', $feedback);
    11431146
     1147        include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11441148        $upgrader = new Core_Upgrader();
    11451149        return $upgrader->upgrade($current);
    11461150
     
    11631167        if ( !empty($feedback) )
    11641168                add_filter('update_feedback', $feedback);
    11651169
     1170        include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11661171        $upgrader = new Plugin_Upgrader();
    11671172        return $upgrader->upgrade($plugin);
    11681173}
     
    11841189        if ( !empty($feedback) )
    11851190                add_filter('update_feedback', $feedback);
    11861191
     1192        include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11871193        $upgrader = new Theme_Upgrader();
    11881194        return $upgrader->upgrade($theme);
    11891195}
  • src/wp-admin/includes/file.php

     
    737737
    738738        mbstring_binary_safe_encoding();
    739739
     740        require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
     741
    740742        $archive = new PclZip($file);
    741743
    742744        $archive_files = $archive->extract(PCLZIP_OPT_EXTRACT_AS_STRING);
     
    884886function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) {
    885887        global $wp_filesystem;
    886888
     889        require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');
     890
    887891        $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership );
    888892
    889893        if ( ! $method )
    890894                return false;
    891895
    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         );
     896        if ( ! class_exists( "WP_Filesystem_$method" ) ) {
    899897
    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 
    909898                /**
    910899                 * Filters the path for a specific filesystem method class file.
    911900                 *
     
    918907                 */
    919908                $abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method );
    920909
    921                 if ( ! file_exists( $abstraction_file ) ) {
     910                if ( ! file_exists($abstraction_file) )
    922911                        return;
    923                 }
    924912
    925                 require_once( $abstraction_file );
     913                require_once($abstraction_file);
    926914        }
     915        $method = "WP_Filesystem_$method";
    927916
    928         $wp_filesystem = new $classname( $args );
     917        $wp_filesystem = new $method($args);
    929918
    930919        //Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default.
    931920        if ( ! defined('FS_CONNECT_TIMEOUT') )
  • src/wp-admin/includes/list-table.php

     
    4040        );
    4141
    4242        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
    4346                if ( isset( $args['screen'] ) )
    4447                        $args['screen'] = convert_to_screen( $args['screen'] );
    4548                elseif ( isset( $GLOBALS['hook_suffix'] ) )
  • src/wp-admin/includes/nav-menu.php

     
    77 * @since 3.0.0
    88 */
    99
     10/** Walker_Nav_Menu_Edit class */
     11require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );
     12
     13/** Walker_Nav_Menu_Checklist class */
     14require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' );
     15
    1016/**
    1117 * Prints the appropriate response to a menu quick search.
    1218 *
  • src/wp-admin/includes/template.php

     
    88 * @subpackage Administration
    99 */
    1010
     11/** Walker_Category_Checklist class */
     12require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' );
     13
     14/** WP_Internal_Pointers class */
     15require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' );
     16
    1117//
    1218// Category Checklists
    1319//
  • src/wp-admin/includes/translation-install.php

     
    202202        }
    203203        $translation = (object) $translation;
    204204
     205        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    205206        $skin = new Automatic_Upgrader_Skin;
    206207        $upgrader = new Language_Pack_Upgrader( $skin );
    207208        $translation->type = 'core';
     
    227228                return false;
    228229        }
    229230
     231        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    230232        $skin = new Automatic_Upgrader_Skin;
    231233        $upgrader = new Language_Pack_Upgrader( $skin );
    232234        $upgrader->init();
  • src/wp-admin/includes/update.php

     
    7474        if ( ! $updates || empty( $updates->updates ) )
    7575                return false;
    7676
     77        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     78
    7779        $auto_update = false;
    7880        $upgrader = new WP_Automatic_Updater;
    7981        foreach ( $updates->updates as $update ) {
  • src/wp-admin/install.php

     
    4141/** Load WordPress Translation Install API */
    4242require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    4343
     44/** Load wpdb */
     45require_once( ABSPATH . WPINC . '/wp-db.php' );
     46
    4447nocache_headers();
    4548
    4649$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;
  • src/wp-admin/load-scripts.php

     
    2424if ( empty($load) )
    2525        exit;
    2626
    27 require( ABSPATH . 'wp-vendor/autoload_52.php' );
    2827require( ABSPATH . 'wp-admin/includes/noop.php' );
    2928require( ABSPATH . WPINC . '/script-loader.php' );
    3029require( ABSPATH . WPINC . '/version.php' );
  • src/wp-admin/load-styles.php

     
    1414
    1515define( 'WPINC', 'wp-includes' );
    1616
    17 require( ABSPATH . 'wp-vendor/autoload_52.php' );
    1817require( ABSPATH . 'wp-admin/includes/noop.php' );
    1918require( ABSPATH . WPINC . '/script-loader.php' );
    2019require( ABSPATH . WPINC . '/version.php' );
  • src/wp-admin/update-core.php

     
    164164                _e('You have the latest version of WordPress.');
    165165
    166166                if ( wp_http_supports( array( 'ssl' ) ) ) {
     167                        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    167168                        $upgrader = new WP_Automatic_Updater;
    168169                        $future_minor_update = (object) array(
    169170                                'current'       => $wp_version . '.1.next.minor',
     
    187188        }
    188189
    189190        if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
     191                require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    190192                $upgrader = new WP_Automatic_Updater;
    191193                if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) {
    192194                        echo '<div class="updated inline"><p>';
     
    432434function do_core_upgrade( $reinstall = false ) {
    433435        global $wp_filesystem;
    434436
     437        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     438
    435439        if ( $reinstall )
    436440                $url = 'update-core.php?action=do-core-reinstall';
    437441        else
     
    702706        check_admin_referer( 'upgrade-translations' );
    703707
    704708        require_once( ABSPATH . 'wp-admin/admin-header.php' );
     709        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    705710
    706711        $url = 'update-core.php?action=do-translation-upgrade';
    707712        $nonce = 'upgrade-translations';
  • src/wp-admin/update.php

     
    1212/** WordPress Administration Bootstrap */
    1313require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
     15include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     16
    1517if ( isset($_GET['action']) ) {
    1618        $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : '';
    1719        $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : '';
     
    216218                if ( ! current_user_can('install_themes') )
    217219                        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    218220
     221                include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
     222
    219223                check_admin_referer( 'install-theme_' . $theme );
    220224                $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.
    221225
  • src/wp-includes/admin-bar.php

     
    2323function _wp_admin_bar_init() {
    2424        global $wp_admin_bar;
    2525
    26         if ( ! is_admin_bar_showing() ) {
     26        if ( ! is_admin_bar_showing() )
    2727                return false;
    28         }
    2928
     29        /* Load the admin bar class code ready for instantiation */
     30        require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
     31
    3032        /* Instantiate the admin bar */
    3133
    3234        /**
     
    3739         * @param string $wp_admin_bar_class Admin bar class to use. Default 'WP_Admin_Bar'.
    3840         */
    3941        $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 ) )
    4143                $wp_admin_bar = new $admin_bar_class;
    42         } else {
     44        else
    4345                return false;
    44         }
     46
    4547        $wp_admin_bar->initialize();
    4648        $wp_admin_bar->add_menus();
    4749
     
    292294        }
    293295
    294296        if ( is_network_admin() ) {
    295                 /* translators: %s: site name */
     297                /* translators: %s: site name */ 
    296298                $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
    297299        } elseif ( is_user_admin() ) {
    298                 /* translators: %s: site name */
     300                /* translators: %s: site name */ 
    299301                $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
    300302        }
    301303
  • src/wp-includes/class-http.php

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

     
    205205         * @since 3.4.0
    206206         */
    207207        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
    208244                /**
    209245                 * Filters the core Customizer components to load.
    210246                 *
     
    222258                 */
    223259                $components = apply_filters( 'customize_loaded_components', $this->components, $this );
    224260
     261                require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );
    225262                $this->selective_refresh = new WP_Customize_Selective_Refresh( $this );
    226263
    227264                if ( in_array( 'widgets', $components, true ) ) {
     265                        require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
    228266                        $this->widgets = new WP_Customize_Widgets( $this );
    229267                }
    230268
    231269                if ( in_array( 'nav_menus', $components, true ) ) {
     270                        require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );
    232271                        $this->nav_menus = new WP_Customize_Nav_Menus( $this );
    233272                }
    234273
  • src/wp-includes/nav-menu-template.php

     
    77 * @since 3.0.0
    88 */
    99
     10/** Walker_Nav_Menu class */
     11require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';
     12
    1013/**
    1114 * Displays a navigation menu.
    1215 *
  • src/wp-includes/update.php

     
    505505 */
    506506function wp_maybe_auto_update() {
    507507        include_once( ABSPATH . '/wp-admin/includes/admin.php' );
     508        include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );
    508509
    509510        $upgrader = new WP_Automatic_Updater;
    510511        $upgrader->run();
  • src/wp-includes/wp-diff.php

     
    1616        /** Text_Diff_Renderer_inline class */
    1717        require( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' );
    1818}
     19
     20require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' );
     21require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php' );
     22 No newline at end of file
  • src/wp-settings.php

     
    1717 */
    1818define( 'WPINC', 'wp-includes' );
    1919
    20 // WordPress Core PHP 5.2-compatible Autoloader
    21 require_once( ABSPATH . 'wp-vendor/autoload_52.php' );
    22 
    2320// Include files required for initialization.
    2421require( ABSPATH . WPINC . '/load.php' );
    2522require( ABSPATH . WPINC . '/default-constants.php' );
     
    9592// Load early WordPress files.
    9693require( ABSPATH . WPINC . '/compat.php' );
    9794require( ABSPATH . WPINC . '/functions.php' );
     95require( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' );
     96require( ABSPATH . WPINC . '/class-wp.php' );
     97require( ABSPATH . WPINC . '/class-wp-error.php' );
    9898require( ABSPATH . WPINC . '/pomo/mo.php' );
     99require( ABSPATH . WPINC . '/class-phpass.php' );
    99100
    100101// Include the wpdb class and, if present, a db.php database drop-in.
    101102global $wpdb;
     
    113114
    114115// Initialize multisite if enabled.
    115116if ( is_multisite() ) {
     117        require( ABSPATH . WPINC . '/class-wp-site-query.php' );
     118        require( ABSPATH . WPINC . '/class-wp-network-query.php' );
    116119        require( ABSPATH . WPINC . '/ms-blogs.php' );
    117120        require( ABSPATH . WPINC . '/ms-settings.php' );
    118121} elseif ( ! defined( 'MULTISITE' ) ) {
     
    132135wp_not_installed();
    133136
    134137// Load most of WordPress.
     138require( ABSPATH . WPINC . '/class-wp-walker.php' );
     139require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
    135140require( ABSPATH . WPINC . '/formatting.php' );
    136141require( ABSPATH . WPINC . '/capabilities.php' );
     142require( ABSPATH . WPINC . '/class-wp-roles.php' );
     143require( ABSPATH . WPINC . '/class-wp-role.php' );
     144require( ABSPATH . WPINC . '/class-wp-user.php' );
     145require( ABSPATH . WPINC . '/class-wp-query.php' );
    137146require( ABSPATH . WPINC . '/query.php' );
     147require( ABSPATH . WPINC . '/date.php' );
    138148require( ABSPATH . WPINC . '/theme.php' );
     149require( ABSPATH . WPINC . '/class-wp-theme.php' );
    139150require( ABSPATH . WPINC . '/template.php' );
    140151require( ABSPATH . WPINC . '/user.php' );
     152require( ABSPATH . WPINC . '/class-wp-user-query.php' );
     153require( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
     154require( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );
    141155require( ABSPATH . WPINC . '/meta.php' );
     156require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
     157require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
    142158require( ABSPATH . WPINC . '/general-template.php' );
    143159require( ABSPATH . WPINC . '/link-template.php' );
    144160require( ABSPATH . WPINC . '/author-template.php' );
    145161require( ABSPATH . WPINC . '/post.php' );
     162require( ABSPATH . WPINC . '/class-walker-page.php' );
     163require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
     164require( ABSPATH . WPINC . '/class-wp-post-type.php' );
     165require( ABSPATH . WPINC . '/class-wp-post.php' );
    146166require( ABSPATH . WPINC . '/post-template.php' );
    147167require( ABSPATH . WPINC . '/revision.php' );
    148168require( ABSPATH . WPINC . '/post-formats.php' );
    149169require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
    150170require( ABSPATH . WPINC . '/category.php' );
     171require( ABSPATH . WPINC . '/class-walker-category.php' );
     172require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
    151173require( ABSPATH . WPINC . '/category-template.php' );
    152174require( ABSPATH . WPINC . '/comment.php' );
     175require( ABSPATH . WPINC . '/class-wp-comment.php' );
     176require( ABSPATH . WPINC . '/class-wp-comment-query.php' );
     177require( ABSPATH . WPINC . '/class-walker-comment.php' );
    153178require( ABSPATH . WPINC . '/comment-template.php' );
    154179require( ABSPATH . WPINC . '/rewrite.php' );
     180require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
    155181require( ABSPATH . WPINC . '/feed.php' );
    156182require( ABSPATH . WPINC . '/bookmark.php' );
    157183require( ABSPATH . WPINC . '/bookmark-template.php' );
     
    160186require( ABSPATH . WPINC . '/deprecated.php' );
    161187require( ABSPATH . WPINC . '/script-loader.php' );
    162188require( ABSPATH . WPINC . '/taxonomy.php' );
     189require( ABSPATH . WPINC . '/class-wp-term.php' );
     190require( ABSPATH . WPINC . '/class-wp-term-query.php' );
     191require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
    163192require( ABSPATH . WPINC . '/update.php' );
    164193require( ABSPATH . WPINC . '/canonical.php' );
    165194require( ABSPATH . WPINC . '/shortcodes.php' );
    166195require( ABSPATH . WPINC . '/embed.php' );
     196require( ABSPATH . WPINC . '/class-wp-embed.php' );
     197require( ABSPATH . WPINC . '/class-oembed.php' );
     198require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
    167199require( ABSPATH . WPINC . '/media.php' );
    168200require( ABSPATH . WPINC . '/http.php' );
     201require( ABSPATH . WPINC . '/class-http.php' );
     202require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
     203require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
     204require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
     205require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
     206require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
     207require( ABSPATH . WPINC . '/class-wp-http-response.php' );
     208require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
    169209require( ABSPATH . WPINC . '/widgets.php' );
     210require( ABSPATH . WPINC . '/class-wp-widget.php' );
     211require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
    170212require( ABSPATH . WPINC . '/nav-menu.php' );
    171213require( ABSPATH . WPINC . '/nav-menu-template.php' );
    172214require( ABSPATH . WPINC . '/admin-bar.php' );
    173215require( ABSPATH . WPINC . '/rest-api.php' );
     216require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
     217require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
     218require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
     219require( ABSPATH . WPINC . '/class-wp-locale.php' );
    174220
    175221$GLOBALS['wp_embed'] = new WP_Embed();
    176222
  • src/wp-vendor/autoload_52.php

     
    44
    55require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
    66
    7 return ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9::getLoader();
     7return ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c::getLoader();
  • src/wp-vendor/composer/autoload_real_52.php

     
    22
    33// autoload_real_52.php generated by xrstf/composer-php52
    44
    5 class ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9 {
     5class ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c {
    66        private static $loader;
    77
    88        public static function loadClassLoader($class) {
     
    1919                        return self::$loader;
    2020                }
    2121
    22                 spl_autoload_register(array('ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9', 'loadClassLoader'), true /*, true */);
     22                spl_autoload_register(array('ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c', 'loadClassLoader'), true /*, true */);
    2323                self::$loader = $loader = new xrstf_Composer52_ClassLoader();
    24                 spl_autoload_unregister(array('ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9', 'loadClassLoader'));
     24                spl_autoload_unregister(array('ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c', 'loadClassLoader'));
    2525
    2626                $vendorDir = dirname(dirname(__FILE__));
    2727                $baseDir   = dirname($vendorDir);
  • tests/phpunit/includes/install.php

     
    2020require_once ABSPATH . '/wp-settings.php';
    2121
    2222require_once ABSPATH . '/wp-admin/includes/upgrade.php';
     23require_once ABSPATH . '/wp-includes/wp-db.php';
    2324
    2425// Override the PHPMailer
    2526global $phpmailer;
  • tests/phpunit/includes/testcase-xmlrpc.php

     
    11<?php
    2 include_once( ABSPATH . 'wp-admin/includes/admin.php' );
     2include_once(ABSPATH . 'wp-admin/includes/admin.php');
     3include_once(ABSPATH . WPINC . '/class-IXR.php');
     4include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
    35
    46class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
    57        protected $myxmlrpcserver;