Make WordPress Core

Ticket #36335: 36335.4.diff

File 36335.4.diff, 72.1 KB (added by netweb, 8 years ago)
  • composer.json

     
     1{
     2        "name": "wordpress/wordpress",
     3        "description": "WordPress is web software you can use to create a beautiful website or blog.",
     4        "keywords": [
     5                "blog",
     6                "cms"
     7        ],
     8        "type": "wordpress-core",
     9        "homepage": "https://wordpress.org/",
     10        "license": "GPL-2.0+",
     11        "authors": [
     12                {
     13                        "name": "WordPress Community",
     14                        "homepage": "https://wordpress.org/about/"
     15                }
     16        ],
     17        "support": {
     18                "issues": "https://core.trac.wordpress.org/",
     19                "forum": "https://wordpress.org/support/",
     20                "wiki": "https://codex.wordpress.org/",
     21                "irc": "irc://irc.freenode.net/wordpress",
     22                "source": "https://core.trac.wordpress.org/browser"
     23        },
     24        "require": {
     25                "xrstf/composer-php52": "1.*"
     26        },
     27        "scripts": {
     28                "post-install-cmd": [
     29                        "xrstf\\Composer52\\Generator::onPostInstallCmd"
     30                ],
     31                "post-update-cmd": [
     32                        "xrstf\\Composer52\\Generator::onPostInstallCmd"
     33                ],
     34                "post-autoload-dump": [
     35                        "xrstf\\Composer52\\Generator::onPostInstallCmd"
     36                ]
     37        },
     38        "autoload": {
     39                "classmap": [
     40                        "src/wp-includes/",
     41                        "src/wp-admin/"
     42                ]
     43        },
     44        "config": {
     45                "vendor-dir": "src/vendor"
     46        }
     47}
     48 No newline at end of file
  • src/wp-admin/includes/admin.php

     
    5050require_once(ABSPATH . 'wp-admin/includes/post.php');
    5151
    5252/** WordPress Administration Screen API */
    53 require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');
    5453require_once(ABSPATH . 'wp-admin/includes/screen.php');
    5554
    5655/** WordPress Taxonomy Administration API */
     
    6059require_once(ABSPATH . 'wp-admin/includes/template.php');
    6160
    6261/** WordPress List Table Administration API and base class */
    63 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');
    6462require_once(ABSPATH . 'wp-admin/includes/list-table.php');
    6563
    6664/** WordPress Theme Administration API */
     
    6967/** WordPress User Administration API */
    7068require_once(ABSPATH . 'wp-admin/includes/user.php');
    7169
    72 /** WordPress Site Icon API */
    73 require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');
    74 
    7570/** WordPress Update Administration API */
    7671require_once(ABSPATH . 'wp-admin/includes/update.php');
    7772
  • src/wp-admin/includes/ajax-actions.php

     
    15071507
    15081508        $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    15091509
    1510         require(ABSPATH . WPINC . '/class-wp-editor.php');
    15111510        $results = _WP_Editors::wp_link_query( $args );
    15121511
    15131512        if ( ! isset( $results ) )
     
    31373136 */
    31383137function wp_ajax_press_this_save_post() {
    31393138        if ( empty( $GLOBALS['wp_press_this'] ) ) {
    3140                 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     3139                $GLOBALS['wp_press_this'] = new WP_Press_This();
    31413140        }
    31423141
    31433142        $GLOBALS['wp_press_this']->save_post();
     
    31523151 */
    31533152function wp_ajax_press_this_add_category() {
    31543153        if ( empty( $GLOBALS['wp_press_this'] ) ) {
    3155                 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     3154                $GLOBALS['wp_press_this'] = new WP_Press_This();
    31563155        }
    31573156
    31583157        $GLOBALS['wp_press_this']->add_category();
     
    31833182
    31843183        switch ( $context ) {
    31853184                case 'site-icon':
    3186                         require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php';
    3187                         global $wp_site_icon;
     3185                        $wp_site_icon = new WP_Site_Icon;
    31883186
    31893187                        // Skip creating a new attachment if the attachment is a Site Icon.
    31903188                        if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) {
     
    33323330                wp_send_json_error( $status );
    33333331        }
    33343332
    3335         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    33363333        include_once( ABSPATH . 'wp-admin/includes/theme.php' );
    33373334
    33383335        $api = themes_api( 'theme_information', array(
     
    34393436                wp_send_json_error( $status );
    34403437        }
    34413438
    3442         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    3443 
    34443439        $current = get_site_transient( 'update_themes' );
    34453440        if ( empty( $current ) ) {
    34463441                wp_update_themes();
     
    35903585                wp_send_json_error( $status );
    35913586        }
    35923587
    3593         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    35943588        include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
    35953589
    35963590        $api = plugins_api( 'plugin_information', array(
     
    36983692                $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
    36993693        }
    37003694
    3701         include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    3702 
    37033695        wp_update_plugins();
    37043696
    37053697        $skin     = new WP_Ajax_Upgrader_Skin();
  • src/wp-admin/includes/class-wp-press-this.php

     
    479479                        // Embedded Daily Motion videos
    480480                        $src = 'https://www.dailymotion.com/video/' . $src_matches[2];
    481481                } else {
    482                         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    483482                        $oembed = _wp_oembed_get_object();
    484483
    485484                        if ( ! $oembed->get_provider( $src, array( 'discover' => false ) ) ) {
  • src/wp-admin/includes/class-wp-site-icon.php

     
    240240                return $value;
    241241        }
    242242}
    243 
    244 /**
    245  * @global WP_Site_Icon $wp_site_icon
    246  */
    247 $GLOBALS['wp_site_icon'] = new WP_Site_Icon;
  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    66 * @subpackage Upgrader
    77 * @since 2.8.0
    88 */
    9 
    10 /** WP_Upgrader_Skin class */
    11 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
    12 
    13 /** Plugin_Upgrader_Skin class */
    14 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';
    15 
    16 /** Theme_Upgrader_Skin class */
    17 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';
    18 
    19 /** Bulk_Upgrader_Skin class */
    20 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';
    21 
    22 /** Bulk_Plugin_Upgrader_Skin class */
    23 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';
    24 
    25 /** Bulk_Theme_Upgrader_Skin class */
    26 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';
    27 
    28 /** Plugin_Installer_Skin class */
    29 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';
    30 
    31 /** Theme_Installer_Skin class */
    32 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';
    33 
    34 /** Language_Pack_Upgrader_Skin class */
    35 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';
    36 
    37 /** Automatic_Upgrader_Skin class */
    38 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';
    39 
    40 /** WP_Ajax_Upgrader_Skin class */
    41 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
  • src/wp-admin/includes/class-wp-upgrader.php

     
    99 * @since 2.8.0
    1010 */
    1111
    12 /** WP_Upgrader_Skin class */
    13 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
    14 
    15 /** Plugin_Upgrader_Skin class */
    16 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';
    17 
    18 /** Theme_Upgrader_Skin class */
    19 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';
    20 
    21 /** Bulk_Upgrader_Skin class */
    22 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';
    23 
    24 /** Bulk_Plugin_Upgrader_Skin class */
    25 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';
    26 
    27 /** Bulk_Theme_Upgrader_Skin class */
    28 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';
    29 
    30 /** Plugin_Installer_Skin class */
    31 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';
    32 
    33 /** Theme_Installer_Skin class */
    34 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';
    35 
    36 /** Language_Pack_Upgrader_Skin class */
    37 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';
    38 
    39 /** Automatic_Upgrader_Skin class */
    40 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';
    41 
    42 /** WP_Ajax_Upgrader_Skin class */
    43 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
    44 
    4512/**
    4613 * Core class used for upgrading/installing a local set of files via
    4714 * the Filesystem Abstraction classes from a Zip file.
     
    888855
    889856}
    890857
    891 /** Plugin_Upgrader class */
    892 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
    893 
    894 /** Theme_Upgrader class */
    895 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php';
    896 
    897 /** Language_Pack_Upgrader class */
    898 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php';
    899 
    900 /** Core_Upgrader class */
    901 require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php';
    902 
    903 /** File_Upload_Upgrader class */
    904 require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php';
    905 
    906 /** WP_Automatic_Updater class */
    907 require_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 
    755752        $editor_id = 'content' . $num++;
    756753
    757754        $set = array(
     
    11441141        if ( !empty($feedback) )
    11451142                add_filter('update_feedback', $feedback);
    11461143
    1147         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11481144        $upgrader = new Core_Upgrader();
    11491145        return $upgrader->upgrade($current);
    11501146
     
    11671163        if ( !empty($feedback) )
    11681164                add_filter('update_feedback', $feedback);
    11691165
    1170         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11711166        $upgrader = new Plugin_Upgrader();
    11721167        return $upgrader->upgrade($plugin);
    11731168}
     
    11891184        if ( !empty($feedback) )
    11901185                add_filter('update_feedback', $feedback);
    11911186
    1192         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11931187        $upgrader = new Theme_Upgrader();
    11941188        return $upgrader->upgrade($theme);
    11951189}
  • src/wp-admin/includes/file.php

     
    737737
    738738        mbstring_binary_safe_encoding();
    739739
    740         require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
    741 
    742740        $archive = new PclZip($file);
    743741
    744742        $archive_files = $archive->extract(PCLZIP_OPT_EXTRACT_AS_STRING);
     
    886884function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) {
    887885        global $wp_filesystem;
    888886
    889         require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');
    890 
    891887        $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership );
    892888
    893889        if ( ! $method )
  • 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 
    4643                if ( isset( $args['screen'] ) )
    4744                        $args['screen'] = convert_to_screen( $args['screen'] );
    4845                elseif ( isset( $GLOBALS['hook_suffix'] ) )
  • src/wp-admin/includes/media.php

     
    30133013                define( 'GETID3_TEMP_DIR', get_temp_dir() );
    30143014        }
    30153015
    3016         if ( ! class_exists( 'getID3', false ) ) {
    3017                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
    3018         }
    30193016        $id3 = new getID3();
    30203017        $data = $id3->analyze( $file );
    30213018
     
    30743071                define( 'GETID3_TEMP_DIR', get_temp_dir() );
    30753072        }
    30763073
    3077         if ( ! class_exists( 'getID3', false ) ) {
    3078                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
    3079         }
    30803074        $id3 = new getID3();
    30813075        $data = $id3->analyze( $file );
    30823076
  • src/wp-admin/includes/nav-menu.php

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

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

     
    202202        }
    203203        $translation = (object) $translation;
    204204
    205         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    206205        $skin = new Automatic_Upgrader_Skin;
    207206        $upgrader = new Language_Pack_Upgrader( $skin );
    208207        $translation->type = 'core';
     
    228227                return false;
    229228        }
    230229
    231         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    232230        $skin = new Automatic_Upgrader_Skin;
    233231        $upgrader = new Language_Pack_Upgrader( $skin );
    234232        $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 
    7977        $auto_update = false;
    8078        $upgrader = new WP_Automatic_Updater;
    8179        foreach ( $updates->updates as $update ) {
  • src/wp-admin/network/upgrade.php

     
    1313if ( ! is_multisite() )
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require_once( ABSPATH . WPINC . '/http.php' );
    17 
    1816$title = __( 'Upgrade Network' );
    1917$parent_file = 'upgrade.php';
    2018
  • src/wp-admin/press-this.php

     
    2323 * @global WP_Press_This $wp_press_this
    2424 */
    2525if ( empty( $GLOBALS['wp_press_this'] ) ) {
    26         include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     26        $GLOBALS['wp_press_this'] = new WP_Press_This();
    2727}
    2828
    2929$GLOBALS['wp_press_this']->html();
  • src/wp-admin/update-core.php

     
    163163                _e('You have the latest version of WordPress.');
    164164
    165165                if ( wp_http_supports( array( 'ssl' ) ) ) {
    166                         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    167166                        $upgrader = new WP_Automatic_Updater;
    168167                        $future_minor_update = (object) array(
    169168                                'current'       => $wp_version . '.1.next.minor',
     
    187186        }
    188187
    189188        if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
    190                 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    191189                $upgrader = new WP_Automatic_Updater;
    192190                if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) {
    193191                        echo '<div class="updated inline"><p>';
     
    438436function do_core_upgrade( $reinstall = false ) {
    439437        global $wp_filesystem;
    440438
    441         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    442 
    443439        if ( $reinstall )
    444440                $url = 'update-core.php?action=do-core-reinstall';
    445441        else
     
    710706        check_admin_referer( 'upgrade-translations' );
    711707
    712708        require_once( ABSPATH . 'wp-admin/admin-header.php' );
    713         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    714709
    715710        $url = 'update-core.php?action=do-translation-upgrade';
    716711        $nonce = 'upgrade-translations';
  • src/wp-admin/update.php

     
    1212/** WordPress Administration Bootstrap */
    1313require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    15 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    16 
    1715if ( isset($_GET['action']) ) {
    1816        $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : '';
    1917        $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : '';
     
    218216                if ( ! current_user_can('install_themes') )
    219217                        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    220218
    221                 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
    222 
    223219                check_admin_referer( 'install-theme_' . $theme );
    224220                $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.
    225221
  • src/wp-includes/Text/Diff/Renderer/inline.php

     
    1313
    1414/** Text_Diff_Renderer */
    1515
    16 // WP #7391
    17 require_once dirname(dirname(__FILE__)) . '/Renderer.php';
    18 
    1916/**
    2017 * "Inline" diff renderer.
    2118 *
  • src/wp-includes/Text/Diff.php

     
    4747            $engine = basename($engine);
    4848        }
    4949
    50         // WP #7391
    51         require_once dirname(__FILE__).'/Diff/Engine/' . $engine . '.php';
    5250        $class = 'Text_Diff_Engine_' . $engine;
    5351        $diff_engine = new $class();
    5452
  • src/wp-includes/admin-bar.php

     
    2626        if ( ! is_admin_bar_showing() )
    2727                return false;
    2828
    29         /* Load the admin bar class code ready for instantiation */
    30         require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
    31 
    3229        /* Instantiate the admin bar */
    3330
    3431        /**
     
    294291        }
    295292
    296293        if ( is_network_admin() ) {
    297                 /* translators: %s: site name */
     294                /* translators: %s: site name */
    298295                $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
    299296        } elseif ( is_user_admin() ) {
    300                 /* translators: %s: site name */
     297                /* translators: %s: site name */
    301298                $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
    302299        }
    303300
  • src/wp-includes/class-feed.php

     
    11<?php
    2 
    3 if ( ! class_exists( 'SimplePie', false ) )
    4         require_once( ABSPATH . WPINC . '/class-simplepie.php' );
    5 
    62/**
    73 * Core class used to implement a feed cache.
    84 *
  • src/wp-includes/class-oembed.php

     
    678678        }
    679679}
    680680
    681 /**
    682  * Returns the initialized WP_oEmbed object.
    683  *
    684  * @since 2.9.0
    685  * @access private
    686  *
    687  * @staticvar WP_oEmbed $wp_oembed
    688  *
    689  * @return WP_oEmbed object.
    690  */
    691 function _wp_oembed_get_object() {
    692         static $wp_oembed = null;
    693 
    694         if ( is_null( $wp_oembed ) ) {
    695                 $wp_oembed = new WP_oEmbed();
    696         }
    697         return $wp_oembed;
    698 }
  • src/wp-includes/class-phpmailer.php

     
    13851385    public function getSMTPInstance()
    13861386    {
    13871387        if (!is_object($this->smtp)) {
    1388                 require_once( 'class-smtp.php' );
    13891388            $this->smtp = new SMTP;
    13901389        }
    13911390        return $this->smtp;
  • src/wp-includes/class-simplepie.php

     
    11<?php
    22if ( ! class_exists( 'SimplePie', false ) ) :
    33
    4 // Load classes we will need.
    5 require ABSPATH . WPINC . '/SimplePie/Misc.php';
    6 require ABSPATH . WPINC . '/SimplePie/Cache.php';
    7 require ABSPATH . WPINC . '/SimplePie/File.php';
    8 require ABSPATH . WPINC . '/SimplePie/Sanitize.php';
    9 require ABSPATH . WPINC . '/SimplePie/Registry.php';
    10 require ABSPATH . WPINC . '/SimplePie/IRI.php';
    11 require ABSPATH . WPINC . '/SimplePie/Locator.php';
    12 require ABSPATH . WPINC . '/SimplePie/Content/Type/Sniffer.php';
    13 require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php';
    14 require ABSPATH . WPINC . '/SimplePie/Parser.php';
    15 require ABSPATH . WPINC . '/SimplePie/Item.php';
    16 require ABSPATH . WPINC . '/SimplePie/Parse/Date.php';
    17 require ABSPATH . WPINC . '/SimplePie/Author.php';
    18 
    194/**
    205 * WordPress autoloader for SimplePie.
    216 *
  • src/wp-includes/class-wp-customize-control.php

     
    599599
    600600}
    601601
    602 /** WP_Customize_Color_Control class */
    603 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
    604 
    605 /** WP_Customize_Media_Control class */
    606 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
    607 
    608 /** WP_Customize_Upload_Control class */
    609 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
    610 
    611 /** WP_Customize_Image_Control class */
    612 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
    613 
    614 /** WP_Customize_Background_Image_Control class */
    615 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
    616 
    617 /** WP_Customize_Cropped_Image_Control class */
    618 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
    619 
    620 /** WP_Customize_Site_Icon_Control class */
    621 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
    622 
    623 /** WP_Customize_Header_Image_Control class */
    624 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
    625 
    626 /** WP_Customize_Theme_Control class */
    627 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
    628 
    629 /** WP_Widget_Area_Customize_Control class */
    630 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
    631 
    632 /** WP_Widget_Form_Customize_Control class */
    633 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
    634 
    635 /** WP_Customize_Nav_Menu_Control class */
    636 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
    637 
    638 /** WP_Customize_Nav_Menu_Item_Control class */
    639 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
    640 
    641 /** WP_Customize_Nav_Menu_Location_Control class */
    642 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
    643 
    644 /** WP_Customize_Nav_Menu_Name_Control class */
    645 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
    646 
    647 /** WP_Customize_Nav_Menu_Auto_Add_Control class */
    648 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
    649 
    650 /** WP_Customize_New_Menu_Control class */
    651 require_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 
    244208                /**
    245209                 * Filters the core Customizer components to load.
    246210                 *
     
    258222                 */
    259223                $components = apply_filters( 'customize_loaded_components', $this->components, $this );
    260224
    261                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );
    262225                $this->selective_refresh = new WP_Customize_Selective_Refresh( $this );
    263226
    264227                if ( in_array( 'widgets', $components, true ) ) {
    265                         require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
    266228                        $this->widgets = new WP_Customize_Widgets( $this );
    267229                }
    268230
    269231                if ( in_array( 'nav_menus', $components, true ) ) {
    270                         require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );
    271232                        $this->nav_menus = new WP_Customize_Nav_Menus( $this );
    272233                }
    273234
  • src/wp-includes/class-wp-customize-panel.php

     
    384384                <?php
    385385        }
    386386}
    387 
    388 /** WP_Customize_Nav_Menus_Panel class */
    389 require_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 */
    378 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
    379 
    380 /** WP_Customize_Sidebar_Section class */
    381 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
    382 
    383 /** WP_Customize_Nav_Menu_Section class */
    384 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
    385 
    386 /** WP_Customize_New_Menu_Section class */
    387 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );
  • src/wp-includes/class-wp-customize-setting.php

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

     
    202202                unset( $this->error_data[ $code ] );
    203203        }
    204204}
    205 
    206 /**
    207  * Check whether variable is a WordPress Error.
    208  *
    209  * Returns true if $thing is an object of the WP_Error class.
    210  *
    211  * @since 2.1.0
    212  *
    213  * @param mixed $thing Check if unknown variable is a WP_Error object.
    214  * @return bool True, if WP_Error. False, if not WP_Error.
    215  */
    216 function is_wp_error( $thing ) {
    217         return ( $thing instanceof WP_Error );
    218 }
  • src/wp-includes/comment.php

     
    23692369 */
    23702370function pingback($content, $post_ID) {
    23712371        global $wp_version;
    2372         include_once(ABSPATH . WPINC . '/class-IXR.php');
    2373         include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');
    23742372
    23752373        // original code by Mort (http://mort.mine.nu:8080)
    23762374        $post_links = array();
     
    25132511 */
    25142512function weblog_ping($server = '', $path = '') {
    25152513        global $wp_version;
    2516         include_once(ABSPATH . WPINC . '/class-IXR.php');
    2517         include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');
    25182514
    25192515        // using a timeout of 3 seconds should be enough to cover slow servers
    25202516        $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
  • src/wp-includes/compat.php

     
    280280                global $wp_json;
    281281
    282282                if ( ! ( $wp_json instanceof Services_JSON ) ) {
    283                         require_once( ABSPATH . WPINC . '/class-json.php' );
    284283                        $wp_json = new Services_JSON();
    285284                }
    286285
     
    299298                global $wp_json;
    300299
    301300                if ( ! ($wp_json instanceof Services_JSON ) ) {
    302                         require_once( ABSPATH . WPINC . '/class-json.php' );
    303301                        $wp_json = new Services_JSON();
    304302                }
    305303
  • 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' );
    7170
    7271                add_action( 'customize_preview_init', array( $this, 'init_preview' ) );
    7372        }
  • src/wp-includes/default-widgets.php

     
    1 <?php
    2 /**
    3  * Widget API: Default core widgets
    4  *
    5  * @package WordPress
    6  * @subpackage Widgets
    7  * @since 2.8.0
    8  */
    9 
    10 /** WP_Widget_Pages class */
    11 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-pages.php' );
    12 
    13 /** WP_Widget_Links class */
    14 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-links.php' );
    15 
    16 /** WP_Widget_Search class */
    17 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-search.php' );
    18 
    19 /** WP_Widget_Archives class */
    20 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php' );
    21 
    22 /** WP_Widget_Meta class */
    23 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php' );
    24 
    25 /** WP_Widget_Calendar class */
    26 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-calendar.php' );
    27 
    28 /** WP_Widget_Text class */
    29 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-text.php' );
    30 
    31 /** WP_Widget_Categories class */
    32 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-categories.php' );
    33 
    34 /** WP_Widget_Recent_Posts class */
    35 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-posts.php' );
    36 
    37 /** WP_Widget_Recent_Comments class */
    38 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-comments.php' );
    39 
    40 /** WP_Widget_RSS class */
    41 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-rss.php' );
    42 
    43 /** WP_Widget_Tag_Cloud class */
    44 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-tag-cloud.php' );
    45 
    46 /** WP_Nav_Menu_Widget class */
    47 require_once( ABSPATH . WPINC . '/widgets/class-wp-nav-menu-widget.php' );
  • src/wp-includes/embed.php

    Property changes on: src/wp-includes/default-widgets.php
    ___________________________________________________________________
    Deleted: svn:eol-style
    ## -1 +0,0 ##
    -native
    \ No newline at end of property
     
    9494 * @return false|string False on failure or the embed HTML on success.
    9595 */
    9696function wp_oembed_get( $url, $args = '' ) {
    97         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    9897        $oembed = _wp_oembed_get_object();
    9998        return $oembed->get_html( $url, $args );
    10099}
     
    112111 * @param boolean $regex    Optional. Whether the `$format` parameter is in a RegEx format. Default false.
    113112 */
    114113function wp_oembed_add_provider( $format, $provider, $regex = false ) {
    115         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    116 
    117114        if ( did_action( 'plugins_loaded' ) ) {
    118115                $oembed = _wp_oembed_get_object();
    119116                $oembed->providers[$format] = array( $provider, $regex );
     
    133130 * @return bool Was the provider removed successfully?
    134131 */
    135132function wp_oembed_remove_provider( $format ) {
    136         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    137 
    138133        if ( did_action( 'plugins_loaded' ) ) {
    139134                $oembed = _wp_oembed_get_object();
    140135
     
    706701                return $result;
    707702        }
    708703
    709         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    710704        $wp_oembed = _wp_oembed_get_object();
    711705
    712706        // Don't modify the HTML for trusted providers.
     
    10721066
    10731067        return $data;
    10741068}
     1069
     1070/**
     1071 * Returns the initialized WP_oEmbed object.
     1072 *
     1073 * @since 2.9.0
     1074 * @access private
     1075 *
     1076 * @staticvar WP_oEmbed $wp_oembed
     1077 *
     1078 * @return WP_oEmbed object.
     1079 */
     1080function _wp_oembed_get_object() {
     1081        static $wp_oembed = null;
     1082
     1083        if ( is_null( $wp_oembed ) ) {
     1084                $wp_oembed = new WP_oEmbed();
     1085        }
     1086        return $wp_oembed;
     1087}
  • src/wp-includes/feed.php

     
    663663 * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success
    664664 */
    665665function fetch_feed( $url ) {
    666         require_once( ABSPATH . WPINC . '/class-feed.php' );
    667 
    668666        $feed = new SimplePie();
    669667
    670668        $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 
    568566        $post_links = array();
    569567
    570568        $pung = get_enclosed( $post_ID );
     
    35923590                return;
    35933591        }
    35943592
    3595         require_once( ABSPATH . WPINC . '/default-widgets.php' );
    3596 
    35973593        add_action( '_admin_menu', 'wp_widgets_add_menu' );
    35983594}
    35993595
  • 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' );
    2985 
    29862983        _WP_Editors::editor($content, $editor_id, $settings);
    29872984}
    29882985
  • src/wp-includes/l10n.php

     
    11391139
    11401140        return $output;
    11411141}
     1142
     1143/**
     1144 * Checks if current locale is RTL.
     1145 *
     1146 * @since 3.0.0
     1147 *
     1148 * @global WP_Locale $wp_locale
     1149 *
     1150 * @return bool Whether locale is RTL.
     1151 */
     1152function is_rtl() {
     1153        global $wp_locale;
     1154        return $wp_locale->is_rtl();
     1155}
     1156 No newline at end of file
  • src/wp-includes/load.php

     
    865865        require ABSPATH . WPINC . '/version.php';
    866866
    867867        // Translation and localization
    868         require_once ABSPATH . WPINC . '/pomo/mo.php';
    869868        require_once ABSPATH . WPINC . '/l10n.php';
    870         require_once ABSPATH . WPINC . '/locale.php';
    871869
    872870        // General libraries
    873871        require_once ABSPATH . WPINC . '/plugin.php';
     
    10451043         */
    10461044        return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
    10471045}
     1046
     1047/**
     1048 * Check whether variable is a WordPress Error.
     1049 *
     1050 * Returns true if $thing is an object of the WP_Error class.
     1051 *
     1052 * @since 2.1.0
     1053 *
     1054 * @param mixed $thing Check if unknown variable is a WP_Error object.
     1055 * @return bool True, if WP_Error. False, if not WP_Error.
     1056 */
     1057function is_wp_error( $thing ) {
     1058        return ( $thing instanceof WP_Error );
     1059}
     1060 No newline at end of file
  • src/wp-includes/locale.php

     
    77 * @since 1.2.0
    88 */
    99
    10 /** WP_Locale class */
    11 require_once ABSPATH . WPINC . '/class-wp-locale.php';
    12 
    1310/**
    1411 * Checks if current locale is RTL.
    1512 *
  • src/wp-includes/media.php

     
    29092909 *                     editor claims to support the request.
    29102910 */
    29112911function _wp_image_editor_choose( $args = array() ) {
    2912         require_once ABSPATH . WPINC . '/class-wp-image-editor.php';
    2913         require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php';
    2914         require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
    2915 
    29162912        /**
    29172913         * Filters the list of image editing library classes.
    29182914         *
  • src/wp-includes/ms-settings.php

     
    2222 */
    2323global $current_site, $current_blog;
    2424
    25 /** WP_Network class */
    26 require_once( ABSPATH . WPINC . '/class-wp-network.php' );
    27 
    28 /** WP_Site class */
    29 require_once( ABSPATH . WPINC . '/class-wp-site.php' );
    30 
    3125/** Multisite loader */
    3226require_once( ABSPATH . WPINC . '/ms-load.php' );
    3327
  • src/wp-includes/nav-menu-template.php

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

     
    210210
    211211        // (Re)create it, if it's gone missing
    212212        if ( ! ( $phpmailer instanceof PHPMailer ) ) {
    213                 require_once ABSPATH . WPINC . '/class-phpmailer.php';
    214                 require_once ABSPATH . WPINC . '/class-smtp.php';
    215213                $phpmailer = new PHPMailer( true );
    216214        }
    217215
     
    17391737
    17401738        // Now insert the key, hashed, into the DB.
    17411739        if ( empty( $wp_hasher ) ) {
    1742                 require_once ABSPATH . WPINC . '/class-phpass.php';
    17431740                $wp_hasher = new PasswordHash( 8, true );
    17441741        }
    17451742        $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
     
    20142011        global $wp_hasher;
    20152012
    20162013        if ( empty($wp_hasher) ) {
    2017                 require_once( ABSPATH . WPINC . '/class-phpass.php');
    20182014                // By default, use the portable hash from phpass
    20192015                $wp_hasher = new PasswordHash(8, true);
    20202016        }
     
    20742070        // If the stored hash is longer than an MD5, presume the
    20752071        // new style phpass portable hash.
    20762072        if ( empty($wp_hasher) ) {
    2077                 require_once( ABSPATH . WPINC . '/class-phpass.php');
    20782073                // By default, use the portable hash from phpass
    20792074                $wp_hasher = new PasswordHash(8, true);
    20802075        }
     
    24092404        $defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' );
    24102405        $args = wp_parse_args( $args, $defaults );
    24112406
    2412         if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) )
    2413                 require( ABSPATH . WPINC . '/wp-diff.php' );
    2414 
    24152407        $left_string  = normalize_whitespace($left_string);
    24162408        $right_string = normalize_whitespace($right_string);
    24172409
  • src/wp-includes/pomo/mo.php

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

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

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

     
    785785        if ( ! isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) )
    786786                return true;
    787787
    788         require_once ABSPATH . WPINC . '/class-phpass.php';
    789788        $hasher = new PasswordHash( 8, true );
    790789
    791790        $hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] );
  • src/wp-includes/script-loader.php

     
    1616 * @package WordPress
    1717 */
    1818
    19 /** WordPress Dependencies Class */
    20 require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
    21 
    22 /** WordPress Scripts Class */
    23 require( ABSPATH . WPINC . '/class.wp-scripts.php' );
    24 
    2519/** WordPress Scripts Functions */
    2620require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
    2721
    28 /** WordPress Styles Class */
    29 require( ABSPATH . WPINC . '/class.wp-styles.php' );
    30 
    3122/** WordPress Styles Functions */
    3223require( ABSPATH . WPINC . '/functions.wp-styles.php' );
    3324
  • 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' );
    17601759                        $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
    17611760                }
    17621761        }
     
    17691768                add_action( 'wp_head', $args[0]['wp-head-callback'] );
    17701769
    17711770                if ( is_admin() ) {
    1772                         require_once( ABSPATH . 'wp-admin/custom-background.php' );
    17731771                        $custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
    17741772                }
    17751773        }
     
    20822080                return;
    20832081        }
    20842082
    2085         require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    20862083        $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    20872084}
    20882085
  • 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' );
    509508
    510509        $upgrader = new WP_Automatic_Updater;
    511510        $upgrader->run();
  • src/wp-includes/user.php

     
    20952095
    20962096        // Now insert the key, hashed, into the DB.
    20972097        if ( empty( $wp_hasher ) ) {
    2098                 require_once ABSPATH . WPINC . '/class-phpass.php';
    20992098                $wp_hasher = new PasswordHash( 8, true );
    21002099        }
    21012100        $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
     
    21402139                return new WP_Error('invalid_key', __('Invalid key'));
    21412140
    21422141        if ( empty( $wp_hasher ) ) {
    2143                 require_once ABSPATH . WPINC . '/class-phpass.php';
    21442142                $wp_hasher = new PasswordHash( 8, true );
    21452143        }
    21462144
  • src/wp-includes/wp-diff.php

     
    88 * @subpackage Diff
    99 */
    1010
    11 if ( ! class_exists( 'Text_Diff', false ) ) {
    12         /** Text_Diff class */
    13         require( dirname(__FILE__).'/Text/Diff.php' );
    14         /** Text_Diff_Renderer class */
    15         require( dirname(__FILE__).'/Text/Diff/Renderer.php' );
    16         /** Text_Diff_Renderer_inline class */
    17         require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' );
    18 }
    19 
    2011/**
    2112 * Table renderer to display the diff lines.
    2213 *
  • src/wp-load.php

     
    2525
    2626error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    2727
     28// Load the PHP 5.2 compatible autoloader.
     29if ( ! file_exists( ABSPATH . '/vendor/autoload_52.php' ) ) {
     30    die( 'Autoloader was not found, aborting.' );
     31}
     32
     33require_once( ABSPATH . '/vendor/autoload_52.php' );
     34
    2835/*
    2936 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
    3037 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
  • src/wp-login.php

     
    439439                exit();
    440440        }
    441441
    442         require_once ABSPATH . WPINC . '/class-phpass.php';
    443442        $hasher = new PasswordHash( 8, true );
    444443
    445444        /**
  • src/wp-mail.php

     
    2121 */
    2222do_action( 'wp-mail.php' );
    2323
    24 /** Get the POP3 class with which to access the mailbox. */
    25 require_once( ABSPATH . WPINC . '/class-pop3.php' );
    26 
    2724/** Only check at this interval for new messages. */
    2825if ( !defined('WP_MAIL_INTERVAL') )
    2926        define('WP_MAIL_INTERVAL', 300); // 5 minutes
  • src/wp-settings.php

     
    9292// Load early WordPress files.
    9393require( ABSPATH . WPINC . '/compat.php' );
    9494require( ABSPATH . WPINC . '/functions.php' );
    95 require( ABSPATH . WPINC . '/class-wp.php' );
    96 require( ABSPATH . WPINC . '/class-wp-error.php' );
    97 require( ABSPATH . WPINC . '/pomo/mo.php' );
    9895
    9996// Include the wpdb class and, if present, a db.php database drop-in.
    10097global $wpdb;
     
    112109
    113110// Initialize multisite if enabled.
    114111if ( is_multisite() ) {
    115         require( ABSPATH . WPINC . '/class-wp-site-query.php' );
    116         require( ABSPATH . WPINC . '/class-wp-network-query.php' );
    117112        require( ABSPATH . WPINC . '/ms-blogs.php' );
    118113        require( ABSPATH . WPINC . '/ms-settings.php' );
    119114} elseif ( ! defined( 'MULTISITE' ) ) {
     
    133128wp_not_installed();
    134129
    135130// Load most of WordPress.
    136 require( ABSPATH . WPINC . '/class-wp-walker.php' );
    137 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
    138131require( ABSPATH . WPINC . '/formatting.php' );
    139132require( ABSPATH . WPINC . '/capabilities.php' );
    140 require( ABSPATH . WPINC . '/class-wp-roles.php' );
    141 require( ABSPATH . WPINC . '/class-wp-role.php' );
    142 require( ABSPATH . WPINC . '/class-wp-user.php' );
    143133require( ABSPATH . WPINC . '/query.php' );
    144134require( ABSPATH . WPINC . '/date.php' );
    145135require( ABSPATH . WPINC . '/theme.php' );
    146 require( ABSPATH . WPINC . '/class-wp-theme.php' );
    147136require( ABSPATH . WPINC . '/template.php' );
    148137require( ABSPATH . WPINC . '/user.php' );
    149 require( ABSPATH . WPINC . '/class-wp-user-query.php' );
    150138require( ABSPATH . WPINC . '/session.php' );
    151139require( ABSPATH . WPINC . '/meta.php' );
    152 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
    153 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
    154140require( ABSPATH . WPINC . '/general-template.php' );
    155141require( ABSPATH . WPINC . '/link-template.php' );
    156142require( ABSPATH . WPINC . '/author-template.php' );
    157143require( ABSPATH . WPINC . '/post.php' );
    158 require( ABSPATH . WPINC . '/class-walker-page.php' );
    159 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
    160 require( ABSPATH . WPINC . '/class-wp-post-type.php' );
    161 require( ABSPATH . WPINC . '/class-wp-post.php' );
    162144require( ABSPATH . WPINC . '/post-template.php' );
    163145require( ABSPATH . WPINC . '/revision.php' );
    164146require( ABSPATH . WPINC . '/post-formats.php' );
    165147require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
    166148require( ABSPATH . WPINC . '/category.php' );
    167 require( ABSPATH . WPINC . '/class-walker-category.php' );
    168 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
    169149require( ABSPATH . WPINC . '/category-template.php' );
    170150require( ABSPATH . WPINC . '/comment.php' );
    171 require( ABSPATH . WPINC . '/class-wp-comment.php' );
    172 require( ABSPATH . WPINC . '/class-wp-comment-query.php' );
    173 require( ABSPATH . WPINC . '/class-walker-comment.php' );
    174151require( ABSPATH . WPINC . '/comment-template.php' );
    175152require( ABSPATH . WPINC . '/rewrite.php' );
    176 require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
    177153require( ABSPATH . WPINC . '/feed.php' );
    178154require( ABSPATH . WPINC . '/bookmark.php' );
    179155require( ABSPATH . WPINC . '/bookmark-template.php' );
     
    182158require( ABSPATH . WPINC . '/deprecated.php' );
    183159require( ABSPATH . WPINC . '/script-loader.php' );
    184160require( ABSPATH . WPINC . '/taxonomy.php' );
    185 require( ABSPATH . WPINC . '/class-wp-term.php' );
    186 require( ABSPATH . WPINC . '/class-wp-term-query.php' );
    187 require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
    188161require( ABSPATH . WPINC . '/update.php' );
    189162require( ABSPATH . WPINC . '/canonical.php' );
    190163require( ABSPATH . WPINC . '/shortcodes.php' );
    191164require( ABSPATH . WPINC . '/embed.php' );
    192 require( ABSPATH . WPINC . '/class-wp-embed.php' );
    193 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
    194165require( ABSPATH . WPINC . '/media.php' );
    195166require( ABSPATH . WPINC . '/http.php' );
    196 require( ABSPATH . WPINC . '/class-http.php' );
    197 require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
    198 require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
    199 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
    200 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
    201 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
    202 require( ABSPATH . WPINC . '/class-wp-http-response.php' );
    203 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
    204167require( ABSPATH . WPINC . '/widgets.php' );
    205 require( ABSPATH . WPINC . '/class-wp-widget.php' );
    206 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
    207168require( ABSPATH . WPINC . '/nav-menu.php' );
    208169require( ABSPATH . WPINC . '/nav-menu-template.php' );
    209170require( ABSPATH . WPINC . '/admin-bar.php' );
    210171require( ABSPATH . WPINC . '/rest-api.php' );
    211 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
    212 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
    213 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
    214172
     173$GLOBALS['wp_embed'] = new WP_Embed();
     174
    215175// Load multisite-specific files.
    216176if ( is_multisite() ) {
    217177        require( ABSPATH . WPINC . '/ms-functions.php' );
     
    369329        require( $locale_file );
    370330unset( $locale_file );
    371331
    372 // Pull in locale data after loading text domain.
    373 require_once( ABSPATH . WPINC . '/locale.php' );
    374 
    375332/**
    376333 * WordPress Locale object for loading locale domain date and various strings.
    377334 * @global WP_Locale $wp_locale
  • src/xmlrpc.php

     
    6060}
    6161
    6262include_once(ABSPATH . 'wp-admin/includes/admin.php');
    63 include_once(ABSPATH . WPINC . '/class-IXR.php');
    64 include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
    6563
    6664/**
    6765 * Posts submitted via the XML-RPC interface get that title
  • tests/phpunit/includes/bootstrap.php

     
    33 * Installs WordPress for running the tests and loads WordPress and the test libraries
    44 */
    55
    6 
    76$config_file_path = dirname( dirname( __FILE__ ) );
    87if ( ! file_exists( $config_file_path . '/wp-tests-config.php' ) ) {
    98        // Support the config file from the root of the develop repository.
     
    2423require_once $config_file_path;
    2524require_once dirname( __FILE__ ) . '/functions.php';
    2625
     26// Load the PHP 5.2 compatible autoloader.
     27if ( ! file_exists( ABSPATH . '/vendor/autoload_52.php' ) ) {
     28    die( 'Autoloader was not found, aborting.' );
     29}
     30
     31require_once( ABSPATH . '/vendor/autoload_52.php' );
     32
    2733tests_reset__SERVER();
    2834
    2935define( 'WP_TESTS_TABLE_PREFIX', $table_prefix );
  • tests/phpunit/includes/install.php

     
    1313require_once $config_file_path;
    1414require_once dirname( __FILE__ ) . '/functions.php';
    1515
     16// Load the PHP 5.2 compatible autoloader.
     17if ( ! file_exists( ABSPATH . '/vendor/autoload_52.php' ) ) {
     18    die( 'Autoloader was not found, aborting.' );
     19}
     20
     21require_once( ABSPATH . '/vendor/autoload_52.php' );
     22
    1623tests_reset__SERVER();
    1724
    1825$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
  • tests/phpunit/tests/adminbar.php

     
    1414
    1515        protected static $user_ids = array();
    1616
    17         public static function setUpBeforeClass() {
    18                 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
    19 
    20                 parent::setUpBeforeClass();
    21         }
    22 
    2317        public static function wpSetUpBeforeClass( $factory ) {
    2418                self::$user_ids[] = self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) );
    2519                self::$user_ids[] = self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) );
  • tests/phpunit/tests/ajax/CustomizeMenus.php

     
    2121         */
    2222        public function setUp() {
    2323                parent::setUp();
    24                 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
     24
    2525                wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    2626                global $wp_customize;
    2727                $this->wp_customize = new WP_Customize_Manager();
  • tests/phpunit/tests/auth.php

     
    2222
    2323                self::$user_id = self::$_user->ID;
    2424
    25                 require_once( ABSPATH . WPINC . '/class-phpass.php' );
    2625                self::$wp_hasher = new PasswordHash( 8, true );
    2726        }
    2827
  • tests/phpunit/tests/customize/manager.php

     
    3131         */
    3232        function setUp() {
    3333                parent::setUp();
    34                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
     34
    3535                $this->manager = $this->instantiate();
    3636                $this->undefined = new stdClass();
    3737        }
     
    977977        }
    978978}
    979979
    980 require_once ABSPATH . WPINC . '/class-wp-customize-setting.php';
    981 
    982980/**
    983981 * Class Test_Dynamic_Customize_Setting
    984982 *
  • tests/phpunit/tests/customize/nav-menu-item-setting.php

     
    2020         */
    2121        function setUp() {
    2222                parent::setUp();
    23                 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
     23
    2424                wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    2525
    2626                global $wp_customize;
  • tests/phpunit/tests/customize/nav-menu-setting.php

     
    2121         */
    2222        function setUp() {
    2323                parent::setUp();
    24                 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
     24
    2525                wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    2626
    2727                global $wp_customize;
  • tests/phpunit/tests/customize/nav-menus.php

     
    2121         */
    2222        function setUp() {
    2323                parent::setUp();
    24                 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
     24
    2525                wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    2626                global $wp_customize;
    2727                $this->wp_customize = new WP_Customize_Manager();
  • tests/phpunit/tests/customize/panel.php

     
    1414
    1515        function setUp() {
    1616                parent::setUp();
    17                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
     17
    1818                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    1919                $this->manager = $GLOBALS['wp_customize'];
    2020                $this->undefined = new stdClass();
     
    211211        }
    212212}
    213213
    214 require_once ABSPATH . WPINC . '/class-wp-customize-panel.php';
    215214class Custom_Panel_Test extends WP_Customize_Panel {
    216215        public $type = 'titleless';
    217216
  • tests/phpunit/tests/customize/partial.php

     
    3131         */
    3232        function setUp() {
    3333                parent::setUp();
    34                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
     34
    3535                // @codingStandardsIgnoreStart
    3636                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    3737                // @codingStandardsIgnoreEnd
  • tests/phpunit/tests/customize/section.php

     
    2626
    2727        function setUp() {
    2828                parent::setUp();
    29                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
     29
    3030                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    3131                $this->manager = $GLOBALS['wp_customize'];
    3232                $this->undefined = new stdClass();
     
    224224        }
    225225}
    226226
    227 require_once ABSPATH . WPINC . '/class-wp-customize-section.php';
    228227class Custom_Section_Test extends WP_Customize_Section {
    229228        public $type = 'titleless';
    230229
  • tests/phpunit/tests/customize/selective-refresh-ajax.php

     
    4343                }
    4444                add_filter( 'wp_die_ajax_handler', array( $this, 'get_wp_die_handler' ), 1, 1 );
    4545
    46                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    4746                // @codingStandardsIgnoreStart
    4847                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    4948                // @codingStandardsIgnoreEnd
  • tests/phpunit/tests/customize/selective-refresh.php

     
    3131         */
    3232        function setUp() {
    3333                parent::setUp();
    34                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
     34
    3535                // @codingStandardsIgnoreStart
    3636                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    3737                // @codingStandardsIgnoreEnd
     
    256256        }
    257257}
    258258
    259 require_once ABSPATH . WPINC . '/customize/class-wp-customize-partial.php';
    260 
    261259/**
    262260 * Class Tested_Custom_Partial
    263261 */
  • tests/phpunit/tests/customize/setting.php

     
    1919
    2020        function setUp() {
    2121                parent::setUp();
    22                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
     22
    2323                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    2424                $this->manager = $GLOBALS['wp_customize'];
    2525                $this->undefined = new stdClass();
  • tests/phpunit/tests/customize/widgets.php

     
    2222
    2323        function setUp() {
    2424                parent::setUp();
    25                 require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    2625
    2726                add_theme_support( 'customize-selective-refresh-widgets' );
    2827                $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );
  • tests/phpunit/tests/general/template.php

     
    1717        function setUp() {
    1818                parent::setUp();
    1919
    20                 require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
    21                 $this->wp_site_icon = $GLOBALS['wp_site_icon'];
     20                $this->wp_site_icon = new WP_Site_Icon;
    2221        }
    2322
    2423        function tearDown() {
  • tests/phpunit/tests/image/editor.php

     
    1414         * Setup test fixture
    1515         */
    1616        public function setup() {
    17                 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    18 
    1917                include_once( DIR_TESTDATA . '/../includes/mock-image-editor.php' );
    2018
    2119                parent::setUp();
  • tests/phpunit/tests/image/editor_gd.php

     
    1212
    1313        public $editor_engine = 'WP_Image_Editor_GD';
    1414
    15         public function setUp() {
    16                 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    17                 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );
    18 
    19                 parent::setUp();
    20         }
    21 
    2215        public function tearDown() {
    2316                $folder = DIR_TESTDATA . '/images/waffles-*.jpg';
    2417
  • tests/phpunit/tests/image/editor_imagick.php

     
    1212
    1313        public $editor_engine = 'WP_Image_Editor_Imagick';
    1414
    15         public function setUp() {
    16                 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    17                 require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );
    18 
    19                 parent::setUp();
    20         }
    21 
    2215        public function tearDown() {
    2316                $folder = DIR_TESTDATA . '/images/waffles-*.jpg';
    2417
     
    465458                $editor = new WP_Image_Editor_Imagick( $file );
    466459
    467460                $this->assertNotInstanceOf( 'WP_Error', $editor );
    468 
     461
    469462                $editor->load();
    470463                $editor->resize( 5, 5 );
    471464                $save_to_file = tempnam( get_temp_dir(), '' ) . '.png';
  • tests/phpunit/tests/image/functions.php

     
    1111         * Setup test fixture
    1212         */
    1313        public function setUp() {
    14                 parent::setUp();
    15 
    16                 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    17                 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );
    18                 require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );
    19 
    2014                include_once( DIR_TESTDATA . '/../includes/mock-image-editor.php' );
    2115        }
    2216
  • tests/phpunit/tests/image/resize_gd.php

     
    1616         */
    1717        public $editor_engine = 'WP_Image_Editor_GD';
    1818
    19         public function setUp() {
    20                 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    21                 require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );
    22 
    23                 parent::setUp();
    24         }
    25 
    2619        /**
    2720         * Try resizing a php file (bad image)
    2821         * @ticket 6821
  • tests/phpunit/tests/image/resize_imagick.php

     
    1515         * @var string
    1616         */
    1717        public $editor_engine = 'WP_Image_Editor_Imagick';
    18 
    19         public function setUp() {
    20                 require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    21                 require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );
    22 
    23                 parent::setUp();
    24         }
    2518}
    26  No newline at end of file
  • tests/phpunit/tests/image/site_icon.php

     
    1212        function setUp() {
    1313                parent::setUp();
    1414
    15                 require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
    16                 $this->wp_site_icon = $GLOBALS['wp_site_icon'];
     15                $this->wp_site_icon = new WP_Site_Icon;
    1716        }
    1817
    1918        function tearDown() {
  • tests/phpunit/tests/menu/walker-nav-menu-edit.php

     
    1212
    1313                parent::setUp();
    1414
    15                 /** Walker_Nav_Menu_Edit class */
    16                 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );
    17 
    1815                $this->walker = new Walker_Nav_Menu_Edit();
    1916
    2017                $this->_wp_nav_menu_max_depth = $_wp_nav_menu_max_depth;
  • tests/phpunit/tests/oembed/wpOembed.php

     
    1414        public function setUp() {
    1515                parent::setUp();
    1616
    17                 require_once ABSPATH . WPINC . '/class-oembed.php';
    1817                $this->oembed = _wp_oembed_get_object();
    1918
    2019                $this->pre_oembed_result_filtered = false;
  • tests/phpunit/tests/widgets.php

     
    509509                $this->assertFalse( $widget->is_preview() );
    510510
    511511                wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    512                 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    513512                $wp_customize = new WP_Customize_Manager();
    514513                $wp_customize->start_previewing_theme();
    515514
  • tests/phpunit/tests/xmlrpc/basic.php

     
    11<?php
    2 
    32require_once ABSPATH . 'wp-admin/includes/admin.php';
    4 require_once ABSPATH . WPINC . '/class-IXR.php';
    5 require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';
    63
    74/**
    85 * @group xmlrpc
  • tests/phpunit/tests/xmlrpc/client.php

     
    11<?php
    2 require_once ABSPATH . WPINC . '/class-IXR.php';
    3 require_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';
    4 
    52/**
    63 * @group xmlrpc
    74 */