WordPress.org

Make WordPress Core

Changeset 38470


Ignore:
Timestamp:
08/31/2016 04:30:48 PM (3 years ago)
Author:
wonderboymusic
Message:

Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389.

See #36335.

Location:
trunk
Files:
49 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin.php

    r38411 r38470  
    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
     
    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
     
    6770/** WordPress User Administration API */
    6871require_once(ABSPATH . 'wp-admin/includes/user.php');
     72
     73/** WordPress Site Icon API */
     74require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');
    6975
    7076/** WordPress Update Administration API */
  • trunk/src/wp-admin/includes/ajax-actions.php

    r38465 r38470  
    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
     
    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();
     
    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();
     
    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
     
    33013305    }
    33023306
     3307    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    33033308    include_once( ABSPATH . 'wp-admin/includes/theme.php' );
    33043309
     
    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 ) ) {
     
    35563563    }
    35573564
     3565    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    35583566    include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
    35593567
     
    36633671    }
    36643672
     3673    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     3674
    36653675    wp_update_plugins();
    36663676
  • trunk/src/wp-admin/includes/class-ftp.php

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

    r38411 r38470  
    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
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r38411 r38470  
    99 * @since 2.8.0
    1010 */
     11
     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';
    1144
    1245/**
     
    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';
  • trunk/src/wp-admin/includes/deprecated.php

    r38411 r38470  
    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
     
    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);
     
    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);
     
    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);
  • trunk/src/wp-admin/includes/file.php

    r38411 r38470  
    738738    mbstring_binary_safe_encoding();
    739739
     740    require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
     741
    740742    $archive = new PclZip($file);
    741743
     
    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
     
    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     );
    899 
    900     $l = strtolower( $method );
    901     if ( array_key_exists( $l, $map ) ) {
    902         $classname = $map[ $l ];
    903     } else {
    904         $classname = "WP_Filesystem_{$method}";
    905     }
    906 
    907     if ( ! class_exists( $classname ) ) {
     896    if ( ! class_exists( "WP_Filesystem_$method" ) ) {
    908897
    909898        /**
     
    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         }
    924 
    925         require_once( $abstraction_file );
    926     }
    927 
    928     $wp_filesystem = new $classname( $args );
     912
     913        require_once($abstraction_file);
     914    }
     915    $method = "WP_Filesystem_$method";
     916
     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.
  • trunk/src/wp-admin/includes/list-table.php

    r38455 r38470  
    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'] );
  • trunk/src/wp-admin/includes/nav-menu.php

    r38411 r38470  
    77 * @since 3.0.0
    88 */
     9
     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' );
    915
    1016/**
  • trunk/src/wp-admin/includes/template.php

    r38468 r38470  
    88 * @subpackage Administration
    99 */
     10
     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' );
    1016
    1117//
  • trunk/src/wp-admin/includes/translation-install.php

    r38411 r38470  
    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 );
     
    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 );
  • trunk/src/wp-admin/includes/update.php

    r38411 r38470  
    7474    if ( ! $updates || empty( $updates->updates ) )
    7575        return false;
     76
     77    include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    7678
    7779    $auto_update = false;
  • trunk/src/wp-admin/install.php

    r38411 r38470  
    4141/** Load WordPress Translation Install API */
    4242require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     43
     44/** Load wpdb */
     45require_once( ABSPATH . WPINC . '/wp-db.php' );
    4346
    4447nocache_headers();
  • trunk/src/wp-admin/load-scripts.php

    r38412 r38470  
    2525    exit;
    2626
    27 require( ABSPATH . 'wp-vendor/autoload_52.php' );
    2827require( ABSPATH . 'wp-admin/includes/noop.php' );
    2928require( ABSPATH . WPINC . '/script-loader.php' );
  • trunk/src/wp-admin/load-styles.php

    r38412 r38470  
    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' );
  • trunk/src/wp-admin/press-this.php

    r38466 r38470  
    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();
  • trunk/src/wp-admin/update-core.php

    r38459 r38470  
    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(
     
    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 ) ) {
     
    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';
     
    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';
  • trunk/src/wp-admin/update.php

    r38411 r38470  
    1212/** WordPress Administration Bootstrap */
    1313require_once( dirname( __FILE__ ) . '/admin.php' );
     14
     15include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1416
    1517if ( isset($_GET['action']) ) {
     
    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.
  • trunk/src/wp-includes/admin-bar.php

    r38411 r38470  
    2424    global $wp_admin_bar;
    2525
    26     if ( ! is_admin_bar_showing() ) {
     26    if ( ! is_admin_bar_showing() )
    2727        return false;
    28     }
     28
     29    /* Load the admin bar class code ready for instantiation */
     30    require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
    2931
    3032    /* Instantiate the 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();
     
    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    }
  • trunk/src/wp-includes/class-IXR.php

    r38411 r38470  
    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' );
  • trunk/src/wp-includes/class-http.php

    r38459 r38470  
    88 */
    99
    10 if ( ! class_exists( 'Requests', false ) ) {
     10if ( ! class_exists( 'Requests' ) ) {
    1111    require( ABSPATH . WPINC . '/class-requests.php' );
    1212
  • trunk/src/wp-includes/class-phpmailer.php

    r38411 r38470  
    13861386    {
    13871387        if (!is_object($this->smtp)) {
     1388            require_once( 'class-smtp.php' );
    13881389            $this->smtp = new SMTP;
    13891390        }
  • trunk/src/wp-includes/class-wp-customize-control.php

    r38411 r38470  
    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' );
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r38411 r38470  
    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.
     
    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        }
  • trunk/src/wp-includes/class-wp-customize-panel.php

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

    r38411 r38470  
    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' );
  • trunk/src/wp-includes/class-wp-customize-setting.php

    r38436 r38470  
    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' );
  • trunk/src/wp-includes/comment.php

    r38459 r38470  
    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();
     
    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));
  • trunk/src/wp-includes/customize/class-wp-customize-selective-refresh.php

    r38411 r38470  
    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' ) );
  • trunk/src/wp-includes/feed.php

    r38411 r38470  
    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
  • trunk/src/wp-includes/functions.php

    r38469 r38470  
    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
     
    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 ); 
    2875 
    2876     if ( ! headers_sent() ) { 
    2877         status_header( $r['response'] ); 
     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 );
     2877
     2878    if ( ! headers_sent() ) {
     2879        status_header( $r['response'] );
    28782880    }
    28792881    if ( is_scalar( $message ) )
  • trunk/src/wp-includes/general-template.php

    r38468 r38470  
    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}
  • trunk/src/wp-includes/link-template.php

    r38468 r38470  
    29032903    global $is_IE;
    29042904
     2905    include_once( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     2906
    29052907    $link = '';
    29062908
  • trunk/src/wp-includes/load.php

    r38457 r38470  
    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' );
  • trunk/src/wp-includes/media.php

    r38459 r38470  
    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.
  • trunk/src/wp-includes/ms-settings.php

    r38411 r38470  
    2222 */
    2323global $current_site, $current_blog;
     24
     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' );
    2430
    2531/** Multisite loader */
  • trunk/src/wp-includes/nav-menu-template.php

    r38411 r38470  
    77 * @since 3.0.0
    88 */
     9
     10/** Walker_Nav_Menu class */
     11require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';
    912
    1013/**
  • trunk/src/wp-includes/pluggable.php

    r38421 r38470  
    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    }
  • trunk/src/wp-includes/script-loader.php

    r38426 r38470  
    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' );
     30
     31/** WordPress Styles Class */
     32require( ABSPATH . WPINC . '/class.wp-styles.php' );
    2133
    2234/** WordPress Styles Functions */
  • trunk/src/wp-includes/theme.php

    r38411 r38470  
    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        }
     
    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        }
     
    20812083    }
    20822084
     2085    require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    20832086    $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    20842087}
  • trunk/src/wp-includes/update.php

    r38411 r38470  
    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;
  • trunk/src/wp-includes/wp-diff.php

    r38411 r38470  
    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' );
  • trunk/src/wp-mail.php

    r38411 r38470  
    2121 */
    2222do_action( 'wp-mail.php' );
     23
     24/** Get the POP3 class with which to access the mailbox. */
     25require_once( ABSPATH . WPINC . '/class-pop3.php' );
    2326
    2427/** Only check at this interval for new messages. */
  • trunk/src/wp-settings.php

    r38469 r38470  
    1717 */
    1818define( 'WPINC', 'wp-includes' );
    19 
    20 // WordPress Core PHP 5.2-compatible Autoloader
    21 require_once( ABSPATH . 'wp-vendor/autoload_52.php' );
    2219
    2320// Include files required for initialization.
     
    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.
     
    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' );
     
    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' );
     
    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' );
     
    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();
  • trunk/src/wp-vendor/autoload_52.php

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

    r38411 r38470  
    33// autoload_real_52.php generated by xrstf/composer-php52
    44
    5 class ComposerAutoloaderInit1dd196791ebd0cfea0668c22edc062f9 {
     5class ComposerAutoloaderInit84e65be829c2294b794a94e0a8b5807c {
    66    private static $loader;
    77
     
    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__));
  • trunk/src/xmlrpc.php

    r38411 r38470  
    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/**
  • trunk/tests/phpunit/includes/install.php

    r38411 r38470  
    2121
    2222require_once ABSPATH . '/wp-admin/includes/upgrade.php';
     23require_once ABSPATH . '/wp-includes/wp-db.php';
    2324
    2425// Override the PHPMailer
  • trunk/tests/phpunit/includes/testcase-xmlrpc.php

    r38411 r38470  
    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 {
Note: See TracChangeset for help on using the changeset viewer.