WordPress.org

Make WordPress Core

Ticket #36335: 36335-revert.2.diff

File 36335-revert.2.diff, 47.3 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/ajax-actions.php

     
    14951495
    14961496        $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    14971497
     1498        require(ABSPATH . WPINC . '/class-wp-editor.php');
    14981499        $results = _WP_Editors::wp_link_query( $args );
    14991500
    15001501        if ( ! isset( $results ) )
     
    31153116 * @since 4.2.0
    31163117 */
    31173118function wp_ajax_press_this_save_post() {
     3119        include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
    31183120        $wp_press_this = new WP_Press_This();
    31193121        $wp_press_this->save_post();
    31203122}
     
    31253127 * @since 4.2.0
    31263128 */
    31273129function wp_ajax_press_this_add_category() {
     3130        include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
    31283131        $wp_press_this = new WP_Press_This();
    31293132        $wp_press_this->add_category();
    31303133}
     
    31523155
    31533156        switch ( $context ) {
    31543157                case 'site-icon':
     3158                        require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php';
    31553159                        $wp_site_icon = new WP_Site_Icon();
    31563160
    31573161                        // Skip creating a new attachment if the attachment is a Site Icon.
     
    33003304                wp_send_json_error( $status );
    33013305        }
    33023306
     3307        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    33033308        include_once( ABSPATH . 'wp-admin/includes/theme.php' );
    33043309
    33053310        $api = themes_api( 'theme_information', array(
     
    34063411                wp_send_json_error( $status );
    34073412        }
    34083413
     3414        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     3415
    34093416        $current = get_site_transient( 'update_themes' );
    34103417        if ( empty( $current ) ) {
    34113418                wp_update_themes();
     
    35553562                wp_send_json_error( $status );
    35563563        }
    35573564
     3565        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    35583566        include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
    35593567
    35603568        $api = plugins_api( 'plugin_information', array(
     
    36623670                $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
    36633671        }
    36643672
     3673        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     3674
    36653675        wp_update_plugins();
    36663676
    36673677        $skin     = new WP_Ajax_Upgrader_Skin();
  • 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/press-this.php

     
    1919        );
    2020}
    2121
     22include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
    2223$wp_press_this = new WP_Press_This();
    2324$wp_press_this->html();
  • 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-IXR.php

     
    3838 * @link       http://scripts.incutio.com/xmlrpc/ Site/manual
    3939 * @license    http://www.opensource.org/licenses/bsd-license.php BSD
    4040 */
     41
     42require_once( ABSPATH . WPINC . '/IXR/class-IXR-server.php' );
     43
     44require_once( ABSPATH . WPINC . '/IXR/class-IXR-base64.php' );
     45
     46require_once( ABSPATH . WPINC . '/IXR/class-IXR-client.php' );
     47
     48require_once( ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php' );
     49
     50require_once( ABSPATH . WPINC . '/IXR/class-IXR-date.php' );
     51
     52require_once( ABSPATH . WPINC . '/IXR/class-IXR-error.php' );
     53
     54require_once( ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php' );
     55
     56require_once( ABSPATH . WPINC . '/IXR/class-IXR-message.php' );
     57
     58require_once( ABSPATH . WPINC . '/IXR/class-IXR-request.php' );
     59
     60require_once( ABSPATH . WPINC . '/IXR/class-IXR-value.php' );
     61 No newline at end of file
  • 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-phpmailer.php

     
    13851385    public function getSMTPInstance()
    13861386    {
    13871387        if (!is_object($this->smtp)) {
     1388                        require_once( 'class-smtp.php' );
    13881389            $this->smtp = new SMTP;
    13891390        }
    13901391        return $this->smtp;
  • src/wp-includes/class-wp-customize-control.php

     
    598598        protected function content_template() {}
    599599
    600600}
     601
     602/** WP_Customize_Color_Control class */
     603require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
     604
     605/** WP_Customize_Media_Control class */
     606require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
     607
     608/** WP_Customize_Upload_Control class */
     609require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
     610
     611/** WP_Customize_Image_Control class */
     612require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
     613
     614/** WP_Customize_Background_Image_Control class */
     615require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
     616
     617/** WP_Customize_Cropped_Image_Control class */
     618require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
     619
     620/** WP_Customize_Site_Icon_Control class */
     621require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
     622
     623/** WP_Customize_Header_Image_Control class */
     624require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
     625
     626/** WP_Customize_Theme_Control class */
     627require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
     628
     629/** WP_Widget_Area_Customize_Control class */
     630require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
     631
     632/** WP_Widget_Form_Customize_Control class */
     633require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
     634
     635/** WP_Customize_Nav_Menu_Control class */
     636require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
     637
     638/** WP_Customize_Nav_Menu_Item_Control class */
     639require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
     640
     641/** WP_Customize_Nav_Menu_Location_Control class */
     642require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
     643
     644/** WP_Customize_Nav_Menu_Name_Control class */
     645require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
     646
     647/** WP_Customize_Nav_Menu_Auto_Add_Control class */
     648require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
     649
     650/** WP_Customize_New_Menu_Control class */
     651require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' );
  • 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/class-wp-customize-panel.php

     
    384384                <?php
    385385        }
    386386}
     387
     388/** WP_Customize_Nav_Menus_Panel class */
     389require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
  • src/wp-includes/class-wp-customize-section.php

     
    373373                <?php
    374374        }
    375375}
     376
     377/** WP_Customize_Themes_Section class */
     378require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
     379
     380/** WP_Customize_Sidebar_Section class */
     381require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
     382
     383/** WP_Customize_Nav_Menu_Section class */
     384require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
     385
     386/** WP_Customize_New_Menu_Section class */
     387require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );
  • src/wp-includes/class-wp-customize-setting.php

     
    895895                return isset( $result );
    896896        }
    897897}
     898
     899/** WP_Customize_Filter_Setting class */
     900require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
     901
     902/** WP_Customize_Header_Image_Setting class */
     903require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
     904
     905/** WP_Customize_Background_Image_Setting class */
     906require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
     907
     908/** WP_Customize_Nav_Menu_Item_Setting class */
     909require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
     910
     911/** WP_Customize_Nav_Menu_Setting class */
     912require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
  • src/wp-includes/comment.php

     
    23662366 * @param int $post_ID Post ID.
    23672367 */
    23682368function pingback($content, $post_ID) {
     2369        include_once( ABSPATH . WPINC . '/class-IXR.php' );
     2370        include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
     2371
    23692372        // original code by Mort (http://mort.mine.nu:8080)
    23702373        $post_links = array();
    23712374
     
    25042507 * @param string $path Path to send the ping.
    25052508 */
    25062509function weblog_ping($server = '', $path = '') {
     2510        include_once( ABSPATH . WPINC . '/class-IXR.php' );
     2511        include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
     2512
    25072513        // using a timeout of 3 seconds should be enough to cover slow servers
    25082514        $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
    25092515        $client->timeout = 3;
  • src/wp-includes/customize/class-wp-customize-selective-refresh.php

     
    6767         */
    6868        public function __construct( WP_Customize_Manager $manager ) {
    6969                $this->manager = $manager;
     70                require_once( ABSPATH . WPINC . '/customize/class-wp-customize-partial.php' );
    7071
    7172                add_action( 'customize_preview_init', array( $this, 'init_preview' ) );
    7273        }
  • src/wp-includes/feed.php

     
    667667                require_once( ABSPATH . WPINC . '/class-simplepie.php' );
    668668        }
    669669
     670        require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
     671        require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
     672        require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
     673        require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
     674
    670675        $feed = new SimplePie();
    671676
    672677        $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' );
  • src/wp-includes/functions.php

     
    563563        global $wpdb;
    564564
    565565        //TODO: Tidy this ghetto code up and make the debug code optional
     566        include_once( ABSPATH . WPINC . '/class-IXR.php' );
     567
    566568        $post_links = array();
    567569
    568570        $pung = get_enclosed( $post_ID );
     
    28632865 * @since 3.4.0
    28642866 * @access private
    28652867 *
    2866  * @param string       $message Error message. 
    2867  * @param string       $title   Optional. Error title (unused). Default empty. 
    2868  * @param string|array $args    Optional. Arguments to control behavior. Default empty array. 
    2869  */ 
    2870 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { 
    2871         $defaults = array( 
    2872                 'response' => 200, 
    2873         ); 
    2874         $r = wp_parse_args( $args, $defaults ); 
     2868 * @param string       $message Error message.
     2869 * @param string       $title   Optional. Error title (unused). Default empty.
     2870 * @param string|array $args    Optional. Arguments to control behavior. Default empty array.
     2871 */
     2872function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
     2873        $defaults = array(
     2874                'response' => 200,
     2875        );
     2876        $r = wp_parse_args( $args, $defaults );
    28752877
    2876         if ( ! headers_sent() ) { 
    2877                 status_header( $r['response'] ); 
     2878        if ( ! headers_sent() ) {
     2879                status_header( $r['response'] );
    28782880        }
    28792881        if ( is_scalar( $message ) )
    28802882                die( (string) $message );
  • src/wp-includes/general-template.php

     
    29802980 * @param array  $settings  See _WP_Editors::editor().
    29812981 */
    29822982function wp_editor( $content, $editor_id, $settings = array() ) {
     2983        if ( ! class_exists( '_WP_Editors', false ) )
     2984                require( ABSPATH . WPINC . '/class-wp-editor.php' );
    29832985        _WP_Editors::editor($content, $editor_id, $settings);
    29842986}
    29852987
  • src/wp-includes/link-template.php

     
    29022902function get_shortcut_link() {
    29032903        global $is_IE;
    29042904
     2905        include_once( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     2906
    29052907        $link = '';
    29062908
    29072909        if ( $is_IE ) {
  • src/wp-includes/load.php

     
    394394function require_wp_db() {
    395395        global $wpdb;
    396396
     397        require_once( ABSPATH . WPINC . '/wp-db.php' );
    397398        if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )
    398399                require_once( WP_CONTENT_DIR . '/db.php' );
    399400
  • src/wp-includes/media.php

     
    29132913 *                     editor claims to support the request.
    29142914 */
    29152915function _wp_image_editor_choose( $args = array() ) {
     2916        require_once ABSPATH . WPINC . '/class-wp-image-editor.php';
     2917        require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php';
     2918        require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
    29162919        /**
    29172920         * Filters the list of image editing library classes.
    29182921         *
  • src/wp-includes/ms-settings.php

     
    2222 */
    2323global $current_site, $current_blog;
    2424
     25/** WP_Network class */
     26require_once( ABSPATH . WPINC . '/class-wp-network.php' );
     27
     28/** WP_Site class */
     29require_once( ABSPATH . WPINC . '/class-wp-site.php' );
     30
    2531/** Multisite loader */
    2632require_once( ABSPATH . WPINC . '/ms-load.php' );
    2733
  • 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/pluggable.php

     
    211211        // (Re)create it, if it's gone missing
    212212        if ( ! ( $phpmailer instanceof PHPMailer ) ) {
    213213                require_once ABSPATH . WPINC . '/class-phpmailer.php';
     214                require_once ABSPATH . WPINC . '/class-smtp.php';
    214215                $phpmailer = new PHPMailer( true );
    215216        }
    216217
  • src/wp-includes/script-loader.php

     
    1616 * @package WordPress
    1717 */
    1818
     19/** WordPress Dependency Class */
     20require( ABSPATH . WPINC . '/class-wp-dependency.php' );
     21
     22/** WordPress Dependencies Class */
     23require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
     24
     25/** WordPress Scripts Class */
     26require( ABSPATH . WPINC . '/class.wp-scripts.php' );
     27
    1928/** WordPress Scripts Functions */
    2029require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
    2130
     31/** WordPress Styles Class */
     32require( ABSPATH . WPINC . '/class.wp-styles.php' );
     33
    2234/** WordPress Styles Functions */
    2335require( ABSPATH . WPINC . '/functions.wp-styles.php' );
    2436
  • src/wp-includes/theme.php

     
    17561756                        add_action( 'wp_head', $args[0]['wp-head-callback'] );
    17571757
    17581758                if ( is_admin() ) {
     1759                        require_once( ABSPATH . 'wp-admin/custom-header.php' );
    17591760                        $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
    17601761                }
    17611762        }
     
    17681769                add_action( 'wp_head', $args[0]['wp-head-callback'] );
    17691770
    17701771                if ( is_admin() ) {
     1772                        require_once( ABSPATH . 'wp-admin/custom-background.php' );
    17711773                        $custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
    17721774                }
    17731775        }
     
    20802082                return;
    20812083        }
    20822084
     2085        require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    20832086        $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    20842087}
    20852088
  • 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-mail.php

     
    2121 */
    2222do_action( 'wp-mail.php' );
    2323
     24/** Get the POP3 class with which to access the mailbox. */
     25require_once( ABSPATH . WPINC . '/class-pop3.php' );
     26
    2427/** Only check at this interval for new messages. */
    2528if ( !defined('WP_MAIL_INTERVAL') )
    2629        define('WP_MAIL_INTERVAL', 300); // 5 minutes
  • 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);
  • src/xmlrpc.php

     
    5959exit;
    6060}
    6161
    62 include_once( ABSPATH . 'wp-admin/includes/admin.php' );
     62include_once(ABSPATH . 'wp-admin/includes/admin.php');
     63include_once(ABSPATH . WPINC . '/class-IXR.php');
     64include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
    6365
    6466/**
    6567 * Posts submitted via the XML-RPC interface get that title
  • 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;