Make WordPress Core

Ticket #48082: valentinbora-48082.diff

File valentinbora-48082.diff, 254.8 KB (added by valentinbora, 5 years ago)

A diff combining @desrosj's patch 48082.diff together with valentinbora-48082-parentheses.diff against trunk

  • src/_index.php

    diff --git src/_index.php src/_index.php
    index 86334797d6..cc2a532abe 100644
     
    1414define( 'WP_USE_THEMES', true );
    1515
    1616/** Loads the WordPress Environment and Template */
    17 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
     17require __DIR__ . '/wp-blog-header.php';
  • src/index.php

    diff --git src/index.php src/index.php
    index 9e8f9ec856..f6613cb54f 100644
     
    88
    99/** Define ABSPATH as this file's directory */
    1010if ( ! defined( 'ABSPATH' ) ) {
    11         define( 'ABSPATH', dirname( __FILE__ ) . '/' );
     11        define( 'ABSPATH', __DIR__ . '/' );
    1212}
    1313
    1414if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) {
    if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) { 
    1717}
    1818
    1919define( 'WPINC', 'wp-includes' );
    20 require_once( ABSPATH . WPINC . '/load.php' );
     20require_once ABSPATH . WPINC . '/load.php';
    2121
    2222// Standardize $_SERVER variables across setups.
    2323wp_fix_server_vars();
    2424
    25 require_once( ABSPATH . WPINC . '/functions.php' );
     25require_once ABSPATH . WPINC . '/functions.php';
    2626define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
    27 require_once( ABSPATH . WPINC . '/version.php' );
     27require_once ABSPATH . WPINC . '/version.php';
    2828
    2929wp_check_php_mysql_versions();
    3030wp_load_translations_early();
  • src/js/_enqueues/vendor/tinymce/wp-tinymce.php

    diff --git src/js/_enqueues/vendor/tinymce/wp-tinymce.php src/js/_enqueues/vendor/tinymce/wp-tinymce.php
    index 3d7b2347f6..fa89ca9272 100644
     
    1111 */
    1212error_reporting( 0 );
    1313
    14 $basepath = dirname( __FILE__ );
     14$basepath = __DIR__;
    1515
    1616function get_file( $path ) {
    1717
  • src/wp-activate.php

    diff --git src/wp-activate.php src/wp-activate.php
    index 0349f3fa37..efd59fe1a9 100644
     
    99define( 'WP_INSTALLING', true );
    1010
    1111/** Sets up the WordPress Environment. */
    12 require( dirname( __FILE__ ) . '/wp-load.php' );
     12require __DIR__ . '/wp-load.php';
    1313
    14 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
     14require __DIR__ . '/wp-blog-header.php';
    1515
    1616if ( ! is_multisite() ) {
    1717        wp_redirect( wp_registration_url() );
  • src/wp-admin/_index.php

    diff --git src/wp-admin/_index.php src/wp-admin/_index.php
    index 9389409e88..22d9100d0c 100644
     
    77 */
    88
    99/** Load WordPress Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212/** Load WordPress dashboard API */
    13 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
     13require_once ABSPATH . 'wp-admin/includes/dashboard.php';
    1414
    1515wp_dashboard_setup();
    1616
    $screen->set_help_sidebar( 
    108108        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    109109);
    110110
    111 include( ABSPATH . 'wp-admin/admin-header.php' );
     111include ABSPATH . 'wp-admin/admin-header.php';
    112112?>
    113113
    114114<div class="wrap">
    if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) 
    153153<?php
    154154wp_print_community_events_templates();
    155155
    156 require( ABSPATH . 'wp-admin/admin-footer.php' );
     156require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/about.php

    diff --git src/wp-admin/about.php src/wp-admin/about.php
    index 3a7865a9fe..d496bff9b7 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212/* translators: Page title of the About WordPress page in the admin. */
    1313$title = _x( 'About', 'page title' );
    1414
    1515list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    1616
    17 include( ABSPATH . 'wp-admin/admin-header.php' );
     17include ABSPATH . 'wp-admin/admin-header.php';
    1818?>
    1919        <div class="wrap about__container">
    2020
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    202202        </div>
    203203<?php
    204204
    205 include( ABSPATH . 'wp-admin/admin-footer.php' );
     205include ABSPATH . 'wp-admin/admin-footer.php';
    206206
    207207// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
    208208return;
  • src/wp-admin/admin-ajax.php

    diff --git src/wp-admin/admin-ajax.php src/wp-admin/admin-ajax.php
    index deea44152c..cc5a8db499 100644
    if ( ! defined( 'WP_ADMIN' ) ) { 
    1919}
    2020
    2121/** Load WordPress Bootstrap */
    22 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     22require_once dirname( __DIR__ ) . '/wp-load.php';
    2323
    2424/** Allow for cross-domain requests (from the front end). */
    2525send_origin_headers();
    if ( empty( $_REQUEST['action'] ) ) { 
    3333}
    3434
    3535/** Load WordPress Administration APIs */
    36 require_once( ABSPATH . 'wp-admin/includes/admin.php' );
     36require_once ABSPATH . 'wp-admin/includes/admin.php';
    3737
    3838/** Load Ajax Handlers for WordPress Core */
    39 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
     39require_once ABSPATH . 'wp-admin/includes/ajax-actions.php';
    4040
    4141send_nosniff_header();
    4242nocache_headers();
  • src/wp-admin/admin-functions.php

    diff --git src/wp-admin/admin-functions.php src/wp-admin/admin-functions.php
    index 1185268744..a9ff3f44b9 100644
     
    1212_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
    1313
    1414/** WordPress Administration API: Includes all Administration functions. */
    15 require_once( ABSPATH . 'wp-admin/includes/admin.php' );
     15require_once ABSPATH . 'wp-admin/includes/admin.php';
  • src/wp-admin/admin-header.php

    diff --git src/wp-admin/admin-header.php src/wp-admin/admin-header.php
    index 631bc67ef3..43652039f1 100644
     
    88
    99header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
    1010if ( ! defined( 'WP_ADMIN' ) ) {
    11         require_once( dirname( __FILE__ ) . '/admin.php' );
     11        require_once __DIR__ . '/admin.php';
    1212}
    1313
    1414/**
    if ( current_user_can( 'customize' ) ) { 
    233233?>
    234234
    235235<div id="wpwrap">
    236 <?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?>
     236<?php require ABSPATH . 'wp-admin/menu-header.php'; ?>
    237237<div id="wpcontent">
    238238
    239239<?php
    if ( is_network_admin() ) { 
    289289do_action( 'all_admin_notices' );
    290290
    291291if ( $parent_file == 'options-general.php' ) {
    292         require( ABSPATH . 'wp-admin/options-head.php' );
     292        require ABSPATH . 'wp-admin/options-head.php';
    293293}
  • src/wp-admin/admin-post.php

    diff --git src/wp-admin/admin-post.php src/wp-admin/admin-post.php
    index 48e76feec5..803a00652c 100644
    if ( ! defined( 'WP_ADMIN' ) ) { 
    1414}
    1515
    1616if ( defined( 'ABSPATH' ) ) {
    17         require_once( ABSPATH . 'wp-load.php' );
     17        require_once ABSPATH . 'wp-load.php';
    1818} else {
    19         require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     19        require_once dirname( __DIR__ ) . '/wp-load.php';
    2020}
    2121
    2222/** Allow for cross-domain requests (from the front end). */
    2323send_origin_headers();
    2424
    25 require_once( ABSPATH . 'wp-admin/includes/admin.php' );
     25require_once ABSPATH . 'wp-admin/includes/admin.php';
    2626
    2727nocache_headers();
    2828
  • src/wp-admin/admin.php

    diff --git src/wp-admin/admin.php src/wp-admin/admin.php
    index 5f8916ed41..029147c867 100644
    if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) { 
    3131        define( 'WP_LOAD_IMPORTERS', true );
    3232}
    3333
    34 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     34require_once dirname( __DIR__ ) . '/wp-load.php';
    3535
    3636nocache_headers();
    3737
    if ( get_option( 'db_upgraded' ) ) { 
    7373                 * attempt to do no more than threshold value, with some +/- allowed.
    7474                 */
    7575                if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) {
    76                         require_once( ABSPATH . WPINC . '/http.php' );
     76                        require_once ABSPATH . WPINC . '/http.php';
    7777                        $response = wp_remote_get(
    7878                                admin_url( 'upgrade.php?step=1' ),
    7979                                array(
    if ( get_option( 'db_upgraded' ) ) { 
    8989        }
    9090}
    9191
    92 require_once( ABSPATH . 'wp-admin/includes/admin.php' );
     92require_once ABSPATH . 'wp-admin/includes/admin.php';
    9393
    9494auth_redirect();
    9595
    if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) 
    146146}
    147147
    148148if ( WP_NETWORK_ADMIN ) {
    149         require( ABSPATH . 'wp-admin/network/menu.php' );
     149        require ABSPATH . 'wp-admin/network/menu.php';
    150150} elseif ( WP_USER_ADMIN ) {
    151         require( ABSPATH . 'wp-admin/user/menu.php' );
     151        require ABSPATH . 'wp-admin/user/menu.php';
    152152} else {
    153         require( ABSPATH . 'wp-admin/menu.php' );
     153        require ABSPATH . 'wp-admin/menu.php';
    154154}
    155155
    156156if ( current_user_can( 'manage_options' ) ) {
    if ( isset( $plugin_page ) ) { 
    231231                 */
    232232                do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    233233                if ( ! isset( $_GET['noheader'] ) ) {
    234                         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     234                        require_once ABSPATH . 'wp-admin/admin-header.php';
    235235                }
    236236
    237237                /**
    if ( isset( $plugin_page ) ) { 
    277277                do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    278278
    279279                if ( ! isset( $_GET['noheader'] ) ) {
    280                         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     280                        require_once ABSPATH . 'wp-admin/admin-header.php';
    281281                }
    282282
    283283                if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) {
    284                         include( WPMU_PLUGIN_DIR . "/$plugin_page" );
     284                        include WPMU_PLUGIN_DIR . "/$plugin_page";
    285285                } else {
    286                         include( WP_PLUGIN_DIR . "/$plugin_page" );
     286                        include WP_PLUGIN_DIR . "/$plugin_page";
    287287                }
    288288        }
    289289
    290         include( ABSPATH . 'wp-admin/admin-footer.php' );
     290        include ABSPATH . 'wp-admin/admin-footer.php';
    291291
    292292        exit();
    293293} elseif ( isset( $_GET['import'] ) ) {
    if ( isset( $plugin_page ) ) { 
    322322        $title        = __( 'Import' );
    323323
    324324        if ( ! isset( $_GET['noheader'] ) ) {
    325                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     325                require_once ABSPATH . 'wp-admin/admin-header.php';
    326326        }
    327327
    328         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     328        require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    329329
    330330        define( 'WP_IMPORTING', true );
    331331
    if ( isset( $plugin_page ) ) { 
    345345
    346346        call_user_func( $wp_importers[ $importer ][2] );
    347347
    348         include( ABSPATH . 'wp-admin/admin-footer.php' );
     348        include ABSPATH . 'wp-admin/admin-footer.php';
    349349
    350350        // Make sure rules are flushed
    351351        flush_rewrite_rules( false );
  • src/wp-admin/async-upload.php

    diff --git src/wp-admin/async-upload.php src/wp-admin/async-upload.php
    index 4d37f7f644..4017e3bbe9 100644
    if ( ! defined( 'WP_ADMIN' ) ) { 
    1515}
    1616
    1717if ( defined( 'ABSPATH' ) ) {
    18         require_once( ABSPATH . 'wp-load.php' );
     18        require_once ABSPATH . 'wp-load.php';
    1919} else {
    20         require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     20        require_once dirname( __DIR__ ) . '/wp-load.php';
    2121}
    2222
    23 require_once( ABSPATH . 'wp-admin/admin.php' );
     23require_once ABSPATH . 'wp-admin/admin.php';
    2424
    2525header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) );
    2626
    2727if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
    28         include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
     28        include ABSPATH . 'wp-admin/includes/ajax-actions.php';
    2929
    3030        send_nosniff_header();
    3131        nocache_headers();
  • src/wp-admin/comment.php

    diff --git src/wp-admin/comment.php src/wp-admin/comment.php
    index 145cd7a5ea..a597361d1d 100644
     
    77 */
    88
    99/** Load WordPress Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212$parent_file  = 'edit-comments.php';
    1313$submenu_file = 'edit-comments.php';
    switch ( $action ) { 
    5858                );
    5959
    6060                wp_enqueue_script( 'comment' );
    61                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     61                require_once ABSPATH . 'wp-admin/admin-header.php';
    6262
    6363                $comment_id = absint( $_GET['c'] );
    6464
    switch ( $action ) { 
    7777
    7878                $comment = get_comment_to_edit( $comment_id );
    7979
    80                 include( ABSPATH . 'wp-admin/edit-form-comment.php' );
     80                include ABSPATH . 'wp-admin/edit-form-comment.php';
    8181
    8282                break;
    8383
    switch ( $action ) { 
    106106                        die();
    107107                }
    108108
    109                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     109                require_once ABSPATH . 'wp-admin/admin-header.php';
    110110
    111111                $formaction    = $action . 'comment';
    112112                $nonce_action  = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
    switch ( $action ) { 
    357357
    358358} // end switch
    359359
    360 include( ABSPATH . 'wp-admin/admin-footer.php' );
     360include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/credits.php

    diff --git src/wp-admin/credits.php src/wp-admin/credits.php
    index af4792d2b4..d9b4ad2df7 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
    11 require_once( dirname( __FILE__ ) . '/includes/credits.php' );
     10require_once __DIR__ . '/admin.php';
     11require_once __DIR__ . '/includes/credits.php';
    1212
    1313$title = __( 'Credits' );
    1414
    1515list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    1616
    17 include( ABSPATH . 'wp-admin/admin-header.php' );
     17include ABSPATH . 'wp-admin/admin-header.php';
    1818
    1919$credits = wp_credits();
    2020?>
    $credits = wp_credits(); 
    8282<?php
    8383if ( ! $credits ) {
    8484        echo '</div>';
    85         include( ABSPATH . 'wp-admin/admin-footer.php' );
     85        include ABSPATH . 'wp-admin/admin-footer.php';
    8686        exit;
    8787}
    8888?>
    if ( ! $credits ) { 
    129129</div>
    130130<?php
    131131
    132 include( ABSPATH . 'wp-admin/admin-footer.php' );
     132include ABSPATH . 'wp-admin/admin-footer.php';
    133133
    134134return;
    135135
  • src/wp-admin/custom-background.php

    diff --git src/wp-admin/custom-background.php src/wp-admin/custom-background.php
    index e6ff310e72..37b8c3d8b8 100644
     
    1212_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' );
    1313
    1414/** Custom_Background class */
    15 require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' );
     15require_once ABSPATH . 'wp-admin/includes/class-custom-background.php';
  • src/wp-admin/custom-header.php

    diff --git src/wp-admin/custom-header.php src/wp-admin/custom-header.php
    index d99f192da8..d89f03bbaa 100644
     
    1212_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );
    1313
    1414/** Custom_Image_Header class */
    15 require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' );
     15require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
  • src/wp-admin/customize.php

    diff --git src/wp-admin/customize.php src/wp-admin/customize.php
    index d0f39a5ba5..4954ca99ba 100644
     
    1010define( 'IFRAME_REQUEST', true );
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( dirname( __FILE__ ) . '/admin.php' );
     13require_once __DIR__ . '/admin.php';
    1414
    1515if ( ! current_user_can( 'customize' ) ) {
    1616        wp_die(
  • src/wp-admin/edit-comments.php

    diff --git src/wp-admin/edit-comments.php src/wp-admin/edit-comments.php
    index b159c0a179..3178dd7b67 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111if ( ! current_user_can( 'edit_posts' ) ) {
    1212        wp_die(
    1313                '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
    get_current_screen()->set_screen_reader_content( 
    205205        )
    206206);
    207207
    208 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     208require_once ABSPATH . 'wp-admin/admin-header.php';
    209209?>
    210210
    211211<div class="wrap">
    if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $ 
    351351<?php
    352352wp_comment_reply( '-1', true, 'detail' );
    353353wp_comment_trashnotice();
    354 include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     354include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/edit-form-advanced.php

    diff --git src/wp-admin/edit-form-advanced.php src/wp-admin/edit-form-advanced.php
    index e7127fbcb2..e1dcbd3484 100644
    if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql 
    264264$post_type_object = get_post_type_object( $post_type );
    265265
    266266// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
    267 require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
     267require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
    268268
    269269register_and_do_post_meta_boxes( $post );
    270270
    if ( 'post' == $post_type ) { 
    416416        );
    417417}
    418418
    419 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     419require_once ABSPATH . 'wp-admin/admin-header.php';
    420420?>
    421421
    422422<div class="wrap">
  • src/wp-admin/edit-form-blocks.php

    diff --git src/wp-admin/edit-form-blocks.php src/wp-admin/edit-form-blocks.php
    index dcec9faaab..f2742ccf6b 100644
    wp_enqueue_style( 'wp-format-library' ); 
    361361do_action( 'enqueue_block_editor_assets' );
    362362
    363363// In order to duplicate classic meta box behaviour, we need to run the classic meta box actions.
    364 require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
     364require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
    365365register_and_do_post_meta_boxes( $post );
    366366
    367367// Check if the Custom Fields meta box has been removed at some point.
    $script = sprintf( 
    399399);
    400400wp_add_inline_script( 'wp-edit-post', $script );
    401401
    402 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     402require_once ABSPATH . 'wp-admin/admin-header.php';
    403403?>
    404404
    405405<div class="block-editor">
  • src/wp-admin/edit-link-form.php

    diff --git src/wp-admin/edit-link-form.php src/wp-admin/edit-link-form.php
    index 05c3751f72..7733d11508 100644
    if ( ! empty( $link_id ) ) { 
    2525        $nonce_action = 'add-bookmark';
    2626}
    2727
    28 require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
     28require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
    2929
    3030add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' );
    3131add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' );
    get_current_screen()->set_help_sidebar( 
    7777        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    7878);
    7979
    80 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     80require_once ABSPATH . 'wp-admin/admin-header.php';
    8181?>
    8282
    8383<div class="wrap">
  • src/wp-admin/edit-tag-form.php

    diff --git src/wp-admin/edit-tag-form.php src/wp-admin/edit-tag-form.php
    index a56ee93ff7..46f86e6368 100644
    wp_reset_vars( array( 'wp_http_referer' ) ); 
    5252$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
    5353
    5454/** Also used by Edit Tags */
    55 require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' );
     55require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
    5656
    5757/**
    5858 * Fires before the Edit Term form for all taxonomies.
  • src/wp-admin/edit-tags.php

    diff --git src/wp-admin/edit-tags.php src/wp-admin/edit-tags.php
    index 580c70dc7a..2e9570b199 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! $taxnow ) {
    1313        wp_die( __( 'Invalid taxonomy.' ) );
    if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === 
    318318        unset( $help );
    319319}
    320320
    321 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     321require_once ABSPATH . 'wp-admin/admin-header.php';
    322322
    323323/** Also used by the Edit Tag  form */
    324 require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' );
     324require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
    325325
    326326$class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated';
    327327
    endif; 
    658658
    659659$wp_list_table->inline_edit();
    660660
    661 include( ABSPATH . 'wp-admin/admin-footer.php' );
     661include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/edit.php

    diff --git src/wp-admin/edit.php src/wp-admin/edit.php
    index 5c818f4e4c..e57ed194b1 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! $typenow ) {
    1313        wp_die( __( 'Invalid post type.' ) );
    $bulk_messages['wp_block'] = array( 
    383383$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
    384384$bulk_counts   = array_filter( $bulk_counts );
    385385
    386 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     386require_once ABSPATH . 'wp-admin/admin-header.php';
    387387?>
    388388<div class="wrap">
    389389<h1 class="wp-heading-inline">
    if ( $wp_list_table->has_items() ) { 
    461461</div>
    462462
    463463<?php
    464 include( ABSPATH . 'wp-admin/admin-footer.php' );
     464include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/erase-personal-data.php

    diff --git src/wp-admin/erase-personal-data.php src/wp-admin/erase-personal-data.php
    index dc80022eef..931cafa150 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) );
    $requests_table->screen->set_screen_reader_content( 
    4747$requests_table->process_bulk_action();
    4848$requests_table->prepare_items();
    4949
    50 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     50require_once ABSPATH . 'wp-admin/admin-header.php';
    5151?>
    5252
    5353<div class="wrap nosubsub">
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    8989</div>
    9090
    9191<?php
    92 include( ABSPATH . 'wp-admin/admin-footer.php' );
     92include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/export-personal-data.php

    diff --git src/wp-admin/export-personal-data.php src/wp-admin/export-personal-data.php
    index a4eef779c2..0a57169e36 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'export_others_personal_data' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) );
    $requests_table->screen->set_screen_reader_content( 
    4747$requests_table->process_bulk_action();
    4848$requests_table->prepare_items();
    4949
    50 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     50require_once ABSPATH . 'wp-admin/admin-header.php';
    5151?>
    5252
    5353<div class="wrap nosubsub">
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    8989</div>
    9090
    9191<?php
    92 include( ABSPATH . 'wp-admin/admin-footer.php' );
     92include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/export.php

    diff --git src/wp-admin/export.php src/wp-admin/export.php
    index 759723456e..972d4590dc 100644
     
    77 */
    88
    99/** Load WordPress Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'export' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) );
    1414}
    1515
    1616/** Load WordPress export API */
    17 require_once( ABSPATH . 'wp-admin/includes/export.php' );
     17require_once ABSPATH . 'wp-admin/includes/export.php';
    1818$title = __( 'Export' );
    1919
    2020/**
    if ( isset( $_GET['download'] ) ) { 
    122122        die();
    123123}
    124124
    125 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     125require_once ABSPATH . 'wp-admin/admin-header.php';
    126126
    127127/**
    128128 * Create the date options fields for exporting a given post type.
    do_action( 'export_filters' ); 
    321321</form>
    322322</div>
    323323
    324 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     324<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/freedoms.php

    diff --git src/wp-admin/freedoms.php src/wp-admin/freedoms.php
    index dcb2eeb794..b95e26c62d 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
    1313if ( isset( $_GET['privacy-notice'] ) ) {
    $title = __( 'Freedoms' ); 
    1919
    2020list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    2121
    22 include( ABSPATH . 'wp-admin/admin-header.php' );
     22include ABSPATH . 'wp-admin/admin-header.php';
    2323?>
    2424<div class="wrap about__container">
    2525
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    123123        </div>
    124124
    125125</div>
    126 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     126<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/import.php

    diff --git src/wp-admin/import.php src/wp-admin/import.php
    index d10f60bde7..8536fb6e80 100644
     
    99define( 'WP_LOAD_IMPORTERS', true );
    1010
    1111/** Load WordPress Bootstrap */
    12 require_once( dirname( __FILE__ ) . '/admin.php' );
     12require_once __DIR__ . '/admin.php';
    1313
    1414if ( ! current_user_can( 'import' ) ) {
    1515        wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) );
    add_thickbox(); 
    5353wp_enqueue_script( 'plugin-install' );
    5454wp_enqueue_script( 'updates' );
    5555
    56 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     56require_once ABSPATH . 'wp-admin/admin-header.php';
    5757$parent_file = 'tools.php';
    5858?>
    5959
    if ( current_user_can( 'install_plugins' ) ) { 
    237237wp_print_request_filesystem_credentials_modal();
    238238wp_print_admin_notice_templates();
    239239
    240 include( ABSPATH . 'wp-admin/admin-footer.php' );
     240include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/includes/admin.php

    diff --git src/wp-admin/includes/admin.php src/wp-admin/includes/admin.php
    index 8c3a3eb156..af828f75e9 100644
    if ( ! defined( 'WP_ADMIN' ) ) { 
    1717}
    1818
    1919/** WordPress Administration Hooks */
    20 require_once( ABSPATH . 'wp-admin/includes/admin-filters.php' );
     20require_once ABSPATH . 'wp-admin/includes/admin-filters.php';
    2121
    2222/** WordPress Bookmark Administration API */
    23 require_once( ABSPATH . 'wp-admin/includes/bookmark.php' );
     23require_once ABSPATH . 'wp-admin/includes/bookmark.php';
    2424
    2525/** WordPress Comment Administration API */
    26 require_once( ABSPATH . 'wp-admin/includes/comment.php' );
     26require_once ABSPATH . 'wp-admin/includes/comment.php';
    2727
    2828/** WordPress Administration File API */
    29 require_once( ABSPATH . 'wp-admin/includes/file.php' );
     29require_once ABSPATH . 'wp-admin/includes/file.php';
    3030
    3131/** WordPress Image Administration API */
    32 require_once( ABSPATH . 'wp-admin/includes/image.php' );
     32require_once ABSPATH . 'wp-admin/includes/image.php';
    3333
    3434/** WordPress Media Administration API */
    35 require_once( ABSPATH . 'wp-admin/includes/media.php' );
     35require_once ABSPATH . 'wp-admin/includes/media.php';
    3636
    3737/** WordPress Import Administration API */
    38 require_once( ABSPATH . 'wp-admin/includes/import.php' );
     38require_once ABSPATH . 'wp-admin/includes/import.php';
    3939
    4040/** WordPress Misc Administration API */
    41 require_once( ABSPATH . 'wp-admin/includes/misc.php' );
     41require_once ABSPATH . 'wp-admin/includes/misc.php';
    4242
    4343/** WordPress Misc Administration API */
    44 require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
     44require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    4545
    4646/** WordPress Options Administration API */
    47 require_once( ABSPATH . 'wp-admin/includes/options.php' );
     47require_once ABSPATH . 'wp-admin/includes/options.php';
    4848
    4949/** WordPress Plugin Administration API */
    50 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     50require_once ABSPATH . 'wp-admin/includes/plugin.php';
    5151
    5252/** WordPress Post Administration API */
    53 require_once( ABSPATH . 'wp-admin/includes/post.php' );
     53require_once ABSPATH . 'wp-admin/includes/post.php';
    5454
    5555/** WordPress Administration Screen API */
    56 require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' );
    57 require_once( ABSPATH . 'wp-admin/includes/screen.php' );
     56require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
     57require_once ABSPATH . 'wp-admin/includes/screen.php';
    5858
    5959/** WordPress Taxonomy Administration API */
    60 require_once( ABSPATH . 'wp-admin/includes/taxonomy.php' );
     60require_once ABSPATH . 'wp-admin/includes/taxonomy.php';
    6161
    6262/** WordPress Template Administration API */
    63 require_once( ABSPATH . 'wp-admin/includes/template.php' );
     63require_once ABSPATH . 'wp-admin/includes/template.php';
    6464
    6565/** WordPress List Table Administration API and base class */
    66 require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
    67 require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php' );
    68 require_once( ABSPATH . 'wp-admin/includes/list-table.php' );
     66require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
     67require_once ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php';
     68require_once ABSPATH . 'wp-admin/includes/list-table.php';
    6969
    7070/** WordPress Theme Administration API */
    71 require_once( ABSPATH . 'wp-admin/includes/theme.php' );
     71require_once ABSPATH . 'wp-admin/includes/theme.php';
    7272
    7373/** WordPress Privacy Functions */
    74 require_once( ABSPATH . 'wp-admin/includes/privacy-tools.php' );
     74require_once ABSPATH . 'wp-admin/includes/privacy-tools.php';
    7575
    7676/** WordPress Privacy List Table classes. */
    7777// Previously in wp-admin/includes/user.php. Need to be loaded for backwards compatibility.
    78 require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
    79 require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php' );
    80 require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php' );
     78require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
     79require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php';
     80require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php';
    8181
    8282/** WordPress User Administration API */
    83 require_once( ABSPATH . 'wp-admin/includes/user.php' );
     83require_once ABSPATH . 'wp-admin/includes/user.php';
    8484
    8585/** WordPress Site Icon API */
    86 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' );
     86require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
    8787
    8888/** WordPress Update Administration API */
    89 require_once( ABSPATH . 'wp-admin/includes/update.php' );
     89require_once ABSPATH . 'wp-admin/includes/update.php';
    9090
    9191/** WordPress Deprecated Administration API */
    92 require_once( ABSPATH . 'wp-admin/includes/deprecated.php' );
     92require_once ABSPATH . 'wp-admin/includes/deprecated.php';
    9393
    9494/** WordPress Multisite support API */
    9595if ( is_multisite() ) {
    96         require_once( ABSPATH . 'wp-admin/includes/ms-admin-filters.php' );
    97         require_once( ABSPATH . 'wp-admin/includes/ms.php' );
    98         require_once( ABSPATH . 'wp-admin/includes/ms-deprecated.php' );
     96        require_once ABSPATH . 'wp-admin/includes/ms-admin-filters.php';
     97        require_once ABSPATH . 'wp-admin/includes/ms.php';
     98        require_once ABSPATH . 'wp-admin/includes/ms-deprecated.php';
    9999}
  • src/wp-admin/includes/ajax-actions.php

    diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
    index 495693c313..686fc84cd5 100644
    function wp_ajax_imgedit_preview() { 
    234234
    235235        check_ajax_referer( "image_editor-$post_id" );
    236236
    237         include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
     237        include_once ABSPATH . 'wp-admin/includes/image-edit.php';
    238238
    239239        if ( ! stream_preview_image( $post_id ) ) {
    240240                wp_die( -1 );
    function wp_ajax_autocomplete_user() { 
    336336 * @since 4.8.0
    337337 */
    338338function wp_ajax_get_community_events() {
    339         require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' );
     339        require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php';
    340340
    341341        check_ajax_referer( 'community_events' );
    342342
    function wp_ajax_replyto_comment( $action ) { 
    13421342
    13431343        ob_start();
    13441344        if ( isset( $_REQUEST['mode'] ) && 'dashboard' == $_REQUEST['mode'] ) {
    1345                 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
     1345                require_once ABSPATH . 'wp-admin/includes/dashboard.php';
    13461346                _wp_dashboard_recent_comments_row( $comment );
    13471347        } else {
    13481348                if ( isset( $_REQUEST['mode'] ) && 'single' == $_REQUEST['mode'] ) {
    function wp_ajax_wp_link_ajax() { 
    18511851        $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    18521852
    18531853        if ( ! class_exists( '_WP_Editors', false ) ) {
    1854                 require( ABSPATH . WPINC . '/class-wp-editor.php' );
     1854                require ABSPATH . WPINC . '/class-wp-editor.php';
    18551855        }
    18561856
    18571857        $results = _WP_Editors::wp_link_query( $args );
    function wp_ajax_image_editor() { 
    25932593        }
    25942594
    25952595        check_ajax_referer( "image_editor-$attachment_id" );
    2596         include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
     2596        include_once ABSPATH . 'wp-admin/includes/image-edit.php';
    25972597
    25982598        $msg = false;
    25992599        switch ( $_POST['do'] ) {
    function wp_ajax_install_theme() { 
    40004000                wp_send_json_error( $status );
    40014001        }
    40024002
    4003         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    4004         include_once( ABSPATH . 'wp-admin/includes/theme.php' );
     4003        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     4004        include_once ABSPATH . 'wp-admin/includes/theme.php';
    40054005
    40064006        $api = themes_api(
    40074007                'theme_information',
    function wp_ajax_update_theme() { 
    41294129                $status['oldVersion'] = $theme->get( 'Version' );
    41304130        }
    41314131
    4132         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     4132        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    41334133
    41344134        $current = get_site_transient( 'update_themes' );
    41354135        if ( empty( $current ) ) {
    function wp_ajax_delete_theme() { 
    42434243                wp_send_json_error( $status );
    42444244        }
    42454245
    4246         include_once( ABSPATH . 'wp-admin/includes/theme.php' );
     4246        include_once ABSPATH . 'wp-admin/includes/theme.php';
    42474247
    42484248        $result = delete_theme( $stylesheet );
    42494249
    function wp_ajax_install_plugin() { 
    42904290                wp_send_json_error( $status );
    42914291        }
    42924292
    4293         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    4294         include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
     4293        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     4294        include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    42954295
    42964296        $api = plugins_api(
    42974297                'plugin_information',
    function wp_ajax_update_plugin() { 
    44124412                $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
    44134413        }
    44144414
    4415         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     4415        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    44164416
    44174417        wp_update_plugins();
    44184418
    function wp_ajax_health_check_dotorg_communication() { 
    51155115        }
    51165116
    51175117        if ( ! class_exists( 'WP_Site_Health' ) ) {
    5118                 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     5118                require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    51195119        }
    51205120
    51215121        $site_health = new WP_Site_Health();
    function wp_ajax_health_check_is_in_debug_mode() { 
    51355135        }
    51365136
    51375137        if ( ! class_exists( 'WP_Site_Health' ) ) {
    5138                 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     5138                require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    51395139        }
    51405140
    51415141        $site_health = new WP_Site_Health();
    function wp_ajax_health_check_background_updates() { 
    51555155        }
    51565156
    51575157        if ( ! class_exists( 'WP_Site_Health' ) ) {
    5158                 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     5158                require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    51595159        }
    51605160
    51615161        $site_health = new WP_Site_Health();
    function wp_ajax_health_check_loopback_requests() { 
    51765176        }
    51775177
    51785178        if ( ! class_exists( 'WP_Site_Health' ) ) {
    5179                 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     5179                require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    51805180        }
    51815181
    51825182        $site_health = new WP_Site_Health();
    function wp_ajax_health_check_get_sizes() { 
    52135213        }
    52145214
    52155215        if ( ! class_exists( 'WP_Debug_Data' ) ) {
    5216                 require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' );
     5216                require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
    52175217        }
    52185218
    52195219        $sizes_data = WP_Debug_Data::get_sizes();
  • src/wp-admin/includes/class-core-upgrader.php

    diff --git src/wp-admin/includes/class-core-upgrader.php src/wp-admin/includes/class-core-upgrader.php
    index dd3f540dda..071908014f 100644
    class Core_Upgrader extends WP_Upgrader { 
    6262        public function upgrade( $current, $args = array() ) {
    6363                global $wp_filesystem;
    6464
    65                 include( ABSPATH . WPINC . '/version.php' ); // $wp_version;
     65                include ABSPATH . WPINC . '/version.php'; // $wp_version;
    6666
    6767                $start_time = time();
    6868
    class Core_Upgrader extends WP_Upgrader { 
    161161                }
    162162                $wp_filesystem->chmod( $wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE );
    163163
    164                 require_once( ABSPATH . 'wp-admin/includes/update-core.php' );
     164                require_once ABSPATH . 'wp-admin/includes/update-core.php';
    165165
    166166                if ( ! function_exists( 'update_core' ) ) {
    167167                        WP_Upgrader::release_lock( 'core_updater' );
    class Core_Upgrader extends WP_Upgrader { 
    270270         * @return bool True if we should update to the offered version, otherwise false.
    271271         */
    272272        public static function should_update_to_version( $offered_ver ) {
    273                 include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z
     273                include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
    274274
    275275                $current_branch                 = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
    276276                $new_branch                     = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y
  • src/wp-admin/includes/class-ftp.php

    diff --git src/wp-admin/includes/class-ftp.php src/wp-admin/includes/class-ftp.php
    index a377640c65..8e2624cedc 100644
    if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) { 
    903903        $mod_sockets = extension_loaded( 'sockets' );
    904904}
    905905
    906 require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
     906require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
    907907
    908908if ( $mod_sockets ) {
    909909        class ftp extends ftp_sockets {}
  • src/wp-admin/includes/class-wp-community-events.php

    diff --git src/wp-admin/includes/class-wp-community-events.php src/wp-admin/includes/class-wp-community-events.php
    index 776d72f2f2..b2c9d01a78 100644
    class WP_Community_Events { 
    9393                }
    9494
    9595                // include an unmodified $wp_version
    96                 include( ABSPATH . WPINC . '/version.php' );
     96                include ABSPATH . WPINC . '/version.php';
    9797
    9898                $api_url                    = 'http://api.wordpress.org/events/1.0/';
    9999                $request_args               = $this->get_request_args( $location_search, $timezone );
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

    diff --git src/wp-admin/includes/class-wp-plugin-install-list-table.php src/wp-admin/includes/class-wp-plugin-install-list-table.php
    index acea5c4b28..48ffcfe9f3 100644
    class WP_Plugin_Install_List_Table extends WP_List_Table { 
    8585         * @global string $term
    8686         */
    8787        public function prepare_items() {
    88                 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
     88                include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    8989
    9090                global $tabs, $tab, $paged, $type, $term;
    9191
  • src/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php

    diff --git src/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php src/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php
    index 683ea69697..880af8cd04 100644
     
    88 */
    99
    1010if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
    11         require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
     11        require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
    1212}
    1313
    1414/**
  • src/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php

    diff --git src/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php src/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php
    index 8e2efa0379..b894865064 100644
     
    88 */
    99
    1010if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
    11         require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
     11        require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
    1212}
    1313
    1414/**
  • src/wp-admin/includes/class-wp-site-health-auto-updates.php

    diff --git src/wp-admin/includes/class-wp-site-health-auto-updates.php src/wp-admin/includes/class-wp-site-health-auto-updates.php
    index 05fbba9085..2d7c64e050 100644
    class WP_Site_Health_Auto_Updates { 
    166166         */
    167167        public function test_wp_automatic_updates_disabled() {
    168168                if ( ! class_exists( 'WP_Automatic_Updater' ) ) {
    169                         require_once( ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php' );
     169                        require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php';
    170170                }
    171171
    172172                $auto_updates = new WP_Automatic_Updater();
  • src/wp-admin/includes/class-wp-site-health.php

    diff --git src/wp-admin/includes/class-wp-site-health.php src/wp-admin/includes/class-wp-site-health.php
    index 0da1f9e607..8f52c87ee2 100644
    class WP_Site_Health { 
    16321632                );
    16331633
    16341634                if ( ! class_exists( 'WP_Site_Health_Auto_Updates' ) ) {
    1635                         require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php' );
     1635                        require_once ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php';
    16361636                }
    16371637
    16381638                // Run the auto-update tests in a separate class,
    class WP_Site_Health { 
    22232223         */
    22242224        public function wp_cron_scheduled_check() {
    22252225                // Bootstrap wp-admin, as WP_Cron doesn't do this for us.
    2226                 require_once( trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php' );
     2226                require_once trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php';
    22272227
    22282228                $tests = WP_Site_Health::get_tests();
    22292229
  • src/wp-admin/includes/class-wp-theme-install-list-table.php

    diff --git src/wp-admin/includes/class-wp-theme-install-list-table.php src/wp-admin/includes/class-wp-theme-install-list-table.php
    index 637785f392..4105d0ab74 100644
    class WP_Theme_Install_List_Table extends WP_Themes_List_Table { 
    3434         * @global array  $theme_field_defaults
    3535         */
    3636        public function prepare_items() {
    37                 include( ABSPATH . 'wp-admin/includes/theme-install.php' );
     37                include ABSPATH . 'wp-admin/includes/theme-install.php';
    3838
    3939                global $tabs, $tab, $paged, $type, $theme_field_defaults;
    4040                wp_reset_vars( array( 'tab' ) );
  • src/wp-admin/includes/comment.php

    diff --git src/wp-admin/includes/comment.php src/wp-admin/includes/comment.php
    index e99f8a6a50..e0ff389abe 100644
    function enqueue_comment_hotkeys_js() { 
    208208 */
    209209function comment_footer_die( $msg ) {
    210210        echo "<div class='wrap'><p>$msg</p></div>";
    211         include( ABSPATH . 'wp-admin/admin-footer.php' );
     211        include ABSPATH . 'wp-admin/admin-footer.php';
    212212        die;
    213213}
  • src/wp-admin/includes/credits.php

    diff --git src/wp-admin/includes/credits.php src/wp-admin/includes/credits.php
    index 3289c18e4a..885e499be1 100644
     
    1616 */
    1717function wp_credits() {
    1818        // include an unmodified $wp_version
    19         include( ABSPATH . WPINC . '/version.php' );
     19        include ABSPATH . WPINC . '/version.php';
    2020
    2121        $locale = get_user_locale();
    2222
  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index 6ecc49f8f1..de9f664f27 100644
    function wp_dashboard_setup() { 
    4545        // Site Health.
    4646        if ( current_user_can( 'view_site_health_checks' ) ) {
    4747                if ( ! class_exists( 'WP_Site_Health' ) ) {
    48                         require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     48                        require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    4949                }
    5050
    5151                WP_Site_Health::initialize();
    function wp_check_browser_version() { 
    16651665        $response = get_site_transient( 'browser_' . $key );
    16661666        if ( false === $response ) {
    16671667                // Include an unmodified $wp_version.
    1668                 include( ABSPATH . WPINC . '/version.php' );
     1668                include ABSPATH . WPINC . '/version.php';
    16691669
    16701670                $url     = 'http://api.wordpress.org/core/browse-happy/1.1/';
    16711671                $options = array(
  • src/wp-admin/includes/deprecated.php

    diff --git src/wp-admin/includes/deprecated.php src/wp-admin/includes/deprecated.php
    index a16f0e98c7..521be4544a 100644
    function wp_tiny_mce( $teeny = false, $settings = false ) { 
    762762        static $num = 1;
    763763
    764764        if ( ! class_exists( '_WP_Editors', false ) )
    765                 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
     765                require_once ABSPATH . WPINC . '/class-wp-editor.php';
    766766
    767767        $editor_id = 'content' . $num++;
    768768
    function wp_update_core($current, $feedback = '') { 
    11561156        if ( !empty($feedback) )
    11571157                add_filter('update_feedback', $feedback);
    11581158
    1159         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     1159        include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    11601160        $upgrader = new Core_Upgrader();
    11611161        return $upgrader->upgrade($current);
    11621162
    function wp_update_plugin($plugin, $feedback = '') { 
    11791179        if ( !empty($feedback) )
    11801180                add_filter('update_feedback', $feedback);
    11811181
    1182         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     1182        include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    11831183        $upgrader = new Plugin_Upgrader();
    11841184        return $upgrader->upgrade($plugin);
    11851185}
    function wp_update_theme($theme, $feedback = '') { 
    12011201        if ( !empty($feedback) )
    12021202                add_filter('update_feedback', $feedback);
    12031203
    1204         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     1204        include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    12051205        $upgrader = new Theme_Upgrader();
    12061206        return $upgrader->upgrade($theme);
    12071207}
  • src/wp-admin/includes/file.php

    diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
    index 0c65f2c6e3..b2a939b81a 100644
    function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) { 
    15971597
    15981598        mbstring_binary_safe_encoding();
    15991599
    1600         require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' );
     1600        require_once ABSPATH . 'wp-admin/includes/class-pclzip.php';
    16011601
    16021602        $archive = new PclZip( $file );
    16031603
    function copy_dir( $from, $to, $skip_list = array() ) { 
    17691769function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    17701770        global $wp_filesystem;
    17711771
    1772         require_once( ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php' );
     1772        require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
    17731773
    17741774        $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership );
    17751775
    function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own 
    17951795                        return;
    17961796                }
    17971797
    1798                 require_once( $abstraction_file );
     1798                require_once $abstraction_file;
    17991799        }
    18001800        $method = "WP_Filesystem_$method";
    18011801
  • src/wp-admin/includes/import.php

    diff --git src/wp-admin/includes/import.php src/wp-admin/includes/import.php
    index 52b623a447..c23fce6274 100644
    function wp_import_handle_upload() { 
    136136 * @return array Importers with metadata for each.
    137137 */
    138138function wp_get_popular_importers() {
    139         include( ABSPATH . WPINC . '/version.php' ); // Include an unmodified $wp_version.
     139        include ABSPATH . WPINC . '/version.php'; // Include an unmodified $wp_version.
    140140
    141141        $locale            = get_user_locale();
    142142        $cache_key         = 'popular_importers_' . md5( $locale . $wp_version );
  • src/wp-admin/includes/list-table.php

    diff --git src/wp-admin/includes/list-table.php src/wp-admin/includes/list-table.php
    index 881bb37388..dce5eef702 100644
    function _get_list_table( $class, $args = array() ) { 
    4646
    4747        if ( isset( $core_classes[ $class ] ) ) {
    4848                foreach ( (array) $core_classes[ $class ] as $required ) {
    49                         require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' );
     49                        require_once ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php';
    5050                }
    5151
    5252                if ( isset( $args['screen'] ) ) {
  • src/wp-admin/includes/media.php

    diff --git src/wp-admin/includes/media.php src/wp-admin/includes/media.php
    index f52e9a4704..17b8345cdf 100644
    function wp_read_video_metadata( $file ) { 
    34583458        }
    34593459
    34603460        if ( ! class_exists( 'getID3', false ) ) {
    3461                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
     3461                require ABSPATH . WPINC . '/ID3/getid3.php';
    34623462        }
    34633463
    34643464        $id3  = new getID3();
    function wp_read_audio_metadata( $file ) { 
    35693569        }
    35703570
    35713571        if ( ! class_exists( 'getID3', false ) ) {
    3572                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
     3572                require ABSPATH . WPINC . '/ID3/getid3.php';
    35733573        }
    35743574
    35753575        $id3  = new getID3();
  • src/wp-admin/includes/misc.php

    diff --git src/wp-admin/includes/misc.php src/wp-admin/includes/misc.php
    index 8903a280ed..64b4d3c2a2 100644
    function save_mod_rewrite_rules() { 
    254254        global $wp_rewrite;
    255255
    256256        // Ensure get_home_path() is declared.
    257         require_once( ABSPATH . 'wp-admin/includes/file.php' );
     257        require_once ABSPATH . 'wp-admin/includes/file.php';
    258258
    259259        $home_path     = get_home_path();
    260260        $htaccess_file = $home_path . '.htaccess';
    function iis7_save_url_rewrite_rules() { 
    291291        global $wp_rewrite;
    292292
    293293        // Ensure get_home_path() is declared.
    294         require_once( ABSPATH . 'wp-admin/includes/file.php' );
     294        require_once ABSPATH . 'wp-admin/includes/file.php';
    295295
    296296        $home_path       = get_home_path();
    297297        $web_config_file = $home_path . 'web.config';
  • src/wp-admin/includes/nav-menu.php

    diff --git src/wp-admin/includes/nav-menu.php src/wp-admin/includes/nav-menu.php
    index 9b321ff4f3..b5d0bad956 100644
     
    88 */
    99
    1010/** Walker_Nav_Menu_Edit class */
    11 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );
     11require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php';
    1212
    1313/** Walker_Nav_Menu_Checklist class */
    14 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' );
     14require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php';
    1515
    1616/**
    1717 * Prints the appropriate response to a menu quick search.
  • src/wp-admin/includes/network.php

    diff --git src/wp-admin/includes/network.php src/wp-admin/includes/network.php
    index b814adcf2c..c29ba514d4 100644
    function network_step1( $errors = false ) { 
    116116                        '<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>'
    117117                ) . '</p></div>';
    118118                echo '</div>';
    119                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     119                include ABSPATH . 'wp-admin/admin-footer.php';
    120120                die();
    121121        }
    122122
    function network_step1( $errors = false ) { 
    129129                ) . '</p></div>';
    130130                echo '<p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>';
    131131                echo '</div>';
    132                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     132                include ABSPATH . 'wp-admin/admin-footer.php';
    133133                die();
    134134        }
    135135
    function network_step1( $errors = false ) { 
    144144                ) . '</p>';
    145145                echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>';
    146146                echo '</div>';
    147                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     147                include ABSPATH . 'wp-admin/admin-footer.php';
    148148                die();
    149149        }
    150150
  • src/wp-admin/includes/plugin-install.php

    diff --git src/wp-admin/includes/plugin-install.php src/wp-admin/includes/plugin-install.php
    index 6e56b33669..9a80b417d6 100644
     
    101101 */
    102102function plugins_api( $action, $args = array() ) {
    103103        // include an unmodified $wp_version
    104         include( ABSPATH . WPINC . '/version.php' );
     104        include ABSPATH . WPINC . '/version.php';
    105105
    106106        if ( is_array( $args ) ) {
    107107                $args = (object) $args;
  • src/wp-admin/includes/plugin.php

    diff --git src/wp-admin/includes/plugin.php src/wp-admin/includes/plugin.php
    index ff87539798..75eff7b7d3 100644
    function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen 
    647647                if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
    648648                        define( 'WP_SANDBOX_SCRAPING', true );
    649649                }
    650                 include_once( WP_PLUGIN_DIR . '/' . $plugin );
     650                include_once WP_PLUGIN_DIR . '/' . $plugin;
    651651                $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin.
    652652
    653653                if ( ! $silent ) {
    function delete_plugins( $plugins, $deprecated = '' ) { 
    898898
    899899        if ( false === $credentials ) {
    900900                if ( ! empty( $data ) ) {
    901                         include_once( ABSPATH . 'wp-admin/admin-header.php' );
     901                        include_once ABSPATH . 'wp-admin/admin-header.php';
    902902                        echo $data;
    903                         include( ABSPATH . 'wp-admin/admin-footer.php' );
     903                        include ABSPATH . 'wp-admin/admin-footer.php';
    904904                        exit;
    905905                }
    906906                return;
    function delete_plugins( $plugins, $deprecated = '' ) { 
    912912                $data = ob_get_clean();
    913913
    914914                if ( ! empty( $data ) ) {
    915                         include_once( ABSPATH . 'wp-admin/admin-header.php' );
     915                        include_once ABSPATH . 'wp-admin/admin-header.php';
    916916                        echo $data;
    917                         include( ABSPATH . 'wp-admin/admin-footer.php' );
     917                        include ABSPATH . 'wp-admin/admin-footer.php';
    918918                        exit;
    919919                }
    920920                return;
    function uninstall_plugin( $plugin ) { 
    12081208
    12091209                define( 'WP_UNINSTALL_PLUGIN', $file );
    12101210                wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
    1211                 include( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' );
     1211                include WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php';
    12121212
    12131213                return true;
    12141214        }
    function uninstall_plugin( $plugin ) { 
    12201220                unset( $uninstallable_plugins );
    12211221
    12221222                wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
    1223                 include( WP_PLUGIN_DIR . '/' . $file );
     1223                include WP_PLUGIN_DIR . '/' . $file;
    12241224
    12251225                add_action( "uninstall_{$file}", $callable );
    12261226
    function plugin_sandbox_scrape( $plugin ) { 
    22412241                define( 'WP_SANDBOX_SCRAPING', true );
    22422242        }
    22432243        wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
    2244         include( WP_PLUGIN_DIR . '/' . $plugin );
     2244        include WP_PLUGIN_DIR . '/' . $plugin;
    22452245}
    22462246
    22472247/**
    function wp_add_privacy_policy_content( $plugin_name, $policy_text ) { 
    22912291        }
    22922292
    22932293        if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    2294                 require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
     2294                require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    22952295        }
    22962296
    22972297        WP_Privacy_Policy_Content::add( $plugin_name, $policy_text );
  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index 3ed611d0c4..e2aa398cdc 100644
     
    99 */
    1010
    1111/** Walker_Category_Checklist class */
    12 require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' );
     12require_once ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php';
    1313
    1414/** WP_Internal_Pointers class */
    15 require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' );
     15require_once ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php';
    1616
    1717//
    1818// Category Checklists
  • src/wp-admin/includes/theme.php

    diff --git src/wp-admin/includes/theme.php src/wp-admin/includes/theme.php
    index 2e8e0172d4..31e172b9ff 100644
    function delete_theme( $stylesheet, $redirect = '' ) { 
    3535
    3636        if ( false === $credentials ) {
    3737                if ( ! empty( $data ) ) {
    38                         include_once( ABSPATH . 'wp-admin/admin-header.php' );
     38                        include_once ABSPATH . 'wp-admin/admin-header.php';
    3939                        echo $data;
    40                         include( ABSPATH . 'wp-admin/admin-footer.php' );
     40                        include ABSPATH . 'wp-admin/admin-footer.php';
    4141                        exit;
    4242                }
    4343                return;
    function delete_theme( $stylesheet, $redirect = '' ) { 
    4949                $data = ob_get_clean();
    5050
    5151                if ( ! empty( $data ) ) {
    52                         include_once( ABSPATH . 'wp-admin/admin-header.php' );
     52                        include_once ABSPATH . 'wp-admin/admin-header.php';
    5353                        echo $data;
    54                         include( ABSPATH . 'wp-admin/admin-footer.php' );
     54                        include ABSPATH . 'wp-admin/admin-footer.php';
    5555                        exit;
    5656                }
    5757                return;
    function get_theme_feature_list( $api = true ) { 
    434434 */
    435435function themes_api( $action, $args = array() ) {
    436436        // include an unmodified $wp_version
    437         include( ABSPATH . WPINC . '/version.php' );
     437        include ABSPATH . WPINC . '/version.php';
    438438
    439439        if ( is_array( $args ) ) {
    440440                $args = (object) $args;
  • src/wp-admin/includes/translation-install.php

    diff --git src/wp-admin/includes/translation-install.php src/wp-admin/includes/translation-install.php
    index 6296f07c74..1336eb87a3 100644
     
    1717 * @return object|WP_Error On success an object of translations, WP_Error on failure.
    1818 */
    1919function translations_api( $type, $args = null ) {
    20         include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
     20        include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
    2121
    2222        if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) {
    2323                return  new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
    function wp_get_available_translations() { 
    126126                }
    127127        }
    128128
    129         include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
     129        include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
    130130
    131131        $api = translations_api( 'core', array( 'version' => $wp_version ) );
    132132
  • src/wp-admin/includes/update-core.php

    diff --git src/wp-admin/includes/update-core.php src/wp-admin/includes/update-core.php
    index 48e3e1277b..6bf368a17f 100644
    function update_core( $from, $to ) { 
    933933        }
    934934
    935935        $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );
    936         require( WP_CONTENT_DIR . '/upgrade/version-current.php' );
     936        require WP_CONTENT_DIR . '/upgrade/version-current.php';
    937937        $wp_filesystem->delete( $versions_file );
    938938
    939939        $php_version       = phpversion();
    window.location = 'about.php?updated'; 
    14241424        <?php
    14251425
    14261426        // Include admin-footer.php and exit.
    1427         include( ABSPATH . 'wp-admin/admin-footer.php' );
     1427        include ABSPATH . 'wp-admin/admin-footer.php';
    14281428        exit();
    14291429}
    14301430
  • src/wp-admin/includes/update.php

    diff --git src/wp-admin/includes/update.php src/wp-admin/includes/update.php
    index 0caa04a963..997a63ef0c 100644
    function find_core_auto_update() { 
    9090                return false;
    9191        }
    9292
    93         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     93        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    9494
    9595        $auto_update = false;
    9696        $upgrader    = new WP_Automatic_Updater;
    function wp_theme_update_row( $theme_key, $theme ) { 
    723723 * @return void|false
    724724 */
    725725function maintenance_nag() {
    726         include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
     726        include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
    727727        global $upgrading;
    728728        $nag = isset( $upgrading );
    729729        if ( ! $nag ) {
  • src/wp-admin/includes/upgrade.php

    diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
    index 505b0aad17..cd5acbf70d 100644
     
    1010
    1111/** Include user installation customization script. */
    1212if ( file_exists( WP_CONTENT_DIR . '/install.php' ) ) {
    13         require( WP_CONTENT_DIR . '/install.php' );
     13        require WP_CONTENT_DIR . '/install.php';
    1414}
    1515
    1616/** WordPress Administration API */
    17 require_once( ABSPATH . 'wp-admin/includes/admin.php' );
     17require_once ABSPATH . 'wp-admin/includes/admin.php';
    1818
    1919/** WordPress Schema API */
    20 require_once( ABSPATH . 'wp-admin/includes/schema.php' );
     20require_once ABSPATH . 'wp-admin/includes/schema.php';
    2121
    2222if ( ! function_exists( 'wp_install' ) ) :
    2323        /**
    Commenter avatars come from <a href="https://gravatar.com">Gravatar</a>.' 
    358358                        $privacy_policy_content = get_site_option( 'default_privacy_policy_content' );
    359359                } else {
    360360                        if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    361                                 include_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
     361                                include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    362362                        }
    363363
    364364                        $privacy_policy_content = WP_Privacy_Policy_Content::get_default_content();
  • src/wp-admin/index.php

    diff --git src/wp-admin/index.php src/wp-admin/index.php
    index 6db93a9df4..50b7f4046f 100644
     
    66 * please refer to wp-admin/_index.php.
    77 */
    88
    9 if ( file_exists( dirname( __FILE__ ) . '/../wp-includes/js/dist/edit-post.js' ) ) {
    10         require_once dirname( __FILE__ ) . '/_index.php';
     9if ( file_exists( __DIR__ . '/../wp-includes/js/dist/edit-post.js' ) ) {
     10        require_once __DIR__ . '/_index.php';
    1111        return;
    1212}
    1313
    14 require_once dirname( dirname( __FILE__ ) ) . '/index.php';
     14require_once dirname( __DIR__ ) . '/index.php';
  • src/wp-admin/install-helper.php

    diff --git src/wp-admin/install-helper.php src/wp-admin/install-helper.php
    index 432a4a9fa5..1c545759b0 100644
     
    3535 */
    3636
    3737/** Load WordPress Bootstrap */
    38 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     38require_once dirname( __DIR__ ) . '/wp-load.php';
    3939
    4040if ( ! function_exists( 'maybe_create_table' ) ) :
    4141        /**
  • src/wp-admin/install.php

    diff --git src/wp-admin/install.php src/wp-admin/install.php
    index 68408c9c41..d0214c30e8 100644
    if ( false ) { 
    3333define( 'WP_INSTALLING', true );
    3434
    3535/** Load WordPress Bootstrap */
    36 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     36require_once dirname( __DIR__ ) . '/wp-load.php';
    3737
    3838/** Load WordPress Administration Upgrade API */
    39 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     39require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    4040
    4141/** Load WordPress Translation Install API */
    42 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     42require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    4343
    4444/** Load wpdb */
    45 require_once( ABSPATH . WPINC . '/wp-db.php' );
     45require_once ABSPATH . WPINC . '/wp-db.php';
    4646
    4747nocache_headers();
    4848
  • src/wp-admin/link-add.php

    diff --git src/wp-admin/link-add.php src/wp-admin/link-add.php
    index ff617d5777..83cf4036f3 100644
     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_links' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
    if ( wp_is_mobile() ) { 
    2626}
    2727
    2828$link = get_default_link_to_edit();
    29 include( ABSPATH . 'wp-admin/edit-link-form.php' );
     29include ABSPATH . 'wp-admin/edit-link-form.php';
    3030
    31 require( ABSPATH . 'wp-admin/admin-footer.php' );
     31require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/link-manager.php

    diff --git src/wp-admin/link-manager.php src/wp-admin/link-manager.php
    index 1ca9bf64b3..21158367fc 100644
     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111if ( ! current_user_can( 'manage_links' ) ) {
    1212        wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
    1313}
    get_current_screen()->set_screen_reader_content( 
    8585        )
    8686);
    8787
    88 include_once( ABSPATH . 'wp-admin/admin-header.php' );
     88include_once ABSPATH . 'wp-admin/admin-header.php';
    8989
    9090if ( ! current_user_can( 'manage_links' ) ) {
    9191        wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
    if ( isset( $_REQUEST['deleted'] ) ) { 
    134134</div>
    135135
    136136<?php
    137 include( ABSPATH . 'wp-admin/admin-footer.php' );
     137include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/link.php

    diff --git src/wp-admin/link.php src/wp-admin/link.php
    index ef5b26a515..32d38a11ad 100644
     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( dirname( __FILE__ ) . '/admin.php' );
     13require_once __DIR__ . '/admin.php';
    1414
    1515wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
    1616
    switch ( $action ) { 
    117117                        wp_die( __( 'Link not found.' ) );
    118118                }
    119119
    120                 include( ABSPATH . 'wp-admin/edit-link-form.php' );
    121                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     120                include ABSPATH . 'wp-admin/edit-link-form.php';
     121                include ABSPATH . 'wp-admin/admin-footer.php';
    122122                break;
    123123
    124124        default:
  • src/wp-admin/load-scripts.php

    diff --git src/wp-admin/load-scripts.php src/wp-admin/load-scripts.php
    index bdb5fa5cec..b47ab04f8b 100644
    error_reporting( 0 ); 
    99
    1010/** Set ABSPATH for execution */
    1111if ( ! defined( 'ABSPATH' ) ) {
    12         define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     12        define( 'ABSPATH', dirname( __DIR__ ) . '/' );
    1313}
    1414
    1515define( 'WPINC', 'wp-includes' );
    if ( empty( $load ) ) { 
    3333        exit;
    3434}
    3535
    36 require( ABSPATH . 'wp-admin/includes/noop.php' );
    37 require( ABSPATH . WPINC . '/script-loader.php' );
    38 require( ABSPATH . WPINC . '/version.php' );
     36require ABSPATH . 'wp-admin/includes/noop.php';
     37require ABSPATH . WPINC . '/script-loader.php';
     38require ABSPATH . WPINC . '/version.php';
    3939
    4040$expires_offset = 31536000; // 1 year
    4141$out            = '';
  • src/wp-admin/load-styles.php

    diff --git src/wp-admin/load-styles.php src/wp-admin/load-styles.php
    index 8b3cc0d75f..138846698d 100644
    error_reporting( 0 ); 
    99
    1010/** Set ABSPATH for execution */
    1111if ( ! defined( 'ABSPATH' ) ) {
    12         define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     12        define( 'ABSPATH', dirname( __DIR__ ) . '/' );
    1313}
    1414
    1515define( 'WPINC', 'wp-includes' );
    1616
    17 require( ABSPATH . 'wp-admin/includes/noop.php' );
    18 require( ABSPATH . WPINC . '/script-loader.php' );
    19 require( ABSPATH . WPINC . '/version.php' );
     17require ABSPATH . 'wp-admin/includes/noop.php';
     18require ABSPATH . WPINC . '/script-loader.php';
     19require ABSPATH . WPINC . '/version.php';
    2020
    2121$protocol = $_SERVER['SERVER_PROTOCOL'];
    2222if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {
  • src/wp-admin/maint/repair.php

    diff --git src/wp-admin/maint/repair.php src/wp-admin/maint/repair.php
    index 070a91b118..e6bc2418da 100644
     
    77 */
    88define( 'WP_REPAIRING', true );
    99
    10 require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' );
     10require_once dirname( dirname( __DIR__ ) ) . '/wp-load.php';
    1111
    1212header( 'Content-Type: text/html; charset=utf-8' );
    1313?>
  • src/wp-admin/media-new.php

    diff --git src/wp-admin/media-new.php src/wp-admin/media-new.php
    index 0cc82a5fd4..c13df43c8f 100644
     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( dirname( __FILE__ ) . '/admin.php' );
     13require_once __DIR__ . '/admin.php';
    1414
    1515if ( ! current_user_can( 'upload_files' ) ) {
    1616        wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
    get_current_screen()->set_help_sidebar( 
    6161        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    6262);
    6363
    64 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     64require_once ABSPATH . 'wp-admin/admin-header.php';
    6565
    6666$form_class = 'media-upload-form type-form validate';
    6767
    if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) { 
    8686</div>
    8787
    8888<?php
    89 include( ABSPATH . 'wp-admin/admin-footer.php' );
     89include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/media-upload.php

    diff --git src/wp-admin/media-upload.php src/wp-admin/media-upload.php
    index 2354cf629d..12ceabf44a 100644
    if ( ! isset( $_GET['inline'] ) ) { 
    1414}
    1515
    1616/** Load WordPress Administration Bootstrap */
    17 require_once( dirname( __FILE__ ) . '/admin.php' );
     17require_once __DIR__ . '/admin.php';
    1818
    1919if ( ! current_user_can( 'upload_files' ) ) {
    2020        wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 );
  • src/wp-admin/media.php

    diff --git src/wp-admin/media.php src/wp-admin/media.php
    index 1e09eda2f8..a1836d2b72 100644
     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212$parent_file  = 'upload.php';
    1313$submenu_file = 'upload.php';
    switch ( $action ) { 
    9797                        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    9898                );
    9999
    100                 require( ABSPATH . 'wp-admin/admin-header.php' );
     100                require ABSPATH . 'wp-admin/admin-header.php';
    101101
    102102                $parent_file = 'upload.php';
    103103                $message     = '';
    switch ( $action ) { 
    166166
    167167                <?php
    168168
    169                 require( ABSPATH . 'wp-admin/admin-footer.php' );
     169                require ABSPATH . 'wp-admin/admin-footer.php';
    170170
    171171                exit;
    172172
  • src/wp-admin/menu.php

    diff --git src/wp-admin/menu.php src/wp-admin/menu.php
    index 7aec19663d..50dd4664aa 100644
    $compat = array( 
    323323        'themes'          => 'appearance',
    324324);
    325325
    326 require_once( ABSPATH . 'wp-admin/includes/menu.php' );
     326require_once ABSPATH . 'wp-admin/includes/menu.php';
  • src/wp-admin/moderation.php

    diff --git src/wp-admin/moderation.php src/wp-admin/moderation.php
    index ae375df3e7..f52ff79475 100644
     
    77 * @package WordPress
    88 * @subpackage Administration
    99 */
    10 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     10require_once dirname( __DIR__ ) . '/wp-load.php';
    1111wp_redirect( admin_url( 'edit-comments.php?comment_status=moderated' ) );
    1212exit;
  • src/wp-admin/ms-admin.php

    diff --git src/wp-admin/ms-admin.php src/wp-admin/ms-admin.php
    index 35e21e971a..24339eca28 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url() );
    1313exit;
  • src/wp-admin/ms-delete-site.php

    diff --git src/wp-admin/ms-delete-site.php src/wp-admin/ms-delete-site.php
    index 3cb1574356..bd06703c08 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! is_multisite() ) {
    1313        wp_die( __( 'Multisite support is not enabled.' ) );
    $user = wp_get_current_user(); 
    3737
    3838$title       = __( 'Delete Site' );
    3939$parent_file = 'tools.php';
    40 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     40require_once ABSPATH . 'wp-admin/admin-header.php';
    4141
    4242echo '<div class="wrap">';
    4343echo '<h1>' . esc_html( $title ) . '</h1>';
    Webmaster 
    133133}
    134134echo '</div>';
    135135
    136 include( ABSPATH . 'wp-admin/admin-footer.php' );
     136include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/ms-edit.php

    diff --git src/wp-admin/ms-edit.php src/wp-admin/ms-edit.php
    index 5c405e6f73..c9503b358d 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url() );
    1313exit;
  • src/wp-admin/ms-options.php

    diff --git src/wp-admin/ms-options.php src/wp-admin/ms-options.php
    index 6bf5eb6b1b..ebc8529624 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url( 'settings.php' ) );
  • src/wp-admin/ms-sites.php

    diff --git src/wp-admin/ms-sites.php src/wp-admin/ms-sites.php
    index 79602cb07f..f1f8fdcb58 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url( 'sites.php' ) );
    1313exit;
  • src/wp-admin/ms-themes.php

    diff --git src/wp-admin/ms-themes.php src/wp-admin/ms-themes.php
    index 4b86ac9684..f3d8a38352 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url( 'themes.php' ) );
    1313exit;
  • src/wp-admin/ms-upgrade-network.php

    diff --git src/wp-admin/ms-upgrade-network.php src/wp-admin/ms-upgrade-network.php
    index 892ab964c7..25c604631b 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url( 'upgrade.php' ) );
    1313exit;
  • src/wp-admin/ms-users.php

    diff --git src/wp-admin/ms-users.php src/wp-admin/ms-users.php
    index 1b00514ec3..6771807157 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_redirect( network_admin_url( 'users.php' ) );
    1313exit;
  • src/wp-admin/my-sites.php

    diff --git src/wp-admin/my-sites.php src/wp-admin/my-sites.php
    index a733cf25ed..e2d8699135 100644
     
    77 * @since 3.0.0
    88 */
    99
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! is_multisite() ) {
    1313        wp_die( __( 'Multisite support is not enabled.' ) );
    get_current_screen()->set_help_sidebar( 
    5252        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    5353);
    5454
    55 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     55require_once ABSPATH . 'wp-admin/admin-header.php';
    5656
    5757if ( $updated ) { ?>
    5858        <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
    else : 
    157157<?php endif; ?>
    158158        </div>
    159159<?php
    160 include( ABSPATH . 'wp-admin/admin-footer.php' );
     160include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/nav-menus.php

    diff --git src/wp-admin/nav-menus.php src/wp-admin/nav-menus.php
    index d707e49cbf..08e2bcf9e2 100644
     
    1010 */
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( dirname( __FILE__ ) . '/admin.php' );
     13require_once __DIR__ . '/admin.php';
    1414
    1515// Load all the nav menu interface functions
    16 require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
     16require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
    1717
    1818if ( ! current_theme_supports( 'menus' ) && ! current_theme_supports( 'widgets' ) ) {
    1919        wp_die( __( 'Your theme does not support navigation menus or widgets.' ) );
    get_current_screen()->set_help_sidebar( 
    606606);
    607607
    608608// Get the admin header.
    609 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     609require_once ABSPATH . 'wp-admin/admin-header.php';
    610610?>
    611611<div class="wrap">
    612612        <h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1>
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    10351035        </div><!-- /#nav-menus-frame -->
    10361036        <?php endif; ?>
    10371037</div><!-- /.wrap-->
    1038 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     1038<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/network.php

    diff --git src/wp-admin/network.php src/wp-admin/network.php
    index a3409622a0..a52f07d08b 100644
     
    1313define( 'WP_INSTALLING_NETWORK', true );
    1414
    1515/** WordPress Administration Bootstrap */
    16 require_once( dirname( __FILE__ ) . '/admin.php' );
     16require_once __DIR__ . '/admin.php';
    1717
    1818if ( ! current_user_can( 'setup_network' ) ) {
    1919        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    if ( is_multisite() ) { 
    3030        }
    3131}
    3232
    33 require_once( dirname( __FILE__ ) . '/includes/network.php' );
     33require_once __DIR__ . '/includes/network.php';
    3434
    3535// We need to create references to ms global tables to enable Network.
    3636foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) {
    get_current_screen()->set_help_sidebar( 
    8181        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    8282);
    8383
    84 include( ABSPATH . 'wp-admin/admin-header.php' );
     84include ABSPATH . 'wp-admin/admin-header.php';
    8585?>
    8686<div class="wrap">
    8787<h1><?php echo esc_html( $title ); ?></h1>
    if ( $_POST ) { 
    9191
    9292        check_admin_referer( 'install-network-1' );
    9393
    94         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     94        require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    9595        // Create network tables.
    9696        install_network();
    9797        $base              = parse_url( trailingslashit( get_option( 'home' ) ), PHP_URL_PATH );
    if ( $_POST ) { 
    118118?>
    119119</div>
    120120
    121 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     121<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/network/about.php

    diff --git src/wp-admin/network/about.php src/wp-admin/network/about.php
    index 829fa1beef..35fde6858f 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/about.php' );
     13require ABSPATH . 'wp-admin/about.php';
  • src/wp-admin/network/admin.php

    diff --git src/wp-admin/network/admin.php src/wp-admin/network/admin.php
    index 693fa5aa11..5c2ce2e858 100644
     
    1010define( 'WP_NETWORK_ADMIN', true );
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
     13require_once dirname( __DIR__ ) . '/admin.php';
    1414
    1515// Do not remove this check. It is required by individual network admin pages.
    1616if ( ! is_multisite() ) {
  • src/wp-admin/network/credits.php

    diff --git src/wp-admin/network/credits.php src/wp-admin/network/credits.php
    index 75ee6e7337..6e6a0a9961 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/credits.php' );
     13require ABSPATH . 'wp-admin/credits.php';
  • src/wp-admin/network/edit.php

    diff --git src/wp-admin/network/edit.php src/wp-admin/network/edit.php
    index 51381e40bf..e33792debf 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
    1414
  • src/wp-admin/network/freedoms.php

    diff --git src/wp-admin/network/freedoms.php src/wp-admin/network/freedoms.php
    index 9afbe82f34..b6319df607 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/freedoms.php' );
     13require ABSPATH . 'wp-admin/freedoms.php';
  • src/wp-admin/network/index.php

    diff --git src/wp-admin/network/index.php src/wp-admin/network/index.php
    index fbc169bd21..840ae4d473 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313/** Load WordPress dashboard API */
    14 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
     14require_once ABSPATH . 'wp-admin/includes/dashboard.php';
    1515
    1616if ( ! current_user_can( 'manage_network' ) ) {
    1717        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    wp_enqueue_script( 'dashboard' ); 
    6262wp_enqueue_script( 'plugin-install' );
    6363add_thickbox();
    6464
    65 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     65require_once ABSPATH . 'wp-admin/admin-header.php';
    6666
    6767?>
    6868
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    8080
    8181<?php
    8282wp_print_community_events_templates();
    83 include( ABSPATH . 'wp-admin/admin-footer.php' );
     83include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/menu.php

    diff --git src/wp-admin/network/menu.php src/wp-admin/network/menu.php
    index 03a2edf954..28509b1769 100644
    unset( $update_data ); 
    115115
    116116$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' );
    117117
    118 require_once( ABSPATH . 'wp-admin/includes/menu.php' );
     118require_once ABSPATH . 'wp-admin/includes/menu.php';
  • src/wp-admin/network/plugin-editor.php

    diff --git src/wp-admin/network/plugin-editor.php src/wp-admin/network/plugin-editor.php
    index 7171e7252c..e807caee4a 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/plugin-editor.php' );
     13require ABSPATH . 'wp-admin/plugin-editor.php';
  • src/wp-admin/network/plugin-install.php

    diff --git src/wp-admin/network/plugin-install.php src/wp-admin/network/plugin-install.php
    index f771f63a88..f34ed8346d 100644
    if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) { 
    1212}
    1313
    1414/** Load WordPress Administration Bootstrap */
    15 require_once( dirname( __FILE__ ) . '/admin.php' );
     15require_once __DIR__ . '/admin.php';
    1616
    17 require( ABSPATH . 'wp-admin/plugin-install.php' );
     17require ABSPATH . 'wp-admin/plugin-install.php';
  • src/wp-admin/network/plugins.php

    diff --git src/wp-admin/network/plugins.php src/wp-admin/network/plugins.php
    index 56c3debd01..21139ada11 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/plugins.php' );
     13require ABSPATH . 'wp-admin/plugins.php';
  • src/wp-admin/network/privacy.php

    diff --git src/wp-admin/network/privacy.php src/wp-admin/network/privacy.php
    index 5cba05d37d..57842b7b8a 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/privacy.php' );
     13require ABSPATH . 'wp-admin/privacy.php';
  • src/wp-admin/network/profile.php

    diff --git src/wp-admin/network/profile.php src/wp-admin/network/profile.php
    index 240ef980a4..6a27557292 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/profile.php' );
     13require ABSPATH . 'wp-admin/profile.php';
  • src/wp-admin/network/settings.php

    diff --git src/wp-admin/network/settings.php src/wp-admin/network/settings.php
    index c100a665f3..f33c7c20cf 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313/** WordPress Translation Installation API */
    14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     14require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    1515
    1616if ( ! current_user_can( 'manage_network_options' ) ) {
    1717        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    if ( $_POST ) { 
    135135        exit();
    136136}
    137137
    138 include( ABSPATH . 'wp-admin/admin-header.php' );
     138include ABSPATH . 'wp-admin/admin-header.php';
    139139
    140140if ( isset( $_GET['updated'] ) ) {
    141141        ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div>
    if ( isset( $_GET['updated'] ) ) { 
    486486        </form>
    487487</div>
    488488
    489 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     489<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/network/setup.php

    diff --git src/wp-admin/network/setup.php src/wp-admin/network/setup.php
    index 9a642bbb92..4b1f5b1e59 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/network.php' );
     13require ABSPATH . 'wp-admin/network.php';
  • src/wp-admin/network/site-info.php

    diff --git src/wp-admin/network/site-info.php src/wp-admin/network/site-info.php
    index 2bcc1c58a3..f224031502 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_sites' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
    $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); 
    127127$parent_file  = 'sites.php';
    128128$submenu_file = 'sites.php';
    129129
    130 require( ABSPATH . 'wp-admin/admin-header.php' );
     130require ABSPATH . 'wp-admin/admin-header.php';
    131131
    132132?>
    133133
    if ( ! empty( $messages ) ) { 
    206206
    207207</div>
    208208<?php
    209 require( ABSPATH . 'wp-admin/admin-footer.php' );
     209require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/site-new.php

    diff --git src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php
    index d86058e0f4..e0b742b9f4 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313/** WordPress Translation Installation API */
    14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     14require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    1515
    1616if ( ! current_user_can( 'create_sites' ) ) {
    1717        wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
    $parent_file = 'sites.php'; 
    202202
    203203wp_enqueue_script( 'user-suggest' );
    204204
    205 require( ABSPATH . 'wp-admin/admin-header.php' );
     205require ABSPATH . 'wp-admin/admin-header.php';
    206206
    207207?>
    208208
    printf( 
    300300        </form>
    301301</div>
    302302<?php
    303 require( ABSPATH . 'wp-admin/admin-footer.php' );
     303require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/site-settings.php

    diff --git src/wp-admin/network/site-settings.php src/wp-admin/network/site-settings.php
    index 7c3cae7200..4700aa78d3 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_sites' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
    $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); 
    8585$parent_file  = 'sites.php';
    8686$submenu_file = 'sites.php';
    8787
    88 require( ABSPATH . 'wp-admin/admin-header.php' );
     88require ABSPATH . 'wp-admin/admin-header.php';
    8989
    9090?>
    9191
    if ( ! empty( $messages ) ) { 
    173173
    174174</div>
    175175<?php
    176 require( ABSPATH . 'wp-admin/admin-footer.php' );
     176require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/site-themes.php

    diff --git src/wp-admin/network/site-themes.php src/wp-admin/network/site-themes.php
    index fc1a79805f..fdd6a29b95 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_sites' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) );
    $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); 
    172172$parent_file  = 'sites.php';
    173173$submenu_file = 'sites.php';
    174174
    175 require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     175require ABSPATH . 'wp-admin/admin-header.php'; ?>
    176176
    177177<div class="wrap">
    178178<h1 id="edit-site"><?php echo $title; ?></h1>
    if ( isset( $_GET['enabled'] ) ) { 
    226226</form>
    227227
    228228</div>
    229 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     229<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/network/site-users.php

    diff --git src/wp-admin/network/site-users.php src/wp-admin/network/site-users.php
    index 5113025776..6bfc4b170d 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_sites' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to edit this site.' ), 403 );
    if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users 
    214214        wp_enqueue_script( 'user-suggest' );
    215215}
    216216
    217 require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     217require ABSPATH . 'wp-admin/admin-header.php'; ?>
    218218
    219219<script type="text/javascript">
    220220var current_site_id = <?php echo $id; ?>;
    if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use 
    363363<?php endif; ?>
    364364</div>
    365365<?php
    366 require( ABSPATH . 'wp-admin/admin-footer.php' );
     366require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/sites.php

    diff --git src/wp-admin/network/sites.php src/wp-admin/network/sites.php
    index 554e260509..a4a7a2beb3 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_sites' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    if ( isset( $_GET['action'] ) ) { 
    108108                $site_details = get_site( $id );
    109109                $site_address = untrailingslashit( $site_details->domain . $site_details->path );
    110110
    111                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     111                require_once ABSPATH . 'wp-admin/admin-header.php';
    112112                ?>
    113113                        <div class="wrap">
    114114                                <h1><?php _e( 'Confirm your action' ); ?></h1>
    if ( isset( $_GET['action'] ) ) { 
    122122                                </form>
    123123                        </div>
    124124                <?php
    125                 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     125                require_once ABSPATH . 'wp-admin/admin-footer.php';
    126126                exit();
    127127        } elseif ( array_key_exists( $_GET['action'], $manage_actions ) ) {
    128128                $action = $_GET['action'];
    if ( isset( $_GET['action'] ) ) { 
    184184                                        if ( $val != '0' && $val != get_network()->site_id ) {
    185185                                                switch ( $doaction ) {
    186186                                                        case 'delete':
    187                                                                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     187                                                                require_once ABSPATH . 'wp-admin/admin-header.php';
    188188                                                                ?>
    189189                                                                <div class="wrap">
    190190                                                                        <h1><?php _e( 'Confirm your action' ); ?></h1>
    if ( isset( $_GET['action'] ) ) { 
    209209                                                                        </form>
    210210                                                                </div>
    211211                                                                <?php
    212                                                                 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     212                                                                require_once ABSPATH . 'wp-admin/admin-footer.php';
    213213                                                                exit();
    214214                                                        break;
    215215
    if ( isset( $_GET['updated'] ) ) { 
    354354
    355355$wp_list_table->prepare_items();
    356356
    357 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     357require_once ABSPATH . 'wp-admin/admin-header.php';
    358358?>
    359359
    360360<div class="wrap">
    if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 
    388388</div>
    389389<?php
    390390
    391 require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     391require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/network/theme-editor.php

    diff --git src/wp-admin/network/theme-editor.php src/wp-admin/network/theme-editor.php
    index c28c9675cc..e503efa9d5 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/theme-editor.php' );
     13require ABSPATH . 'wp-admin/theme-editor.php';
  • src/wp-admin/network/theme-install.php

    diff --git src/wp-admin/network/theme-install.php src/wp-admin/network/theme-install.php
    index 486c74780b..93695d5a8a 100644
    if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) ) { 
    1212}
    1313
    1414/** Load WordPress Administration Bootstrap */
    15 require_once( dirname( __FILE__ ) . '/admin.php' );
     15require_once __DIR__ . '/admin.php';
    1616
    17 require( ABSPATH . 'wp-admin/theme-install.php' );
     17require ABSPATH . 'wp-admin/theme-install.php';
  • src/wp-admin/network/themes.php

    diff --git src/wp-admin/network/themes.php src/wp-admin/network/themes.php
    index f7711f034d..92c9675273 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_network_themes' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) );
    if ( $action ) { 
    7676                        $title       = __( 'Update Themes' );
    7777                        $parent_file = 'themes.php';
    7878
    79                         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     79                        require_once ABSPATH . 'wp-admin/admin-header.php';
    8080
    8181                        echo '<div class="wrap">';
    8282                        echo '<h1>' . esc_html( $title ) . '</h1>';
    if ( $action ) { 
    8686
    8787                        echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
    8888                        echo '</div>';
    89                         require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     89                        require_once ABSPATH . 'wp-admin/admin-footer.php';
    9090                        exit;
    9191                case 'delete-selected':
    9292                        if ( ! current_user_can( 'delete_themes' ) ) {
    if ( $action ) { 
    114114                                $theme_info[ $theme ] = wp_get_theme( $theme );
    115115                        }
    116116
    117                         include( ABSPATH . 'wp-admin/update.php' );
     117                        include ABSPATH . 'wp-admin/update.php';
    118118
    119119                        $parent_file = 'themes.php';
    120120
    121121                        if ( ! isset( $_REQUEST['verify-delete'] ) ) {
    122122                                wp_enqueue_script( 'jquery' );
    123                                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     123                                require_once ABSPATH . 'wp-admin/admin-header.php';
    124124                                $themes_to_delete = count( $themes );
    125125                                ?>
    126126                        <div class="wrap">
    if ( $action ) { 
    175175                                </form>
    176176                        </div>
    177177                                <?php
    178                                 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     178                                require_once ABSPATH . 'wp-admin/admin-footer.php';
    179179                                exit;
    180180                        } // Endif verify-delete
    181181
    $parent_file = 'themes.php'; 
    261261wp_enqueue_script( 'updates' );
    262262wp_enqueue_script( 'theme-preview' );
    263263
    264 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     264require_once ABSPATH . 'wp-admin/admin-header.php';
    265265
    266266?>
    267267
    wp_print_request_filesystem_credentials_modal(); 
    343343wp_print_admin_notice_templates();
    344344wp_print_update_row_templates();
    345345
    346 include( ABSPATH . 'wp-admin/admin-footer.php' );
     346include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/update-core.php

    diff --git src/wp-admin/network/update-core.php src/wp-admin/network/update-core.php
    index 55f2aca32a..1997b36ed5 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/update-core.php' );
     13require ABSPATH . 'wp-admin/update-core.php';
  • src/wp-admin/network/update.php

    diff --git src/wp-admin/network/update.php src/wp-admin/network/update.php
    index 62dc7a96e7..2a8bccc709 100644
    if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selec 
    1212}
    1313
    1414/** Load WordPress Administration Bootstrap */
    15 require_once( dirname( __FILE__ ) . '/admin.php' );
     15require_once __DIR__ . '/admin.php';
    1616
    17 require( ABSPATH . 'wp-admin/update.php' );
     17require ABSPATH . 'wp-admin/update.php';
  • src/wp-admin/network/upgrade.php

    diff --git src/wp-admin/network/upgrade.php src/wp-admin/network/upgrade.php
    index e594a17555..307b8c1806 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require_once( ABSPATH . WPINC . '/http.php' );
     13require_once ABSPATH . WPINC . '/http.php';
    1414
    1515$title       = __( 'Upgrade Network' );
    1616$parent_file = 'upgrade.php';
    get_current_screen()->set_help_sidebar( 
    3232        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    3333);
    3434
    35 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     35require_once ABSPATH . 'wp-admin/admin-header.php';
    3636
    3737if ( ! current_user_can( 'upgrade_network' ) ) {
    3838        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    switch ( $action ) { 
    152152?>
    153153</div>
    154154
    155 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     155<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/network/user-edit.php

    diff --git src/wp-admin/network/user-edit.php src/wp-admin/network/user-edit.php
    index ef3c2720f1..7b908fd8b6 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/user-edit.php' );
     13require ABSPATH . 'wp-admin/user-edit.php';
  • src/wp-admin/network/user-new.php

    diff --git src/wp-admin/network/user-new.php src/wp-admin/network/user-new.php
    index 2bb2de1ed7..61f108701c 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'create_users' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to add users to this network.' ) );
    if ( isset( $_GET['update'] ) ) { 
    9999$title       = __( 'Add New User' );
    100100$parent_file = 'users.php';
    101101
    102 require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     102require ABSPATH . 'wp-admin/admin-header.php'; ?>
    103103
    104104<div class="wrap">
    105105<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
    if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { 
    148148        </form>
    149149</div>
    150150<?php
    151 require( ABSPATH . 'wp-admin/admin-footer.php' );
     151require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/network/users.php

    diff --git src/wp-admin/network/users.php src/wp-admin/network/users.php
    index 9c5bcc0ca4..3cb2d3bf39 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'manage_network_users' ) ) {
    1414        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    if ( isset( $_GET['action'] ) ) { 
    3131                                $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
    3232                                $title             = __( 'Users' );
    3333                                $parent_file       = 'users.php';
    34                                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     34                                require_once ABSPATH . 'wp-admin/admin-header.php';
    3535                                echo '<div class="wrap">';
    3636                                confirm_delete_users( $_POST['allusers'] );
    3737                                echo '</div>';
    38                                 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     38                                require_once ABSPATH . 'wp-admin/admin-footer.php';
    3939                        } else {
    4040                                wp_redirect( network_admin_url( 'users.php' ) );
    4141                        }
    if ( isset( $_GET['action'] ) ) { 
    6161                                                                }
    6262                                                                $title       = __( 'Users' );
    6363                                                                $parent_file = 'users.php';
    64                                                                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     64                                                                require_once ABSPATH . 'wp-admin/admin-header.php';
    6565                                                                echo '<div class="wrap">';
    6666                                                                confirm_delete_users( $_POST['allusers'] );
    6767                                                                echo '</div>';
    68                                                                 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     68                                                                require_once ABSPATH . 'wp-admin/admin-footer.php';
    6969                                                                exit();
    7070
    7171                                                        case 'spam':
    get_current_screen()->set_screen_reader_content( 
    237237        )
    238238);
    239239
    240 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     240require_once ABSPATH . 'wp-admin/admin-header.php';
    241241
    242242if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
    243243        ?>
    if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( 
    294294        </form>
    295295</div>
    296296
    297 <?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     297<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options-discussion.php

    diff --git src/wp-admin/options-discussion.php src/wp-admin/options-discussion.php
    index a61a5f6f8e..5c5aaf7536 100644
     
    66 * @subpackage Administration
    77 */
    88/** WordPress Administration Bootstrap */
    9 require_once( dirname( __FILE__ ) . '/admin.php' );
     9require_once __DIR__ . '/admin.php';
    1010
    1111if ( ! current_user_can( 'manage_options' ) ) {
    1212        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    get_current_screen()->set_help_sidebar( 
    3232        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    3333);
    3434
    35 include( ABSPATH . 'wp-admin/admin-header.php' );
     35include ABSPATH . 'wp-admin/admin-header.php';
    3636?>
    3737
    3838<div class="wrap">
    echo apply_filters( 'default_avatar_select', $avatar_list ); 
    328328</form>
    329329</div>
    330330
    331 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     331<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options-general.php

    diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
    index 13aa9c8114..8682189327 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212/** WordPress Translation Installation API */
    13 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     13require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    1414
    1515if ( ! current_user_can( 'manage_options' ) ) {
    1616        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    get_current_screen()->set_help_sidebar( 
    4949        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    5050);
    5151
    52 include( ABSPATH . 'wp-admin/admin-header.php' );
     52include ABSPATH . 'wp-admin/admin-header.php';
    5353?>
    5454
    5555<div class="wrap">
    endfor; 
    405405
    406406</div>
    407407
    408 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     408<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options-media.php

    diff --git src/wp-admin/options-media.php src/wp-admin/options-media.php
    index 4cc5e4c5ef..76c89265ac 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_options' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    get_current_screen()->set_help_sidebar( 
    3838        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    3939);
    4040
    41 include( ABSPATH . 'wp-admin/admin-header.php' );
     41include ABSPATH . 'wp-admin/admin-header.php';
    4242
    4343?>
    4444
    if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : 
    153153
    154154</div>
    155155
    156 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     156<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options-permalink.php

    diff --git src/wp-admin/options-permalink.php src/wp-admin/options-permalink.php
    index b9a69678ff..b20bb98ac5 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_options' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) 
    183183
    184184flush_rewrite_rules();
    185185
    186 require( ABSPATH . 'wp-admin/admin-header.php' );
     186require ABSPATH . 'wp-admin/admin-header.php';
    187187?>
    188188<div class="wrap">
    189189<h1><?php echo esc_html( $title ); ?></h1>
    else : 
    423423
    424424</div>
    425425
    426 <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     426<?php require ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options-privacy.php

    diff --git src/wp-admin/options-privacy.php src/wp-admin/options-privacy.php
    index 95492b326f..6d531b5aa8 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_privacy_options' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) );
    if ( ! empty( $action ) ) { 
    4949        } elseif ( 'create-privacy-page' === $action ) {
    5050
    5151                if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    52                         require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
     52                        require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    5353                }
    5454
    5555                $privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content();
    if ( ! empty( $privacy_policy_page_id ) ) { 
    115115$title       = __( 'Privacy Settings' );
    116116$parent_file = 'options-general.php';
    117117
    118 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     118require_once ABSPATH . 'wp-admin/admin-header.php';
    119119
    120120?>
    121121<div class="wrap">
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    252252</div>
    253253<?php
    254254
    255 include( ABSPATH . 'wp-admin/admin-footer.php' );
     255include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/options-reading.php

    diff --git src/wp-admin/options-reading.php src/wp-admin/options-reading.php
    index 662954ea24..dfe3742e97 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_options' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    get_current_screen()->set_help_sidebar( 
    5252        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    5353);
    5454
    55 include( ABSPATH . 'wp-admin/admin-header.php' );
     55include ABSPATH . 'wp-admin/admin-header.php';
    5656?>
    5757
    5858<div class="wrap">
    else : 
    215215<?php submit_button(); ?>
    216216</form>
    217217</div>
    218 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     218<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options-writing.php

    diff --git src/wp-admin/options-writing.php src/wp-admin/options-writing.php
    index 1ea19cd129..581ce08563 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_options' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    get_current_screen()->set_help_sidebar( 
    5353        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    5454);
    5555
    56 include( ABSPATH . 'wp-admin/admin-header.php' );
     56include ABSPATH . 'wp-admin/admin-header.php';
    5757?>
    5858
    5959<div class="wrap">
    if ( apply_filters( 'enable_update_services_configuration', true ) ) { 
    236236</form>
    237237</div>
    238238
    239 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     239<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/options.php

    diff --git src/wp-admin/options.php src/wp-admin/options.php
    index 1aaad130b4..1ff1aadd3b 100644
     
    1616 */
    1717
    1818/** WordPress Administration Bootstrap */
    19 require_once( dirname( __FILE__ ) . '/admin.php' );
     19require_once __DIR__ . '/admin.php';
    2020
    2121$title       = __( 'Settings' );
    2222$this_file   = 'options.php';
    if ( 'update' == $action ) { 
    246246
    247247                // Handle translation installation.
    248248                if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) ) {
    249                         require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     249                        require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    250250
    251251                        if ( wp_can_install_language_pack() ) {
    252252                                $language = wp_download_language_pack( $_POST['WPLANG'] );
    if ( 'update' == $action ) { 
    314314        exit;
    315315}
    316316
    317 include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     317include ABSPATH . 'wp-admin/admin-header.php'; ?>
    318318
    319319<div class="wrap">
    320320        <h1><?php esc_html_e( 'All Settings' ); ?></h1>
    foreach ( (array) $options as $option ) : 
    374374</div>
    375375
    376376<?php
    377 include( ABSPATH . 'wp-admin/admin-footer.php' );
     377include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/plugin-editor.php

    diff --git src/wp-admin/plugin-editor.php src/wp-admin/plugin-editor.php
    index 0b44fbb499..e617b44240 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( is_multisite() && ! is_network_admin() ) {
    1313        wp_redirect( network_admin_url( 'plugin-editor.php' ) );
    $parent_file = 'plugins.php'; 
    2424$plugins = get_plugins();
    2525
    2626if ( empty( $plugins ) ) {
    27         include( ABSPATH . 'wp-admin/admin-header.php' );
     27        include ABSPATH . 'wp-admin/admin-header.php';
    2828        ?>
    2929        <div class="wrap">
    3030                <h1><?php echo esc_html( $title ); ?></h1>
    3131                <div id="message" class="error"><p><?php _e( 'You do not appear to have any plugins available at this time.' ); ?></p></div>
    3232        </div>
    3333        <?php
    34         include( ABSPATH . 'wp-admin/admin-footer.php' );
     34        include ABSPATH . 'wp-admin/admin-footer.php';
    3535        exit;
    3636}
    3737
    if ( ! is_file( $real_file ) ) { 
    150150        wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings ) ) );
    151151        wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'wp.themePluginEditor.themeOrPlugin = "plugin";' ) );
    152152
    153         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     153        require_once ABSPATH . 'wp-admin/admin-header.php';
    154154
    155155        update_recently_edited( WP_PLUGIN_DIR . '/' . $file );
    156156
    if ( ! in_array( 'plugin_editor_notice', $dismissed_pointers, true ) ) : 
    326326        <?php
    327327endif; // Editor warning notice.
    328328
    329 include( ABSPATH . 'wp-admin/admin-footer.php' );
     329include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/plugin-install.php

    diff --git src/wp-admin/plugin-install.php src/wp-admin/plugin-install.php
    index 52dd791684..2780426c70 100644
    if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informa 
    1313/**
    1414 * WordPress Administration Bootstrap.
    1515 */
    16 require_once( dirname( __FILE__ ) . '/admin.php' );
     16require_once __DIR__ . '/admin.php';
    1717
    1818if ( ! current_user_can( 'install_plugins' ) ) {
    1919        wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) );
    get_current_screen()->set_screen_reader_content( 
    121121/**
    122122 * WordPress Administration Template Header.
    123123 */
    124 include( ABSPATH . 'wp-admin/admin-header.php' );
     124include ABSPATH . 'wp-admin/admin-header.php';
    125125?>
    126126<div class="wrap <?php echo esc_attr( "plugin-install-tab-$tab" ); ?>">
    127127<h1 class="wp-heading-inline">
    wp_print_admin_notice_templates(); 
    184184/**
    185185 * WordPress Administration Template Footer.
    186186 */
    187 include( ABSPATH . 'wp-admin/admin-footer.php' );
     187include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/plugins.php

    diff --git src/wp-admin/plugins.php src/wp-admin/plugins.php
    index 459a2f82f6..afce3c4357 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'activate_plugins' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) );
    if ( $action ) { 
    141141                        $parent_file = 'plugins.php';
    142142
    143143                        wp_enqueue_script( 'updates' );
    144                         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     144                        require_once ABSPATH . 'wp-admin/admin-header.php';
    145145
    146146                        echo '<div class="wrap">';
    147147                        echo '<h1>' . esc_html( $title ) . '</h1>';
    if ( $action ) { 
    151151
    152152                        echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>";
    153153                        echo '</div>';
    154                         require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     154                        require_once ABSPATH . 'wp-admin/admin-footer.php';
    155155                        exit;
    156156
    157157                case 'error_scrape':
    if ( $action ) { 
    275275                                exit;
    276276                        }
    277277
    278                         include( ABSPATH . 'wp-admin/update.php' );
     278                        include ABSPATH . 'wp-admin/update.php';
    279279
    280280                        $parent_file = 'plugins.php';
    281281
    282282                        if ( ! isset( $_REQUEST['verify-delete'] ) ) {
    283283                                wp_enqueue_script( 'jquery' );
    284                                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     284                                require_once ABSPATH . 'wp-admin/admin-header.php';
    285285                                ?>
    286286                        <div class="wrap">
    287287                                <?php
    if ( $action ) { 
    371371                                </form>
    372372                        </div>
    373373                                <?php
    374                                 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     374                                require_once ABSPATH . 'wp-admin/admin-footer.php';
    375375                                exit;
    376376                        } else {
    377377                                $plugins_to_delete = count( $plugins );
    get_current_screen()->set_screen_reader_content( 
    480480$title       = __( 'Plugins' );
    481481$parent_file = 'plugins.php';
    482482
    483 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     483require_once ABSPATH . 'wp-admin/admin-header.php';
    484484
    485485$invalid = validate_active_plugins();
    486486if ( ! empty( $invalid ) ) {
    wp_print_request_filesystem_credentials_modal(); 
    642642wp_print_admin_notice_templates();
    643643wp_print_update_row_templates();
    644644
    645 include( ABSPATH . 'wp-admin/admin-footer.php' );
     645include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/post-new.php

    diff --git src/wp-admin/post-new.php src/wp-admin/post-new.php
    index a93a11bffe..0f6992e809 100644
     
    77 */
    88
    99/** Load WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212/**
    1313 * @global string  $post_type
    $post_ID = $post->ID; 
    6969/** This filter is documented in wp-admin/post.php */
    7070if ( apply_filters( 'replace_editor', false, $post ) !== true ) {
    7171        if ( use_block_editor_for_post( $post ) ) {
    72                 include( ABSPATH . 'wp-admin/edit-form-blocks.php' );
     72                include ABSPATH . 'wp-admin/edit-form-blocks.php';
    7373        } else {
    7474                wp_enqueue_script( 'autosave' );
    75                 include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
     75                include ABSPATH . 'wp-admin/edit-form-advanced.php';
    7676        }
    7777} else {
    7878        // Flag that we're not loading the block editor.
    if ( apply_filters( 'replace_editor', false, $post ) !== true ) { 
    8080        $current_screen->is_block_editor( false );
    8181}
    8282
    83 include( ABSPATH . 'wp-admin/admin-footer.php' );
     83include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/post.php

    diff --git src/wp-admin/post.php src/wp-admin/post.php
    index ef3e73a829..02268cb0c7 100644
     
    99 */
    1010
    1111/** WordPress Administration Bootstrap */
    12 require_once( dirname( __FILE__ ) . '/admin.php' );
     12require_once __DIR__ . '/admin.php';
    1313
    1414$parent_file  = 'edit.php';
    1515$submenu_file = 'edit.php';
    switch ( $action ) { 
    176176                }
    177177
    178178                if ( use_block_editor_for_post( $post ) ) {
    179                         include( ABSPATH . 'wp-admin/edit-form-blocks.php' );
     179                        include ABSPATH . 'wp-admin/edit-form-blocks.php';
    180180                        break;
    181181                }
    182182
    switch ( $action ) { 
    195195                        enqueue_comment_hotkeys_js();
    196196                }
    197197
    198                 include( ABSPATH . 'wp-admin/edit-form-advanced.php' );
     198                include ABSPATH . 'wp-admin/edit-form-advanced.php';
    199199
    200200                break;
    201201
    switch ( $action ) { 
    350350                wp_redirect( admin_url( 'edit.php' ) );
    351351                exit();
    352352} // end switch
    353 include( ABSPATH . 'wp-admin/admin-footer.php' );
     353include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/press-this.php

    diff --git src/wp-admin/press-this.php src/wp-admin/press-this.php
    index 0f00dee40b..ebe7502f54 100644
     
    99define( 'IFRAME_REQUEST', true );
    1010
    1111/** WordPress Administration Bootstrap */
    12 require_once( dirname( __FILE__ ) . '/admin.php' );
     12require_once __DIR__ . '/admin.php';
    1313
    1414function wp_load_press_this() {
    1515        $plugin_slug = 'press-this';
    function wp_load_press_this() { 
    2222                        403
    2323                );
    2424        } elseif ( is_plugin_active( $plugin_file ) ) {
    25                 include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' );
     25                include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
    2626                $wp_press_this = new WP_Press_This_Plugin();
    2727                $wp_press_this->html();
    2828        } elseif ( current_user_can( 'activate_plugins' ) ) {
  • src/wp-admin/privacy-policy-guide.php

    diff --git src/wp-admin/privacy-policy-guide.php src/wp-admin/privacy-policy-guide.php
    index f3d8703f88..98cebbd99c 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'manage_privacy_options' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) );
    1414}
    1515
    1616if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    17         include_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
     17        include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
    1818}
    1919
    2020$title = __( 'Privacy Policy Guide' );
    2121
    2222wp_enqueue_script( 'privacy-tools' );
    2323
    24 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     24require_once ABSPATH . 'wp-admin/admin-header.php';
    2525
    2626?>
    2727<div class="wrap">
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    3333</div>
    3434<?php
    3535
    36 include( ABSPATH . 'wp-admin/admin-footer.php' );
     36include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/privacy.php

    diff --git src/wp-admin/privacy.php src/wp-admin/privacy.php
    index 25dc75e00b..f407962da3 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212$title = __( 'Privacy' );
    1313
    1414list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    1515
    16 include( ABSPATH . 'wp-admin/admin-header.php' );
     16include ABSPATH . 'wp-admin/admin-header.php';
    1717?>
    1818<div class="wrap about__container">
    1919
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    7676        </div>
    7777
    7878</div>
    79 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     79<?php include ABSPATH . 'wp-admin/admin-footer.php'; ?>
  • src/wp-admin/profile.php

    diff --git src/wp-admin/profile.php src/wp-admin/profile.php
    index 577925aba7..18fb60069b 100644
     
    1515define( 'IS_PROFILE_PAGE', true );
    1616
    1717/** Load User Editing Page */
    18 require_once( dirname( __FILE__ ) . '/user-edit.php' );
     18require_once __DIR__ . '/user-edit.php';
  • src/wp-admin/revision.php

    diff --git src/wp-admin/revision.php src/wp-admin/revision.php
    index 2d435a6c34..55cbd9363f 100644
     
    1010 */
    1111
    1212/** WordPress Administration Bootstrap */
    13 require_once( dirname( __FILE__ ) . '/admin.php' );
     13require_once __DIR__ . '/admin.php';
    1414
    1515require ABSPATH . 'wp-admin/includes/revision.php';
    1616
    $revisions_sidebar .= '<p>' . __( '<a href="https://wordpress.org/support/">Supp 
    147147
    148148get_current_screen()->set_help_sidebar( $revisions_sidebar );
    149149
    150 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     150require_once ABSPATH . 'wp-admin/admin-header.php';
    151151
    152152?>
    153153
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    158158<?php
    159159wp_print_revision_templates();
    160160
    161 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     161require_once ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/setup-config.php

    diff --git src/wp-admin/setup-config.php src/wp-admin/setup-config.php
    index f9be50f05a..dec1733d5b 100644
    define( 'WP_SETUP_CONFIG', true ); 
    2727error_reporting( 0 );
    2828
    2929if ( ! defined( 'ABSPATH' ) ) {
    30         define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     30        define( 'ABSPATH', dirname( __DIR__ ) . '/' );
    3131}
    3232
    33 require( ABSPATH . 'wp-settings.php' );
     33require ABSPATH . 'wp-settings.php';
    3434
    3535/** Load WordPress Administration Upgrade API */
    36 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     36require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    3737
    3838/** Load WordPress Translation Installation API */
    39 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
     39require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    4040
    4141nocache_headers();
    4242
  • src/wp-admin/site-health-info.php

    diff --git src/wp-admin/site-health-info.php src/wp-admin/site-health-info.php
    index 34471a0968..2923d36741 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212$title = __( 'Site Health Info' );
    1313
    wp_enqueue_style( 'site-health' ); 
    1919wp_enqueue_script( 'site-health' );
    2020
    2121if ( ! class_exists( 'WP_Debug_Data' ) ) {
    22         require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' );
     22        require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
    2323}
    2424if ( ! class_exists( 'WP_Site_Health' ) ) {
    25         require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     25        require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    2626}
    2727
    2828$health_check_site_status = new WP_Site_Health();
    2929
    30 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     30require_once ABSPATH . 'wp-admin/admin-header.php';
    3131?>
    3232<div class="health-check-header">
    3333        <div class="health-check-title-section">
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    181181</div>
    182182
    183183<?php
    184 include( ABSPATH . 'wp-admin/admin-footer.php' );
     184include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/site-health.php

    diff --git src/wp-admin/site-health.php src/wp-admin/site-health.php
    index 52ff845289..555962fc1b 100644
     
    77 */
    88
    99if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) {
    10         require_once( dirname( __FILE__ ) . '/site-health-info.php' );
     10        require_once __DIR__ . '/site-health-info.php';
    1111        return;
    1212}
    1313
    1414/** WordPress Administration Bootstrap */
    15 require_once( dirname( __FILE__ ) . '/admin.php' );
     15require_once __DIR__ . '/admin.php';
    1616
    1717$title = __( 'Site Health Status' );
    1818
    wp_enqueue_style( 'site-health' ); 
    2424wp_enqueue_script( 'site-health' );
    2525
    2626if ( ! class_exists( 'WP_Site_Health' ) ) {
    27         require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
     27        require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    2828}
    2929
    3030$health_check_site_status = new WP_Site_Health();
    $health_check_site_status = new WP_Site_Health(); 
    3232// Start by checking if this is a special request checking for the existence of certain filters.
    3333$health_check_site_status->check_wp_version_check_exists();
    3434
    35 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     35require_once ABSPATH . 'wp-admin/admin-header.php';
    3636?>
    3737<div class="health-check-header">
    3838        <div class="health-check-title-section">
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    157157</script>
    158158
    159159<?php
    160 include( ABSPATH . 'wp-admin/admin-footer.php' );
     160include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/term.php

    diff --git src/wp-admin/term.php src/wp-admin/term.php
    index fd7d276bb3..68523f1271 100644
     
    88 */
    99
    1010/** WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( empty( $_REQUEST['tag_ID'] ) ) {
    1414        $sendback = admin_url( 'edit-tags.php' );
    get_current_screen()->set_screen_reader_content( 
    7070        )
    7171);
    7272wp_enqueue_script( 'admin-tags' );
    73 require_once( ABSPATH . 'wp-admin/admin-header.php' );
    74 include( ABSPATH . 'wp-admin/edit-tag-form.php' );
    75 include( ABSPATH . 'wp-admin/admin-footer.php' );
     73require_once ABSPATH . 'wp-admin/admin-header.php';
     74include ABSPATH . 'wp-admin/edit-tag-form.php';
     75include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/theme-editor.php

    diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php
    index c958353e1f..038eacec0d 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( is_multisite() && ! is_network_admin() ) {
    1313        wp_redirect( network_admin_url( 'theme-editor.php' ) );
    if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) { 
    146146        wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings ) ) );
    147147        wp_add_inline_script( 'wp-theme-plugin-editor', 'wp.themePluginEditor.themeOrPlugin = "theme";' );
    148148
    149         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     149        require_once ABSPATH . 'wp-admin/admin-header.php';
    150150
    151151        update_recently_edited( $file );
    152152
    if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) : 
    378378        <?php
    379379endif; // editor warning notice
    380380
    381 include( ABSPATH . 'wp-admin/admin-footer.php' );
     381include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/theme-install.php

    diff --git src/wp-admin/theme-install.php src/wp-admin/theme-install.php
    index b77e85054a..e7f271df68 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
    11 require( ABSPATH . 'wp-admin/includes/theme-install.php' );
     10require_once __DIR__ . '/admin.php';
     11require ABSPATH . 'wp-admin/includes/theme-install.php';
    1212
    1313wp_reset_vars( array( 'tab' ) );
    1414
    get_current_screen()->set_help_sidebar( 
    131131        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    132132);
    133133
    134 include( ABSPATH . 'wp-admin/admin-header.php' );
     134include ABSPATH . 'wp-admin/admin-header.php';
    135135
    136136?>
    137137<div class="wrap">
    if ( $tab ) { 
    372372wp_print_request_filesystem_credentials_modal();
    373373wp_print_admin_notice_templates();
    374374
    375 include( ABSPATH . 'wp-admin/admin-footer.php' );
     375include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/themes.php

    diff --git src/wp-admin/themes.php src/wp-admin/themes.php
    index 244f573ce6..dbf055881e 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
    1313        wp_die(
    add_thickbox(); 
    182182wp_enqueue_script( 'theme' );
    183183wp_enqueue_script( 'updates' );
    184184
    185 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     185require_once ABSPATH . 'wp-admin/admin-header.php';
    186186?>
    187187
    188188<div class="wrap">
    wp_localize_script( 
    622622        )
    623623);
    624624
    625 require( ABSPATH . 'wp-admin/admin-footer.php' );
     625require ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/tools.php

    diff --git src/wp-admin/tools.php src/wp-admin/tools.php
    index 447d6738ac..6ea85ca459 100644
    if ( isset( $_GET['page'] ) && ! empty( $_POST ) ) { 
    1010        // Ensure POST-ing to `tools.php?page=export_personal_data` and `tools.php?page=remove_personal_data`
    1111        // continues to work after creating the new files for exporting and erasing of personal data.
    1212        if ( $_GET['page'] === 'export_personal_data' ) {
    13                 require_once( ABSPATH . 'wp-admin/export-personal-data.php' );
     13                require_once ABSPATH . 'wp-admin/export-personal-data.php';
    1414                return;
    1515        } elseif ( $_GET['page'] === 'remove_personal_data' ) {
    16                 require_once( ABSPATH . 'wp-admin/erase-personal-data.php' );
     16                require_once ABSPATH . 'wp-admin/erase-personal-data.php';
    1717                return;
    1818        }
    1919}
    2020
    2121/** WordPress Administration Bootstrap */
    22 require_once( dirname( __FILE__ ) . '/admin.php' );
     22require_once __DIR__ . '/admin.php';
    2323
    2424// The privacy policy guide used to be outputted from here. Since WP 5.3 it is in wp-admin/privacy-policy-guide.php.
    2525if ( isset( $_GET['wp-privacy-policy-guide'] ) ) {
    get_current_screen()->set_help_sidebar( 
    5353        '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    5454);
    5555
    56 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     56require_once ABSPATH . 'wp-admin/admin-header.php';
    5757
    5858?>
    5959<div class="wrap">
    do_action( 'tool_box' ); 
    9292</div>
    9393<?php
    9494
    95 include( ABSPATH . 'wp-admin/admin-footer.php' );
     95include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/update-core.php

    diff --git src/wp-admin/update-core.php src/wp-admin/update-core.php
    index 2093201149..951d93d7aa 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_enqueue_style( 'plugin-install' );
    1313wp_enqueue_script( 'plugin-install' );
    function list_plugin_updates() { 
    297297        $wp_version     = get_bloginfo( 'version' );
    298298        $cur_wp_version = preg_replace( '/-.*$/', '', $wp_version );
    299299
    300         require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
     300        require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    301301        $plugins = get_plugin_updates();
    302302        if ( empty( $plugins ) ) {
    303303                echo '<h2>' . __( 'Plugins' ) . '</h2>';
    function list_translation_updates() { 
    559559function do_core_upgrade( $reinstall = false ) {
    560560        global $wp_filesystem;
    561561
    562         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     562        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    563563
    564564        if ( $reinstall ) {
    565565                $url = 'update-core.php?action=do-core-reinstall';
    if ( 'upgrade-core' == $action ) { 
    736736        $force_check = ! empty( $_GET['force-check'] );
    737737        wp_version_check( array(), $force_check );
    738738
    739         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     739        require_once ABSPATH . 'wp-admin/admin-header.php';
    740740        ?>
    741741        <div class="wrap">
    742742        <h1><?php _e( 'WordPress Updates' ); ?></h1>
    if ( 'upgrade-core' == $action ) { 
    793793                )
    794794        );
    795795
    796         include( ABSPATH . 'wp-admin/admin-footer.php' );
     796        include ABSPATH . 'wp-admin/admin-footer.php';
    797797
    798798} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
    799799
    if ( 'upgrade-core' == $action ) { 
    810810                do_undismiss_core_update();
    811811        }
    812812
    813         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     813        require_once ABSPATH . 'wp-admin/admin-header.php';
    814814        if ( 'do-core-reinstall' == $action ) {
    815815                $reinstall = true;
    816816        } else {
    if ( 'upgrade-core' == $action ) { 
    829829                )
    830830        );
    831831
    832         include( ABSPATH . 'wp-admin/admin-footer.php' );
     832        include ABSPATH . 'wp-admin/admin-footer.php';
    833833
    834834} elseif ( 'do-plugin-upgrade' == $action ) {
    835835
    if ( 'upgrade-core' == $action ) { 
    853853
    854854        $title = __( 'Update Plugins' );
    855855
    856         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     856        require_once ABSPATH . 'wp-admin/admin-header.php';
    857857        echo '<div class="wrap">';
    858858        echo '<h1>' . __( 'Update Plugins' ) . '</h1>';
    859859        echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0" title="' . esc_attr__( 'Update progress' ) . '"></iframe>';
    if ( 'upgrade-core' == $action ) { 
    867867                )
    868868        );
    869869
    870         include( ABSPATH . 'wp-admin/admin-footer.php' );
     870        include ABSPATH . 'wp-admin/admin-footer.php';
    871871
    872872} elseif ( 'do-theme-upgrade' == $action ) {
    873873
    if ( 'upgrade-core' == $action ) { 
    891891
    892892        $title = __( 'Update Themes' );
    893893
    894         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     894        require_once ABSPATH . 'wp-admin/admin-header.php';
    895895        ?>
    896896        <div class="wrap">
    897897                <h1><?php _e( 'Update Themes' ); ?></h1>
    if ( 'upgrade-core' == $action ) { 
    907907                )
    908908        );
    909909
    910         include( ABSPATH . 'wp-admin/admin-footer.php' );
     910        include ABSPATH . 'wp-admin/admin-footer.php';
    911911
    912912} elseif ( 'do-translation-upgrade' == $action ) {
    913913
    if ( 'upgrade-core' == $action ) { 
    917917
    918918        check_admin_referer( 'upgrade-translations' );
    919919
    920         require_once( ABSPATH . 'wp-admin/admin-header.php' );
    921         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     920        require_once ABSPATH . 'wp-admin/admin-header.php';
     921        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    922922
    923923        $url     = 'update-core.php?action=do-translation-upgrade';
    924924        $nonce   = 'upgrade-translations';
    if ( 'upgrade-core' == $action ) { 
    936936                )
    937937        );
    938938
    939         require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     939        require_once ABSPATH . 'wp-admin/admin-footer.php';
    940940
    941941} else {
    942942        /**
  • src/wp-admin/update.php

    diff --git src/wp-admin/update.php src/wp-admin/update.php
    index 5a70aa87d9..18313a4b90 100644
    if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['action'] ) && in_array( $_GE 
    1111}
    1212
    1313/** WordPress Administration Bootstrap */
    14 require_once( dirname( __FILE__ ) . '/admin.php' );
     14require_once __DIR__ . '/admin.php';
    1515
    16 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
     16include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    1717
    1818if ( isset( $_GET['action'] ) ) {
    1919        $plugin = isset( $_REQUEST['plugin'] ) ? trim( $_REQUEST['plugin'] ) : '';
    if ( isset( $_GET['action'] ) ) { 
    6060                $submenu_file = 'plugins.php';
    6161
    6262                wp_enqueue_script( 'updates' );
    63                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     63                require_once ABSPATH . 'wp-admin/admin-header.php';
    6464
    6565                $nonce = 'upgrade-plugin_' . $plugin;
    6666                $url   = 'update.php?action=upgrade-plugin&plugin=' . urlencode( $plugin );
    if ( isset( $_GET['action'] ) ) { 
    6868                $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'plugin' ) ) );
    6969                $upgrader->upgrade( $plugin );
    7070
    71                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     71                include ABSPATH . 'wp-admin/admin-footer.php';
    7272
    7373        } elseif ( 'activate-plugin' == $action ) {
    7474                if ( ! current_user_can( 'update_plugins' ) ) {
    if ( isset( $_GET['action'] ) ) { 
    9393                        error_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 );
    9494                        ini_set( 'display_errors', true ); //Ensure that Fatal errors are displayed.
    9595                        wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
    96                         include( WP_PLUGIN_DIR . '/' . $plugin );
     96                        include WP_PLUGIN_DIR . '/' . $plugin;
    9797                }
    9898                iframe_footer();
    9999        } elseif ( 'install-plugin' == $action ) {
    if ( isset( $_GET['action'] ) ) { 
    102102                        wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) );
    103103                }
    104104
    105                 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api..
     105                include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api..
    106106
    107107                check_admin_referer( 'install-plugin_' . $plugin );
    108108                $api = plugins_api(
    if ( isset( $_GET['action'] ) ) { 
    122122                $title        = __( 'Plugin Installation' );
    123123                $parent_file  = 'plugins.php';
    124124                $submenu_file = 'plugin-install.php';
    125                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     125                require_once ABSPATH . 'wp-admin/admin-header.php';
    126126
    127127                /* translators: %s: Plugin name and version. */
    128128                $title = sprintf( __( 'Installing Plugin: %s' ), $api->name . ' ' . $api->version );
    if ( isset( $_GET['action'] ) ) { 
    137137                $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) );
    138138                $upgrader->install( $api->download_link );
    139139
    140                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     140                include ABSPATH . 'wp-admin/admin-footer.php';
    141141
    142142        } elseif ( 'upload-plugin' == $action ) {
    143143
    if ( isset( $_GET['action'] ) ) { 
    152152                $title        = __( 'Upload Plugin' );
    153153                $parent_file  = 'plugins.php';
    154154                $submenu_file = 'plugin-install.php';
    155                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     155                require_once ABSPATH . 'wp-admin/admin-header.php';
    156156
    157157                /* translators: %s: File name. */
    158158                $title = sprintf( __( 'Installing Plugin from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) );
    if ( isset( $_GET['action'] ) ) { 
    167167                        $file_upload->cleanup();
    168168                }
    169169
    170                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     170                include ABSPATH . 'wp-admin/admin-footer.php';
    171171
    172172        } elseif ( 'upgrade-theme' == $action ) {
    173173
    if ( isset( $_GET['action'] ) ) { 
    182182                $title        = __( 'Update Theme' );
    183183                $parent_file  = 'themes.php';
    184184                $submenu_file = 'themes.php';
    185                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     185                require_once ABSPATH . 'wp-admin/admin-header.php';
    186186
    187187                $nonce = 'upgrade-theme_' . $theme;
    188188                $url   = 'update.php?action=upgrade-theme&theme=' . urlencode( $theme );
    if ( isset( $_GET['action'] ) ) { 
    190190                $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'theme' ) ) );
    191191                $upgrader->upgrade( $theme );
    192192
    193                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     193                include ABSPATH . 'wp-admin/admin-footer.php';
    194194        } elseif ( 'update-selected-themes' == $action ) {
    195195                if ( ! current_user_can( 'update_themes' ) ) {
    196196                        wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) );
    if ( isset( $_GET['action'] ) ) { 
    224224                        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    225225                }
    226226
    227                 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
     227                include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; //for themes_api..
    228228
    229229                check_admin_referer( 'install-theme_' . $theme );
    230230                $api = themes_api(
    if ( isset( $_GET['action'] ) ) { 
    245245                $title        = __( 'Install Themes' );
    246246                $parent_file  = 'themes.php';
    247247                $submenu_file = 'themes.php';
    248                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     248                require_once ABSPATH . 'wp-admin/admin-header.php';
    249249
    250250                /* translators: %s: Theme name and version. */
    251251                $title = sprintf( __( 'Installing Theme: %s' ), $api->name . ' ' . $api->version );
    if ( isset( $_GET['action'] ) ) { 
    256256                $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) );
    257257                $upgrader->install( $api->download_link );
    258258
    259                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     259                include ABSPATH . 'wp-admin/admin-footer.php';
    260260
    261261        } elseif ( 'upload-theme' == $action ) {
    262262
    if ( isset( $_GET['action'] ) ) { 
    272272                $parent_file  = 'themes.php';
    273273                $submenu_file = 'theme-install.php';
    274274
    275                 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     275                require_once ABSPATH . 'wp-admin/admin-header.php';
    276276
    277277                /* translators: %s: File name. */
    278278                $title = sprintf( __( 'Installing Theme from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) );
    if ( isset( $_GET['action'] ) ) { 
    287287                        $file_upload->cleanup();
    288288                }
    289289
    290                 include( ABSPATH . 'wp-admin/admin-footer.php' );
     290                include ABSPATH . 'wp-admin/admin-footer.php';
    291291
    292292        } else {
    293293                /**
  • src/wp-admin/upgrade-functions.php

    diff --git src/wp-admin/upgrade-functions.php src/wp-admin/upgrade-functions.php
    index 0669ead7b0..0d1f499a00 100644
     
    99 */
    1010
    1111_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/upgrade.php' );
    12 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     12require_once ABSPATH . 'wp-admin/includes/upgrade.php';
  • src/wp-admin/upgrade.php

    diff --git src/wp-admin/upgrade.php src/wp-admin/upgrade.php
    index 67555f4fe9..88388ea60d 100644
     
    1515define( 'WP_INSTALLING', true );
    1616
    1717/** Load WordPress Bootstrap */
    18 require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     18require dirname( __DIR__ ) . '/wp-load.php';
    1919
    2020nocache_headers();
    2121
    22 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     22require_once ABSPATH . 'wp-admin/includes/upgrade.php';
    2323
    2424delete_site_transient( 'update_core' );
    2525
  • src/wp-admin/upload.php

    diff --git src/wp-admin/upload.php src/wp-admin/upload.php
    index a5a5d21612..0b9611f477 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( ! current_user_can( 'upload_files' ) ) {
    1313        wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
    if ( 'grid' === $mode ) { 
    7979        $title       = __( 'Media Library' );
    8080        $parent_file = 'upload.php';
    8181
    82         require_once( ABSPATH . 'wp-admin/admin-header.php' );
     82        require_once ABSPATH . 'wp-admin/admin-header.php';
    8383        ?>
    8484        <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query(); ?>">
    8585                <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
    if ( 'grid' === $mode ) { 
    107107                </div>
    108108        </div>
    109109        <?php
    110         include( ABSPATH . 'wp-admin/admin-footer.php' );
     110        include ABSPATH . 'wp-admin/admin-footer.php';
    111111        exit;
    112112}
    113113
    get_current_screen()->set_screen_reader_content( 
    261261        )
    262262);
    263263
    264 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     264require_once ABSPATH . 'wp-admin/admin-header.php';
    265265?>
    266266
    267267<div class="wrap">
    if ( ! empty( $message ) ) { 
    378378</div>
    379379
    380380<?php
    381 include( ABSPATH . 'wp-admin/admin-footer.php' );
     381include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/user-edit.php

    diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
    index 10e39e8b27..5411c7a910 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) );
    1313
    switch ( $action ) { 
    184184                $title    = sprintf( $title, $profileuser->display_name );
    185185                $sessions = WP_Session_Tokens::get_instance( $profileuser->ID );
    186186
    187                 include( ABSPATH . 'wp-admin/admin-header.php' );
     187                include ABSPATH . 'wp-admin/admin-header.php';
    188188                ?>
    189189
    190190                <?php if ( ! IS_PROFILE_PAGE && is_super_admin( $profileuser->ID ) && current_user_can( 'manage_network_options' ) ) { ?>
    endif; //!IS_PROFILE_PAGE 
    789789        }
    790790</script>
    791791<?php
    792 include( ABSPATH . 'wp-admin/admin-footer.php' );
     792include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/user-new.php

    diff --git src/wp-admin/user-new.php src/wp-admin/user-new.php
    index 2abd094519..09fb50a5d7 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212if ( is_multisite() ) {
    1313        if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) {
    if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_netw 
    285285        wp_enqueue_script( 'user-suggest' );
    286286}
    287287
    288 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     288require_once ABSPATH . 'wp-admin/admin-header.php';
    289289
    290290if ( isset( $_GET['update'] ) ) {
    291291        $messages = array();
    if ( current_user_can( 'create_users' ) ) { 
    582582<?php } // current_user_can('create_users') ?>
    583583</div>
    584584<?php
    585 include( ABSPATH . 'wp-admin/admin-footer.php' );
     585include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/user/about.php

    diff --git src/wp-admin/user/about.php src/wp-admin/user/about.php
    index b7943550e9..af06c62222 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/about.php' );
     13require ABSPATH . 'wp-admin/about.php';
  • src/wp-admin/user/admin.php

    diff --git src/wp-admin/user/admin.php src/wp-admin/user/admin.php
    index 9df8f2029e..d1ca849315 100644
     
    99
    1010define( 'WP_USER_ADMIN', true );
    1111
    12 require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
     12require_once dirname( __DIR__ ) . '/admin.php';
    1313
    1414if ( ! is_multisite() ) {
    1515        wp_redirect( admin_url() );
  • src/wp-admin/user/credits.php

    diff --git src/wp-admin/user/credits.php src/wp-admin/user/credits.php
    index 2b4021acb9..b28461cdb2 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/credits.php' );
     13require ABSPATH . 'wp-admin/credits.php';
  • src/wp-admin/user/freedoms.php

    diff --git src/wp-admin/user/freedoms.php src/wp-admin/user/freedoms.php
    index d2b77b5615..9e2ebb009b 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/freedoms.php' );
     13require ABSPATH . 'wp-admin/freedoms.php';
  • src/wp-admin/user/index.php

    diff --git src/wp-admin/user/index.php src/wp-admin/user/index.php
    index 7cff6a7053..58906ce4f0 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/index.php' );
     13require ABSPATH . 'wp-admin/index.php';
  • src/wp-admin/user/menu.php

    diff --git src/wp-admin/user/menu.php src/wp-admin/user/menu.php
    index 47ef784208..23e81a892c 100644
    $_wp_real_parent_file['users.php'] = 'profile.php'; 
    1919$compat                            = array();
    2020$submenu                           = array();
    2121
    22 require_once( ABSPATH . 'wp-admin/includes/menu.php' );
     22require_once ABSPATH . 'wp-admin/includes/menu.php';
  • src/wp-admin/user/privacy.php

    diff --git src/wp-admin/user/privacy.php src/wp-admin/user/privacy.php
    index 8b28eea618..207f29df20 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/privacy.php' );
     13require ABSPATH . 'wp-admin/privacy.php';
  • src/wp-admin/user/profile.php

    diff --git src/wp-admin/user/profile.php src/wp-admin/user/profile.php
    index 2f70709906..f9bd631268 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/profile.php' );
     13require ABSPATH . 'wp-admin/profile.php';
  • src/wp-admin/user/user-edit.php

    diff --git src/wp-admin/user/user-edit.php src/wp-admin/user/user-edit.php
    index 0819573f6f..4cc64efb14 100644
     
    88 */
    99
    1010/** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    13 require( ABSPATH . 'wp-admin/user-edit.php' );
     13require ABSPATH . 'wp-admin/user-edit.php';
  • src/wp-admin/users.php

    diff --git src/wp-admin/users.php src/wp-admin/users.php
    index 48e169d69c..5b435c014b 100644
     
    88 */
    99
    1010/** WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
     11require_once __DIR__ . '/admin.php';
    1212
    1313if ( ! current_user_can( 'list_users' ) ) {
    1414        wp_die(
    switch ( $wp_list_table->current_action() ) { 
    263263                        add_action( 'admin_head', 'delete_users_add_js' );
    264264                }
    265265
    266                 include( ABSPATH . 'wp-admin/admin-header.php' );
     266                include ABSPATH . 'wp-admin/admin-header.php';
    267267                ?>
    268268        <form method="post" name="updateusers" id="updateusers">
    269269                <?php wp_nonce_field( 'delete-users' ); ?>
    switch ( $wp_list_table->current_action() ) { 
    405405                        $userids = $_REQUEST['users'];
    406406                }
    407407
    408                 include( ABSPATH . 'wp-admin/admin-header.php' );
     408                include ABSPATH . 'wp-admin/admin-header.php';
    409409                ?>
    410410        <form method="post" name="updateusers" id="updateusers">
    411411                <?php wp_nonce_field( 'remove-users' ); ?>
    switch ( $wp_list_table->current_action() ) { 
    474474                        exit;
    475475                }
    476476
    477                 include( ABSPATH . 'wp-admin/admin-header.php' );
     477                include ABSPATH . 'wp-admin/admin-header.php';
    478478
    479479                $messages = array();
    480480                if ( isset( $_GET['update'] ) ) :
    if ( strlen( $usersearch ) ) { 
    596596
    597597} // end of the $doaction switch
    598598
    599 include( ABSPATH . 'wp-admin/admin-footer.php' );
     599include ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-admin/widgets.php

    diff --git src/wp-admin/widgets.php src/wp-admin/widgets.php
    index ada2bdd790..8e954cf077 100644
     
    77 */
    88
    99/** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
     10require_once __DIR__ . '/admin.php';
    1111
    1212/** WordPress Administration Widgets API */
    13 require_once( ABSPATH . 'wp-admin/includes/widgets.php' );
     13require_once ABSPATH . 'wp-admin/includes/widgets.php';
    1414
    1515if ( ! current_user_can( 'edit_theme_options' ) ) {
    1616        wp_die(
    if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) { 
    288288        $width = ' style="width:' . max( $control['width'], 350 ) . 'px"';
    289289        $key   = isset( $_GET['key'] ) ? (int) $_GET['key'] : 0;
    290290
    291         require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     291        require_once ABSPATH . 'wp-admin/admin-header.php'; ?>
    292292        <div class="wrap">
    293293        <h1><?php echo esc_html( $title ); ?></h1>
    294294        <div class="editwidget"<?php echo $width; ?>>
    if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) { 
    366366        </div>
    367367        </div>
    368368        <?php
    369         require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     369        require_once ABSPATH . 'wp-admin/admin-footer.php';
    370370        exit;
    371371}
    372372
    $errors = array( 
    379379        __( 'Error in displaying the widget settings form.' ),
    380380);
    381381
    382 require_once( ABSPATH . 'wp-admin/admin-header.php' );
     382require_once ABSPATH . 'wp-admin/admin-header.php';
    383383?>
    384384
    385385<div class="wrap">
    foreach ( $theme_sidebars as $sidebar => $registered_sidebar ) { 
    572572 * @since 2.2.0
    573573 */
    574574do_action( 'sidebar_admin_page' );
    575 require_once( ABSPATH . 'wp-admin/admin-footer.php' );
     575require_once ABSPATH . 'wp-admin/admin-footer.php';
  • src/wp-blog-header.php

    diff --git src/wp-blog-header.php src/wp-blog-header.php
    index a8b1efc7b5..91e3b9daf4 100644
    if ( ! isset( $wp_did_header ) ) { 
    1010        $wp_did_header = true;
    1111
    1212        // Load the WordPress library.
    13         require_once( dirname( __FILE__ ) . '/wp-load.php' );
     13        require_once __DIR__ . '/wp-load.php';
    1414
    1515        // Set up the WordPress query.
    1616        wp();
    1717
    1818        // Load the theme template.
    19         require_once( ABSPATH . WPINC . '/template-loader.php' );
     19        require_once ABSPATH . WPINC . '/template-loader.php';
    2020
    2121}
  • src/wp-comments-post.php

    diff --git src/wp-comments-post.php src/wp-comments-post.php
    index 86c758cc0a..ebf658603d 100644
    if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) { 
    1818}
    1919
    2020/** Sets up the WordPress Environment. */
    21 require( dirname( __FILE__ ) . '/wp-load.php' );
     21require __DIR__ . '/wp-load.php';
    2222
    2323nocache_headers();
    2424
  • src/wp-content/themes/twentyeleven/functions.php

    diff --git src/wp-content/themes/twentyeleven/functions.php src/wp-content/themes/twentyeleven/functions.php
    index d1d7d69bde..4bc6c16ae4 100644
    if ( ! function_exists( 'twentyeleven_setup' ) ) : 
    132132                );
    133133
    134134                // Load up our theme options page and related code.
    135                 require( get_template_directory() . '/inc/theme-options.php' );
     135                require get_template_directory() . '/inc/theme-options.php';
    136136
    137137                // Grab Twenty Eleven's Ephemera widget.
    138                 require( get_template_directory() . '/inc/widgets.php' );
     138                require get_template_directory() . '/inc/widgets.php';
    139139
    140140                // Add default posts and comments RSS feed links to <head>.
    141141                add_theme_support( 'automatic-feed-links' );
  • src/wp-content/themes/twentyseventeen/functions.php

    diff --git src/wp-content/themes/twentyseventeen/functions.php src/wp-content/themes/twentyseventeen/functions.php
    index 7e5cb84c0b..1ef1b570a7 100644
    function twentyseventeen_colors_css_wrap() { 
    425425                return;
    426426        }
    427427
    428         require_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) );
     428        require_once get_parent_theme_file_path( '/inc/color-patterns.php' );
    429429        $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) );
    430430
    431431        $customize_preview_data_hue = '';
  • src/wp-content/themes/twentyseventeen/inc/icon-functions.php

    diff --git src/wp-content/themes/twentyseventeen/inc/icon-functions.php src/wp-content/themes/twentyseventeen/inc/icon-functions.php
    index c906762b58..11a1b0be16 100644
    function twentyseventeen_include_svg_icons() { 
    1616
    1717        // If it exists, include it.
    1818        if ( file_exists( $svg_icons ) ) {
    19                 require_once( $svg_icons );
     19                require_once $svg_icons;
    2020        }
    2121}
    2222add_action( 'wp_footer', 'twentyseventeen_include_svg_icons', 9999 );
  • src/wp-content/themes/twentytwelve/functions.php

    diff --git src/wp-content/themes/twentytwelve/functions.php src/wp-content/themes/twentytwelve/functions.php
    index 04da105b06..018d1c36fd 100644
    add_action( 'after_setup_theme', 'twentytwelve_setup' ); 
    130130/**
    131131 * Add support for a custom header image.
    132132 */
    133 require( get_template_directory() . '/inc/custom-header.php' );
     133require get_template_directory() . '/inc/custom-header.php';
    134134
    135135/**
    136136 * Return the Google font stylesheet URL if available.
  • src/wp-cron.php

    diff --git src/wp-cron.php src/wp-cron.php
    index 561ae96559..333625c069 100644
    define( 'DOING_CRON', true ); 
    4141
    4242if ( ! defined( 'ABSPATH' ) ) {
    4343        /** Set up WordPress environment */
    44         require_once( dirname( __FILE__ ) . '/wp-load.php' );
     44        require_once __DIR__ . '/wp-load.php';
    4545}
    4646
    4747/**
  • src/wp-includes/admin-bar.php

    diff --git src/wp-includes/admin-bar.php src/wp-includes/admin-bar.php
    index 77ab5848ee..90d7e8ca03 100644
    function _wp_admin_bar_init() { 
    2828        }
    2929
    3030        /* Load the admin bar class code ready for instantiation */
    31         require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
     31        require_once ABSPATH . WPINC . '/class-wp-admin-bar.php';
    3232
    3333        /* Instantiate the admin bar */
    3434
  • src/wp-includes/blocks/rss.php

    diff --git src/wp-includes/blocks/rss.php src/wp-includes/blocks/rss.php
    index 0315cfc013..0300585de2 100644
    function render_block_core_rss( $attributes ) { 
    2020        }
    2121
    2222        if ( ! $rss->get_item_quantity() ) {
     23                // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks.
     24                $rss->__destruct();
     25                unset( $rss );
     26
    2327                return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '</div></div>';
    2428        }
    2529
    function render_block_core_rss( $attributes ) { 
    9296                $class .= ' ' . $attributes['className'];
    9397        }
    9498
    95         return "<ul class='{$class}'>{$list_items}</ul>";
     99        $list_items_markup = "<ul class='{$class}'>{$list_items}</ul>";
     100
     101        // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks.
     102        $rss->__destruct();
     103        unset( $rss );
     104
     105        return $list_items_markup;
    96106}
    97107
    98108/**
  • src/wp-includes/blocks/search.php

    diff --git src/wp-includes/blocks/search.php src/wp-includes/blocks/search.php
    index 67bc90ff35..6cd909fc6f 100644
    function render_block_core_search( $attributes ) { 
    2525                        $input_id,
    2626                        $attributes['label']
    2727                );
    28         } else {
    29                 $label_markup = sprintf(
    30                         '<label for="%s" class="wp-block-search__label screen-reader-text">%s</label>',
    31                         $input_id,
    32                         __( 'Search' )
    33                 );
    3428        }
    3529
    3630        $input_markup = sprintf(
    function render_block_core_search( $attributes ) { 
    5145        if ( isset( $attributes['className'] ) ) {
    5246                $class .= ' ' . $attributes['className'];
    5347        }
     48
    5449        if ( isset( $attributes['align'] ) ) {
    5550                $class .= ' align' . $attributes['align'];
    5651        }
  • src/wp-includes/class-IXR.php

    diff --git src/wp-includes/class-IXR.php src/wp-includes/class-IXR.php
    index 706e5e320a..0cd72df20e 100644
     
    3939 * @license    http://www.opensource.org/licenses/bsd-license.php BSD
    4040 */
    4141
    42 require_once( ABSPATH . WPINC . '/IXR/class-IXR-server.php' );
     42require_once ABSPATH . WPINC . '/IXR/class-IXR-server.php';
    4343
    44 require_once( ABSPATH . WPINC . '/IXR/class-IXR-base64.php' );
     44require_once ABSPATH . WPINC . '/IXR/class-IXR-base64.php';
    4545
    46 require_once( ABSPATH . WPINC . '/IXR/class-IXR-client.php' );
     46require_once ABSPATH . WPINC . '/IXR/class-IXR-client.php';
    4747
    48 require_once( ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php' );
     48require_once ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php';
    4949
    50 require_once( ABSPATH . WPINC . '/IXR/class-IXR-date.php' );
     50require_once ABSPATH . WPINC . '/IXR/class-IXR-date.php';
    5151
    52 require_once( ABSPATH . WPINC . '/IXR/class-IXR-error.php' );
     52require_once ABSPATH . WPINC . '/IXR/class-IXR-error.php';
    5353
    54 require_once( ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php' );
     54require_once ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php';
    5555
    56 require_once( ABSPATH . WPINC . '/IXR/class-IXR-message.php' );
     56require_once ABSPATH . WPINC . '/IXR/class-IXR-message.php';
    5757
    58 require_once( ABSPATH . WPINC . '/IXR/class-IXR-request.php' );
     58require_once ABSPATH . WPINC . '/IXR/class-IXR-request.php';
    5959
    60 require_once( ABSPATH . WPINC . '/IXR/class-IXR-value.php' );
    61  No newline at end of file
     60require_once ABSPATH . WPINC . '/IXR/class-IXR-value.php';
     61 No newline at end of file
  • src/wp-includes/class-feed.php

    diff --git src/wp-includes/class-feed.php src/wp-includes/class-feed.php
    index 5236170450..9a4772dc75 100644
     
    1010_deprecated_file( basename( __FILE__ ), '4.7.0', 'fetch_feed()' );
    1111
    1212if ( ! class_exists( 'SimplePie', false ) ) {
    13         require_once( ABSPATH . WPINC . '/class-simplepie.php' );
     13        require_once ABSPATH . WPINC . '/class-simplepie.php';
    1414}
    1515
    16 require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
    17 require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
    18 require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
    19 require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
     16require_once ABSPATH . WPINC . '/class-wp-feed-cache.php';
     17require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php';
     18require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php';
     19require_once ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php';
  • src/wp-includes/class-http.php

    diff --git src/wp-includes/class-http.php src/wp-includes/class-http.php
    index 9e18811c28..70496645d8 100644
     
    88 */
    99
    1010if ( ! class_exists( 'Requests' ) ) {
    11         require( ABSPATH . WPINC . '/class-requests.php' );
     11        require ABSPATH . WPINC . '/class-requests.php';
    1212
    1313        Requests::register_autoloader();
    1414        Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
  • src/wp-includes/class-oembed.php

    diff --git src/wp-includes/class-oembed.php src/wp-includes/class-oembed.php
    index 3b39e97df8..747fffa77a 100644
     
    1212_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-includes/class-wp-oembed.php' );
    1313
    1414/** WP_oEmbed class */
    15 require_once( ABSPATH . 'wp-includes/class-wp-oembed.php' );
     15require_once ABSPATH . 'wp-includes/class-wp-oembed.php';
  • src/wp-includes/class-phpmailer.php

    diff --git src/wp-includes/class-phpmailer.php src/wp-includes/class-phpmailer.php
    index 7aaa850532..30754a4e6c 100644
    class PHPMailer 
    15341534    public function getSMTPInstance()
    15351535    {
    15361536        if (!is_object($this->smtp)) {
    1537                         require_once( 'class-smtp.php' );
     1537                        require_once 'class-smtp.php';
    15381538            $this->smtp = new SMTP;
    15391539        }
    15401540        return $this->smtp;
  • src/wp-includes/class-simplepie.php

    diff --git src/wp-includes/class-simplepie.php src/wp-includes/class-simplepie.php
    index 6110413767..348657f5d9 100644
    function wp_simplepie_autoload( $class ) { 
    2626                return;
    2727
    2828        $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
    29         include( $file );
     29        include $file;
    3030}
    3131
    3232/**
  • src/wp-includes/class-wp-customize-control.php

    diff --git src/wp-includes/class-wp-customize-control.php src/wp-includes/class-wp-customize-control.php
    index 994ff90805..ca088cd422 100644
    class WP_Customize_Control { 
    693693/**
    694694 * WP_Customize_Color_Control class.
    695695 */
    696 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
     696require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php';
    697697
    698698/**
    699699 * WP_Customize_Media_Control class.
    700700 */
    701 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
     701require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php';
    702702
    703703/**
    704704 * WP_Customize_Upload_Control class.
    705705 */
    706 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
     706require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php';
    707707
    708708/**
    709709 * WP_Customize_Image_Control class.
    710710 */
    711 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
     711require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php';
    712712
    713713/**
    714714 * WP_Customize_Background_Image_Control class.
    715715 */
    716 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
     716require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php';
    717717
    718718/**
    719719 * WP_Customize_Background_Position_Control class.
    720720 */
    721 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' );
     721require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php';
    722722
    723723/**
    724724 * WP_Customize_Cropped_Image_Control class.
    725725 */
    726 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
     726require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php';
    727727
    728728/**
    729729 * WP_Customize_Site_Icon_Control class.
    730730 */
    731 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
     731require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php';
    732732
    733733/**
    734734 * WP_Customize_Header_Image_Control class.
    735735 */
    736 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
     736require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php';
    737737
    738738/**
    739739 * WP_Customize_Theme_Control class.
    740740 */
    741 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
     741require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php';
    742742
    743743/**
    744744 * WP_Widget_Area_Customize_Control class.
    745745 */
    746 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
     746require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php';
    747747
    748748/**
    749749 * WP_Widget_Form_Customize_Control class.
    750750 */
    751 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
     751require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php';
    752752
    753753/**
    754754 * WP_Customize_Nav_Menu_Control class.
    755755 */
    756 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
     756require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php';
    757757
    758758/**
    759759 * WP_Customize_Nav_Menu_Item_Control class.
    760760 */
    761 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
     761require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php';
    762762
    763763/**
    764764 * WP_Customize_Nav_Menu_Location_Control class.
    765765 */
    766 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
     766require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php';
    767767
    768768/**
    769769 * WP_Customize_Nav_Menu_Name_Control class.
    require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location 
    774774 *
    775775 * @deprecated 4.9.0 This file is no longer used due to new menu creation UX.
    776776 */
    777 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
     777require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php';
    778778
    779779/**
    780780 * WP_Customize_Nav_Menu_Locations_Control class.
    781781 */
    782 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' );
     782require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php';
    783783
    784784/**
    785785 * WP_Customize_Nav_Menu_Auto_Add_Control class.
    786786 */
    787 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
     787require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php';
    788788
    789789/**
    790790 * WP_Customize_Date_Time_Control class.
    791791 */
    792 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php' );
     792require_once ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php';
  • src/wp-includes/class-wp-customize-manager.php

    diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
    index d65f82ad42..412282b44a 100644
    final class WP_Customize_Manager { 
    293293                        }
    294294                }
    295295
    296                 require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' );
    297                 require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' );
    298                 require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' );
    299                 require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' );
    300 
    301                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
    302                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
    303                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
    304                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
    305                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
    306                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' );
    307                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
    308                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
    309                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
    310                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
    311                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-code-editor-control.php' );
    312                 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
    313                 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
    314                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
    315                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
    316                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
    317                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
    318                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' );
    319                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
    320 
    321                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
    322 
    323                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-panel.php' );
    324                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
    325                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
    326                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
    327 
    328                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php' );
    329                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
    330                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
    331                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
    332                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
    333                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
     296                require_once ABSPATH . WPINC . '/class-wp-customize-setting.php';
     297                require_once ABSPATH . WPINC . '/class-wp-customize-panel.php';
     298                require_once ABSPATH . WPINC . '/class-wp-customize-section.php';
     299                require_once ABSPATH . WPINC . '/class-wp-customize-control.php';
     300
     301                require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php';
     302                require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php';
     303                require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php';
     304                require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php';
     305                require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php';
     306                require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php';
     307                require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php';
     308                require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php';
     309                require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php';
     310                require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php';
     311                require_once ABSPATH . WPINC . '/customize/class-wp-customize-code-editor-control.php';
     312                require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php';
     313                require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php';
     314                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php';
     315                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php';
     316                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php';
     317                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php';
     318                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php';
     319                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php';
     320
     321                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php';
     322
     323                require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-panel.php';
     324                require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php';
     325                require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php';
     326                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php';
     327
     328                require_once ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php';
     329                require_once ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php';
     330                require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php';
     331                require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php';
     332                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php';
     333                require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php';
    334334
    335335                /**
    336336                 * Filters the core Customizer components to load.
    final class WP_Customize_Manager { 
    349349                 */
    350350                $components = apply_filters( 'customize_loaded_components', $this->components, $this );
    351351
    352                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );
     352                require_once ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php';
    353353                $this->selective_refresh = new WP_Customize_Selective_Refresh( $this );
    354354
    355355                if ( in_array( 'widgets', $components, true ) ) {
    356                         require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
     356                        require_once ABSPATH . WPINC . '/class-wp-customize-widgets.php';
    357357                        $this->widgets = new WP_Customize_Widgets( $this );
    358358                }
    359359
    360360                if ( in_array( 'nav_menus', $components, true ) ) {
    361                         require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );
     361                        require_once ABSPATH . WPINC . '/class-wp-customize-nav-menus.php';
    362362                        $this->nav_menus = new WP_Customize_Nav_Menus( $this );
    363363                }
    364364
    final class WP_Customize_Manager { 
    16391639                }
    16401640
    16411641                // Such is The WordPress Way.
    1642                 require_once( ABSPATH . 'wp-admin/includes/file.php' );
    1643                 require_once( ABSPATH . 'wp-admin/includes/media.php' );
    1644                 require_once( ABSPATH . 'wp-admin/includes/image.php' );
     1642                require_once ABSPATH . 'wp-admin/includes/file.php';
     1643                require_once ABSPATH . 'wp-admin/includes/media.php';
     1644                require_once ABSPATH . 'wp-admin/includes/image.php';
    16451645
    16461646                foreach ( $attachments as $symbol => $attachment ) {
    16471647
  • src/wp-includes/class-wp-customize-panel.php

    diff --git src/wp-includes/class-wp-customize-panel.php src/wp-includes/class-wp-customize-panel.php
    index 82eda3a0f6..185908bea8 100644
    class WP_Customize_Panel { 
    379379}
    380380
    381381/** WP_Customize_Nav_Menus_Panel class */
    382 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
     382require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php';
  • src/wp-includes/class-wp-customize-section.php

    diff --git src/wp-includes/class-wp-customize-section.php src/wp-includes/class-wp-customize-section.php
    index 57cc8d3bff..47ff0910ba 100644
    class WP_Customize_Section { 
    376376}
    377377
    378378/** WP_Customize_Themes_Section class */
    379 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
     379require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php';
    380380
    381381/** WP_Customize_Sidebar_Section class */
    382 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
     382require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php';
    383383
    384384/** WP_Customize_Nav_Menu_Section class */
    385 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
     385require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php';
  • src/wp-includes/class-wp-customize-setting.php

    diff --git src/wp-includes/class-wp-customize-setting.php src/wp-includes/class-wp-customize-setting.php
    index c5efd0a7ee..1e6a165021 100644
    class WP_Customize_Setting { 
    943943/**
    944944 * WP_Customize_Filter_Setting class.
    945945 */
    946 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
     946require_once ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php';
    947947
    948948/**
    949949 * WP_Customize_Header_Image_Setting class.
    950950 */
    951 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
     951require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php';
    952952
    953953/**
    954954 * WP_Customize_Background_Image_Setting class.
    955955 */
    956 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
     956require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php';
    957957
    958958/**
    959959 * WP_Customize_Nav_Menu_Item_Setting class.
    960960 */
    961 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
     961require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php';
    962962
    963963/**
    964964 * WP_Customize_Nav_Menu_Setting class.
    965965 */
    966 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
     966require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php';
  • src/wp-includes/class-wp-editor.php

    diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
    index 26824dfa9b..8a2439fe7e 100644
    final class _WP_Editors { 
    225225                                self::$has_medialib = true;
    226226
    227227                                if ( ! function_exists( 'media_buttons' ) ) {
    228                                         include( ABSPATH . 'wp-admin/includes/media.php' );
     228                                        include ABSPATH . 'wp-admin/includes/media.php';
    229229                                }
    230230
    231231                                echo '<div id="wp-' . $editor_id_attr . '-media-buttons" class="wp-media-buttons">';
    final class _WP_Editors { 
    496496                                                if ( ! empty( $mce_external_languages ) ) {
    497497                                                        foreach ( $mce_external_languages as $name => $path ) {
    498498                                                                if ( @is_file( $path ) && @is_readable( $path ) ) {
    499                                                                         include_once( $path );
     499                                                                        include_once $path;
    500500                                                                        $ext_plugins   .= $strings . "\n";
    501501                                                                        $loaded_langs[] = $name;
    502502                                                                }
  • src/wp-includes/comment-template.php

    diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
    index a031c9a88c..22ab515501 100644
    function comments_template( $file = '/comments.php', $separate_comments = false 
    15061506         */
    15071507        $include = apply_filters( 'comments_template', $theme_template );
    15081508        if ( file_exists( $include ) ) {
    1509                 require( $include );
     1509                require $include;
    15101510        } elseif ( file_exists( TEMPLATEPATH . $file ) ) {
    1511                 require( TEMPLATEPATH . $file );
     1511                require TEMPLATEPATH . $file;
    15121512        } else { // Backward compat code will be removed in a future release
    1513                 require( ABSPATH . WPINC . '/theme-compat/comments.php' );
     1513                require ABSPATH . WPINC . '/theme-compat/comments.php';
    15141514        }
    15151515}
    15161516
  • src/wp-includes/comment.php

    diff --git src/wp-includes/comment.php src/wp-includes/comment.php
    index fca5ab9db4..73e82cf4ec 100644
    function generic_ping( $post_id = 0 ) { 
    28012801 * @param int|WP_Post $post_id Post Object or ID.
    28022802 */
    28032803function pingback( $content, $post_id ) {
    2804         include_once( ABSPATH . WPINC . '/class-IXR.php' );
    2805         include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
     2804        include_once ABSPATH . WPINC . '/class-IXR.php';
     2805        include_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';
    28062806
    28072807        // original code by Mort (http://mort.mine.nu:8080)
    28082808        $post_links = array();
    function trackback( $trackback_url, $title, $excerpt, $ID ) { 
    29572957 * @param string $path Path to send the ping.