Make WordPress Core

Ticket #43674: 4367.diff

File 4367.diff, 67.8 KB (added by luftaffen, 7 years ago)
  • Gruntfile.js

    diff --git a/Gruntfile.js b/Gruntfile.js
    index a43eabd..4072e04 100644
    a b  
    11/* jshint node:true */
    22/* globals Set */
    3 var webpackConfig = require( './webpack.config.prod' );
    4 var webpackDevConfig = require( './webpack.config.dev' );
     3var webpackConfig = require_once( './webpack.config.prod' );
     4var webpackDevConfig = require_once( './webpack.config.dev' );
    55
    66module.exports = function(grunt) {
    77        var path = require('path'),
    8                 fs = require( 'fs' ),
    9                 spawn = require( 'child_process' ).spawnSync,
     8                fs = require_once( 'fs' ),
     9                spawn = require_once( 'child_process' ).spawnSync,
    1010                SOURCE_DIR = 'src/',
    1111                BUILD_DIR = 'build/',
    1212                BANNER_TEXT = '/*! This file is auto-generated */',
    13                 autoprefixer = require( 'autoprefixer' ),
     13                autoprefixer = require_once( 'autoprefixer' ),
    1414                phpUnitWatchGroup = grunt.option( 'group' );
    1515
    1616        if ( 'watch:phpunit' === grunt.cli.tasks[ 0 ] && ! phpUnitWatchGroup ) {
  • src/index.php

    diff --git a/src/index.php b/src/index.php
    index 8633479..8f438be 100644
    a b  
    1414define( 'WP_USE_THEMES', true );
    1515
    1616/** Loads the WordPress Environment and Template */
    17 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
     17require_once( dirname( __FILE__ ) . '/wp-blog-header.php' );
  • src/wp-activate.php

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

    diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php
    index cbce31b..1c916df 100644
    a b if ( current_user_can( 'customize' ) ) { 
    218218?>
    219219
    220220<div id="wpwrap">
    221 <?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?>
     221<?php require_once( ABSPATH . 'wp-admin/menu-header.php' ); ?>
    222222<div id="wpcontent">
    223223
    224224<?php
    if ( is_network_admin() ) { 
    274274do_action( 'all_admin_notices' );
    275275
    276276if ( $parent_file == 'options-general.php' ) {
    277         require( ABSPATH . 'wp-admin/options-head.php' );
     277        require_once( ABSPATH . 'wp-admin/options-head.php' );
    278278}
  • src/wp-admin/admin.php

    diff --git a/src/wp-admin/admin.php b/src/wp-admin/admin.php
    index a3dab04..b4bc1e7 100644
    a b if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) 
    144144}
    145145
    146146if ( WP_NETWORK_ADMIN ) {
    147         require( ABSPATH . 'wp-admin/network/menu.php' );
     147        require_once( ABSPATH . 'wp-admin/network/menu.php' );
    148148} elseif ( WP_USER_ADMIN ) {
    149         require( ABSPATH . 'wp-admin/user/menu.php' );
     149        require_once( ABSPATH . 'wp-admin/user/menu.php' );
    150150} else {
    151         require( ABSPATH . 'wp-admin/menu.php' );
     151        require_once( ABSPATH . 'wp-admin/menu.php' );
    152152}
    153153
    154154if ( current_user_can( 'manage_options' ) ) {
  • src/wp-admin/includes/ajax-actions.php

    diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
    index 6d6a640..754905f 100644
    a b function wp_ajax_wp_link_ajax() { 
    16701670        $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    16711671
    16721672        if ( ! class_exists( '_WP_Editors', false ) ) {
    1673                 require( ABSPATH . WPINC . '/class-wp-editor.php' );
     1673                require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    16741674        }
    16751675
    16761676        $results = _WP_Editors::wp_link_query( $args );
  • src/wp-admin/includes/media.php

    diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
    index cfc80db..1144d13 100644
    a b function wp_read_video_metadata( $file ) { 
    32483248        }
    32493249
    32503250        if ( ! class_exists( 'getID3', false ) ) {
    3251                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
     3251                require_once( ABSPATH . WPINC . '/ID3/getid3.php' );
    32523252        }
    32533253        $id3  = new getID3();
    32543254        $data = $id3->analyze( $file );
    function wp_read_audio_metadata( $file ) { 
    33453345        }
    33463346
    33473347        if ( ! class_exists( 'getID3', false ) ) {
    3348                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
     3348                require_once( ABSPATH . WPINC . '/ID3/getid3.php' );
    33493349        }
    33503350        $id3  = new getID3();
    33513351        $data = $id3->analyze( $file );
  • src/wp-admin/includes/update-core.php

    diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
    index e1f81d5..05ae8bb 100644
    a b function update_core( $from, $to ) { 
    923923        }
    924924
    925925        $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );
    926         require( WP_CONTENT_DIR . '/upgrade/version-current.php' );
     926        require_once( WP_CONTENT_DIR . '/upgrade/version-current.php' );
    927927        $wp_filesystem->delete( $versions_file );
    928928
    929929        $php_version       = phpversion();
  • src/wp-admin/includes/upgrade.php

    diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
    index 137080e..d5eca91 100644
    a b  
    1010
    1111/** Include user installation customization script. */
    1212if ( file_exists( WP_CONTENT_DIR . '/install.php' ) ) {
    13         require( WP_CONTENT_DIR . '/install.php' );
     13        require_once( WP_CONTENT_DIR . '/install.php' );
    1414}
    1515
    1616/** WordPress Administration API */
  • src/wp-admin/index.php

    diff --git a/src/wp-admin/index.php b/src/wp-admin/index.php
    index 368dd7d..67e86f4 100644
    a b 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_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/link-add.php

    diff --git a/src/wp-admin/link-add.php b/src/wp-admin/link-add.php
    index ff617d5..fe1aadd 100644
    a b if ( wp_is_mobile() ) { 
    2828$link = get_default_link_to_edit();
    2929include( ABSPATH . 'wp-admin/edit-link-form.php' );
    3030
    31 require( ABSPATH . 'wp-admin/admin-footer.php' );
     31require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/load-scripts.php

    diff --git a/src/wp-admin/load-scripts.php b/src/wp-admin/load-scripts.php
    index 8a0ee3c..b9deb09 100644
    a b if ( empty( $load ) ) { 
    2626        exit;
    2727}
    2828
    29 require( ABSPATH . 'wp-admin/includes/noop.php' );
    30 require( ABSPATH . WPINC . '/script-loader.php' );
    31 require( ABSPATH . WPINC . '/version.php' );
     29require_once( ABSPATH . 'wp-admin/includes/noop.php' );
     30require_once( ABSPATH . WPINC . '/script-loader.php' );
     31require_once( ABSPATH . WPINC . '/version.php' );
    3232
    3333$compress       = ( isset( $_GET['c'] ) && $_GET['c'] );
    3434$force_gzip     = ( $compress && 'gzip' == $_GET['c'] );
  • src/wp-admin/load-styles.php

    diff --git a/src/wp-admin/load-styles.php b/src/wp-admin/load-styles.php
    index 82dacef..d383f40 100644
    a b if ( ! defined( 'ABSPATH' ) ) { 
    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_once( ABSPATH . 'wp-admin/includes/noop.php' );
     18require_once( ABSPATH . WPINC . '/script-loader.php' );
     19require_once( ABSPATH . WPINC . '/version.php' );
    2020
    2121$load = $_GET['load'];
    2222if ( is_array( $load ) ) {
  • src/wp-admin/media.php

    diff --git a/src/wp-admin/media.php b/src/wp-admin/media.php
    index 95fcd28..8f29290 100644
    a b switch ( $action ) { 
    9696                        '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>'
    9797                );
    9898
    99                 require( ABSPATH . 'wp-admin/admin-header.php' );
     99                require_once( ABSPATH . 'wp-admin/admin-header.php' );
    100100
    101101                $parent_file = 'upload.php';
    102102                $message     = '';
    if ( current_user_can( 'upload_files' ) ) { 
    164164
    165165        <?php
    166166
    167         require( ABSPATH . 'wp-admin/admin-footer.php' );
     167        require_once( ABSPATH . 'wp-admin/admin-footer.php' );
    168168
    169169                exit;
    170170
  • src/wp-admin/network/about.php

    diff --git a/src/wp-admin/network/about.php b/src/wp-admin/network/about.php
    index 829fa1b..0130120 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/about.php' );
     13require_once( ABSPATH . 'wp-admin/about.php' );
  • src/wp-admin/network/credits.php

    diff --git a/src/wp-admin/network/credits.php b/src/wp-admin/network/credits.php
    index 75ee6e7..d46a565 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/credits.php' );
     13require_once( ABSPATH . 'wp-admin/credits.php' );
  • src/wp-admin/network/freedoms.php

    diff --git a/src/wp-admin/network/freedoms.php b/src/wp-admin/network/freedoms.php
    index 9afbe82..5c2a266 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/freedoms.php' );
     13require_once( ABSPATH . 'wp-admin/freedoms.php' );
  • src/wp-admin/network/plugin-editor.php

    diff --git a/src/wp-admin/network/plugin-editor.php b/src/wp-admin/network/plugin-editor.php
    index 7171e72..f501f10 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/plugin-editor.php' );
     13require_once( ABSPATH . 'wp-admin/plugin-editor.php' );
  • src/wp-admin/network/plugin-install.php

    diff --git a/src/wp-admin/network/plugin-install.php b/src/wp-admin/network/plugin-install.php
    index f771f63..552043b 100644
    a b if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) { 
    1414/** Load WordPress Administration Bootstrap */
    1515require_once( dirname( __FILE__ ) . '/admin.php' );
    1616
    17 require( ABSPATH . 'wp-admin/plugin-install.php' );
     17require_once( ABSPATH . 'wp-admin/plugin-install.php' );
  • src/wp-admin/network/plugins.php

    diff --git a/src/wp-admin/network/plugins.php b/src/wp-admin/network/plugins.php
    index 56c3deb..437b901 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/plugins.php' );
     13require_once( ABSPATH . 'wp-admin/plugins.php' );
  • src/wp-admin/network/privacy.php

    diff --git a/src/wp-admin/network/privacy.php b/src/wp-admin/network/privacy.php
    index 5cba05d..b68ad17 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/privacy.php' );
     13require_once( ABSPATH . 'wp-admin/privacy.php' );
  • src/wp-admin/network/profile.php

    diff --git a/src/wp-admin/network/profile.php b/src/wp-admin/network/profile.php
    index 240ef98..6ff4616 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/profile.php' );
     13require_once( ABSPATH . 'wp-admin/profile.php' );
  • src/wp-admin/network/setup.php

    diff --git a/src/wp-admin/network/setup.php b/src/wp-admin/network/setup.php
    index 9a642bb..a50abd9 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/network.php' );
     13require_once( ABSPATH . 'wp-admin/network.php' );
  • src/wp-admin/network/site-info.php

    diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php
    index 83e05ae..4ac88e1 100644
    a b $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); 
    126126$parent_file  = 'sites.php';
    127127$submenu_file = 'sites.php';
    128128
    129 require( ABSPATH . 'wp-admin/admin-header.php' );
     129require_once( ABSPATH . 'wp-admin/admin-header.php' );
    130130
    131131?>
    132132
    if ( ! empty( $messages ) ) { 
    210210
    211211</div>
    212212<?php
    213 require( ABSPATH . 'wp-admin/admin-footer.php' );
     213require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/network/site-new.php

    diff --git a/src/wp-admin/network/site-new.php b/src/wp-admin/network/site-new.php
    index 70d9f1c..14b7883 100644
    a b $parent_file = 'sites.php'; 
    199199
    200200wp_enqueue_script( 'user-suggest' );
    201201
    202 require( ABSPATH . 'wp-admin/admin-header.php' );
     202require_once( ABSPATH . 'wp-admin/admin-header.php' );
    203203
    204204?>
    205205
    printf( 
    295295        </form>
    296296</div>
    297297<?php
    298 require( ABSPATH . 'wp-admin/admin-footer.php' );
     298require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/network/site-settings.php

    diff --git a/src/wp-admin/network/site-settings.php b/src/wp-admin/network/site-settings.php
    index 488a541..847f245 100644
    a b $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); 
    8484$parent_file  = 'sites.php';
    8585$submenu_file = 'sites.php';
    8686
    87 require( ABSPATH . 'wp-admin/admin-header.php' );
     87require_once( ABSPATH . 'wp-admin/admin-header.php' );
    8888
    8989?>
    9090
    if ( ! empty( $messages ) ) { 
    172172
    173173</div>
    174174<?php
    175 require( ABSPATH . 'wp-admin/admin-footer.php' );
     175require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/network/site-themes.php

    diff --git a/src/wp-admin/network/site-themes.php b/src/wp-admin/network/site-themes.php
    index 497de2a..aa6505b 100644
    a b $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); 
    171171$parent_file  = 'sites.php';
    172172$submenu_file = 'sites.php';
    173173
    174 require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     174require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    175175
    176176<div class="wrap">
    177177<h1 id="edit-site"><?php echo $title; ?></h1>
  • src/wp-admin/network/site-users.php

    diff --git a/src/wp-admin/network/site-users.php b/src/wp-admin/network/site-users.php
    index 86f858e..e25de8e 100644
    a b 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_once( 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_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/network/theme-editor.php

    diff --git a/src/wp-admin/network/theme-editor.php b/src/wp-admin/network/theme-editor.php
    index c28c967..41b5ed6 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/theme-editor.php' );
     13require_once( ABSPATH . 'wp-admin/theme-editor.php' );
  • src/wp-admin/network/theme-install.php

    diff --git a/src/wp-admin/network/theme-install.php b/src/wp-admin/network/theme-install.php
    index 486c747..376d600 100644
    a b if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) ) { 
    1414/** Load WordPress Administration Bootstrap */
    1515require_once( dirname( __FILE__ ) . '/admin.php' );
    1616
    17 require( ABSPATH . 'wp-admin/theme-install.php' );
     17require_once( ABSPATH . 'wp-admin/theme-install.php' );
  • src/wp-admin/network/update-core.php

    diff --git a/src/wp-admin/network/update-core.php b/src/wp-admin/network/update-core.php
    index 55f2aca..49e68b2 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/update-core.php' );
     13require_once( ABSPATH . 'wp-admin/update-core.php' );
  • src/wp-admin/network/update.php

    diff --git a/src/wp-admin/network/update.php b/src/wp-admin/network/update.php
    index 62dc7a9..774c97b 100644
    a b if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selec 
    1414/** Load WordPress Administration Bootstrap */
    1515require_once( dirname( __FILE__ ) . '/admin.php' );
    1616
    17 require( ABSPATH . 'wp-admin/update.php' );
     17require_once( ABSPATH . 'wp-admin/update.php' );
  • src/wp-admin/network/user-edit.php

    diff --git a/src/wp-admin/network/user-edit.php b/src/wp-admin/network/user-edit.php
    index ef3c272..0cb801d 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/user-edit.php' );
     13require_once( ABSPATH . 'wp-admin/user-edit.php' );
  • src/wp-admin/network/user-new.php

    diff --git a/src/wp-admin/network/user-new.php b/src/wp-admin/network/user-new.php
    index 5a230e0..b597b19 100644
    a b if ( isset( $_GET['update'] ) ) { 
    9797$title       = __( 'Add New User' );
    9898$parent_file = 'users.php';
    9999
    100 require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
     100require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    101101
    102102<div class="wrap">
    103103<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
    if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { 
    146146        </form>
    147147</div>
    148148<?php
    149 require( ABSPATH . 'wp-admin/admin-footer.php' );
     149require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/options-permalink.php

    diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php
    index e911174..ec40640 100644
    a b if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) 
    161161
    162162flush_rewrite_rules();
    163163
    164 require( ABSPATH . 'wp-admin/admin-header.php' );
     164require_once( ABSPATH . 'wp-admin/admin-header.php' );
    165165?>
    166166<div class="wrap">
    167167<h1><?php echo esc_html( $title ); ?></h1>
    else : 
    401401
    402402</div>
    403403
    404 <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
     404<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
  • src/wp-admin/setup-config.php

    diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
    index f09ecdf..2470a82 100644
    a b if ( ! defined( 'ABSPATH' ) ) { 
    3030        define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
    3131}
    3232
    33 require( ABSPATH . 'wp-settings.php' );
     33require_once( ABSPATH . 'wp-settings.php' );
    3434
    3535/** Load WordPress Administration Upgrade API */
    3636require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
  • src/wp-admin/theme-install.php

    diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
    index b4b18c9..b70463b 100644
    a b  
    88
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    11 require( ABSPATH . 'wp-admin/includes/theme-install.php' );
     11require_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
    1212
    1313wp_reset_vars( array( 'tab' ) );
    1414
  • src/wp-admin/themes.php

    diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
    index 085058f..f3f52bb 100644
    a b wp_localize_script( 
    538538        )
    539539);
    540540
    541 require( ABSPATH . 'wp-admin/admin-footer.php' );
     541require_once( ABSPATH . 'wp-admin/admin-footer.php' );
  • src/wp-admin/upgrade.php

    diff --git a/src/wp-admin/upgrade.php b/src/wp-admin/upgrade.php
    index bd9419d..9ffd1b3 100644
    a b  
    1515define( 'WP_INSTALLING', true );
    1616
    1717/** Load WordPress Bootstrap */
    18 require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
     18require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    1919
    2020nocache_headers();
    2121
  • src/wp-admin/user/about.php

    diff --git a/src/wp-admin/user/about.php b/src/wp-admin/user/about.php
    index b794355..e11f451 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/about.php' );
     13require_once( ABSPATH . 'wp-admin/about.php' );
  • src/wp-admin/user/credits.php

    diff --git a/src/wp-admin/user/credits.php b/src/wp-admin/user/credits.php
    index 2b4021a..e0c9d40 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/credits.php' );
     13require_once( ABSPATH . 'wp-admin/credits.php' );
  • src/wp-admin/user/freedoms.php

    diff --git a/src/wp-admin/user/freedoms.php b/src/wp-admin/user/freedoms.php
    index d2b77b5..8d9be7d 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/freedoms.php' );
     13require_once( ABSPATH . 'wp-admin/freedoms.php' );
  • src/wp-admin/user/index.php

    diff --git a/src/wp-admin/user/index.php b/src/wp-admin/user/index.php
    index 7cff6a7..5b9b9e2 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/index.php' );
     13require_once( ABSPATH . 'wp-admin/index.php' );
  • src/wp-admin/user/privacy.php

    diff --git a/src/wp-admin/user/privacy.php b/src/wp-admin/user/privacy.php
    index 8b28eea..ea9a228 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/privacy.php' );
     13require_once( ABSPATH . 'wp-admin/privacy.php' );
  • src/wp-admin/user/profile.php

    diff --git a/src/wp-admin/user/profile.php b/src/wp-admin/user/profile.php
    index 2f70709..521621d 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/profile.php' );
     13require_once( ABSPATH . 'wp-admin/profile.php' );
  • src/wp-admin/user/user-edit.php

    diff --git a/src/wp-admin/user/user-edit.php b/src/wp-admin/user/user-edit.php
    index 0819573..38a0664 100644
    a b  
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 require( ABSPATH . 'wp-admin/user-edit.php' );
     13require_once( ABSPATH . 'wp-admin/user-edit.php' );
  • src/wp-comments-post.php

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

    diff --git a/src/wp-content/themes/twentyeleven/functions.php b/src/wp-content/themes/twentyeleven/functions.php
    index 0349823..3b7b1b9 100644
    a b if ( ! function_exists( 'twentyeleven_setup' ) ) : 
    8484                add_editor_style();
    8585
    8686                // Load up our theme options page and related code.
    87                 require( get_template_directory() . '/inc/theme-options.php' );
     87                require_once( get_template_directory() . '/inc/theme-options.php' );
    8888
    8989                // Grab Twenty Eleven's Ephemera widget.
    90                 require( get_template_directory() . '/inc/widgets.php' );
     90                require_once( get_template_directory() . '/inc/widgets.php' );
    9191
    9292                // Add default posts and comments RSS feed links to <head>.
    9393                add_theme_support( 'automatic-feed-links' );
  • src/wp-content/themes/twentyseventeen/assets/js/jquery.scrollTo.js

    diff --git a/src/wp-content/themes/twentyseventeen/assets/js/jquery.scrollTo.js b/src/wp-content/themes/twentyseventeen/assets/js/jquery.scrollTo.js
    index 80ff3fa..cd3f141 100644
    a b  
    1414                define( ['jquery'], factory );
    1515        } else if (typeof module !== 'undefined' && module.exports) {
    1616                // CommonJS
    17                 module.exports = factory( require( 'jquery' ) );
     17                module.exports = factory( require_once( 'jquery' ) );
    1818        } else {
    1919                // Global
    2020                factory( jQuery );
  • src/wp-content/themes/twentytwelve/functions.php

    diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php
    index 31fc282..43063e3 100644
    a b add_action( 'after_setup_theme', 'twentytwelve_setup' ); 
    8686/**
    8787 * Add support for a custom header image.
    8888 */
    89 require( get_template_directory() . '/inc/custom-header.php' );
     89require_once( get_template_directory() . '/inc/custom-header.php' );
    9090
    9191/**
    9292 * Return the Google font stylesheet URL if available.
  • src/wp-includes/class-http.php

    diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php
    index edfcd11..70a4f1f 100644
    a b  
    88 */
    99
    1010if ( ! class_exists( 'Requests' ) ) {
    11         require( ABSPATH . WPINC . '/class-requests.php' );
     11        require_once( ABSPATH . WPINC . '/class-requests.php' );
    1212
    1313        Requests::register_autoloader();
    1414        Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
  • src/wp-includes/comment-template.php

    diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
    index bcda28f..f4eb4bf 100644
    a b function comments_template( $file = '/comments.php', $separate_comments = false 
    15021502         */
    15031503        $include = apply_filters( 'comments_template', $theme_template );
    15041504        if ( file_exists( $include ) ) {
    1505                 require( $include );
     1505                require_once( $include );
    15061506        } elseif ( file_exists( TEMPLATEPATH . $file ) ) {
    1507                 require( TEMPLATEPATH . $file );
     1507                require_once( TEMPLATEPATH . $file );
    15081508        } else { // Backward compat code will be removed in a future release
    1509                 require( ABSPATH . WPINC . '/theme-compat/comments.php' );
     1509                require_once( ABSPATH . WPINC . '/theme-compat/comments.php' );
    15101510        }
    15111511}
    15121512
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 3f11cce..e6f8353 100644
    a b  
    55 * @package WordPress
    66 */
    77
    8 require( ABSPATH . WPINC . '/option.php' );
     8require_once( ABSPATH . WPINC . '/option.php' );
    99
    1010/**
    1111 * Convert given date string into a different format.
  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index b8f90b8..59e1a4b 100644
    a b function get_search_form( $echo = true ) { 
    205205        $search_form_template = locate_template( 'searchform.php' );
    206206        if ( '' != $search_form_template ) {
    207207                ob_start();
    208                 require( $search_form_template );
     208                require_once( $search_form_template );
    209209                $form = ob_get_clean();
    210210        } else {
    211211                if ( 'html5' == $format ) {
    function wp_default_editor() { 
    31463146 */
    31473147function wp_editor( $content, $editor_id, $settings = array() ) {
    31483148        if ( ! class_exists( '_WP_Editors', false ) ) {
    3149                 require( ABSPATH . WPINC . '/class-wp-editor.php' );
     3149                require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    31503150        }
    31513151        _WP_Editors::editor( $content, $editor_id, $settings );
    31523152}
    function wp_editor( $content, $editor_id, $settings = array() ) { 
    31623162 */
    31633163function wp_enqueue_editor() {
    31643164        if ( ! class_exists( '_WP_Editors', false ) ) {
    3165                 require( ABSPATH . WPINC . '/class-wp-editor.php' );
     3165                require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    31663166        }
    31673167
    31683168        _WP_Editors::enqueue_default_editor();
  • src/wp-includes/js/media/audiovideo.manifest.js

    diff --git a/src/wp-includes/js/media/audiovideo.manifest.js b/src/wp-includes/js/media/audiovideo.manifest.js
    index c1e4c59..0e16e2d 100644
    a b wp.media.video = { 
    269269        }
    270270};
    271271
    272 media.model.PostMedia = require( './models/post-media.js' );
    273 media.controller.AudioDetails = require( './controllers/audio-details.js' );
    274 media.controller.VideoDetails = require( './controllers/video-details.js' );
    275 media.view.MediaFrame.MediaDetails = require( './views/frame/media-details.js' );
    276 media.view.MediaFrame.AudioDetails = require( './views/frame/audio-details.js' );
    277 media.view.MediaFrame.VideoDetails = require( './views/frame/video-details.js' );
    278 media.view.MediaDetails = require( './views/media-details.js' );
    279 media.view.AudioDetails = require( './views/audio-details.js' );
    280 media.view.VideoDetails = require( './views/video-details.js' );
     272media.model.PostMedia = require_once( './models/post-media.js' );
     273media.controller.AudioDetails = require_once( './controllers/audio-details.js' );
     274media.controller.VideoDetails = require_once( './controllers/video-details.js' );
     275media.view.MediaFrame.MediaDetails = require_once( './views/frame/media-details.js' );
     276media.view.MediaFrame.AudioDetails = require_once( './views/frame/audio-details.js' );
     277media.view.MediaFrame.VideoDetails = require_once( './views/frame/video-details.js' );
     278media.view.MediaDetails = require_once( './views/media-details.js' );
     279media.view.AudioDetails = require_once( './views/audio-details.js' );
     280media.view.VideoDetails = require_once( './views/video-details.js' );
  • src/wp-includes/js/media/grid.manifest.js

    diff --git a/src/wp-includes/js/media/grid.manifest.js b/src/wp-includes/js/media/grid.manifest.js
    index 69b6f3c..4bed4d6 100644
    a b  
    11var media = wp.media;
    22
    3 media.controller.EditAttachmentMetadata = require( './controllers/edit-attachment-metadata.js' );
    4 media.view.MediaFrame.Manage = require( './views/frame/manage.js' );
    5 media.view.Attachment.Details.TwoColumn = require( './views/attachment/details-two-column.js' );
    6 media.view.MediaFrame.Manage.Router = require( './routers/manage.js' );
    7 media.view.EditImage.Details = require( './views/edit-image-details.js' );
    8 media.view.MediaFrame.EditAttachments = require( './views/frame/edit-attachments.js' );
    9 media.view.SelectModeToggleButton = require( './views/button/select-mode-toggle.js' );
    10 media.view.DeleteSelectedButton = require( './views/button/delete-selected.js' );
    11 media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' );
     3media.controller.EditAttachmentMetadata = require_once( './controllers/edit-attachment-metadata.js' );
     4media.view.MediaFrame.Manage = require_once( './views/frame/manage.js' );
     5media.view.Attachment.Details.TwoColumn = require_once( './views/attachment/details-two-column.js' );
     6media.view.MediaFrame.Manage.Router = require_once( './routers/manage.js' );
     7media.view.EditImage.Details = require_once( './views/edit-image-details.js' );
     8media.view.MediaFrame.EditAttachments = require_once( './views/frame/edit-attachments.js' );
     9media.view.SelectModeToggleButton = require_once( './views/button/select-mode-toggle.js' );
     10media.view.DeleteSelectedButton = require_once( './views/button/delete-selected.js' );
     11media.view.DeleteSelectedPermanentlyButton = require_once( './views/button/delete-selected-permanently.js' );
  • src/wp-includes/js/media/models.manifest.js

    diff --git a/src/wp-includes/js/media/models.manifest.js b/src/wp-includes/js/media/models.manifest.js
    index 27ce9b4..5681c0d 100644
    a b l10n = media.model.l10n = window._wpMediaModelsL10n || {}; 
    6464media.model.settings = l10n.settings || {};
    6565delete l10n.settings;
    6666
    67 Attachment = media.model.Attachment = require( './models/attachment.js' );
    68 Attachments = media.model.Attachments = require( './models/attachments.js' );
     67Attachment = media.model.Attachment = require_once( './models/attachment.js' );
     68Attachments = media.model.Attachments = require_once( './models/attachments.js' );
    6969
    70 media.model.Query = require( './models/query.js' );
    71 media.model.PostImage = require( './models/post-image.js' );
    72 media.model.Selection = require( './models/selection.js' );
     70media.model.Query = require_once( './models/query.js' );
     71media.model.PostImage = require_once( './models/post-image.js' );
     72media.model.Selection = require_once( './models/selection.js' );
    7373
    7474/**
    7575 * ========================================================================
  • src/wp-includes/js/media/views.manifest.js

    diff --git a/src/wp-includes/js/media/views.manifest.js b/src/wp-includes/js/media/views.manifest.js
    index c67f741..89f5a17 100644
    a b media.transition = function( selector, sensitivity ) { 
    7171        return deferred.promise();
    7272};
    7373
    74 media.controller.Region = require( './controllers/region.js' );
    75 media.controller.StateMachine = require( './controllers/state-machine.js' );
    76 media.controller.State = require( './controllers/state.js' );
    77 
    78 media.selectionSync = require( './utils/selection-sync.js' );
    79 media.controller.Library = require( './controllers/library.js' );
    80 media.controller.ImageDetails = require( './controllers/image-details.js' );
    81 media.controller.GalleryEdit = require( './controllers/gallery-edit.js' );
    82 media.controller.GalleryAdd = require( './controllers/gallery-add.js' );
    83 media.controller.CollectionEdit = require( './controllers/collection-edit.js' );
    84 media.controller.CollectionAdd = require( './controllers/collection-add.js' );
    85 media.controller.FeaturedImage = require( './controllers/featured-image.js' );
    86 media.controller.ReplaceImage = require( './controllers/replace-image.js' );
    87 media.controller.EditImage = require( './controllers/edit-image.js' );
    88 media.controller.MediaLibrary = require( './controllers/media-library.js' );
    89 media.controller.Embed = require( './controllers/embed.js' );
    90 media.controller.Cropper = require( './controllers/cropper.js' );
    91 media.controller.CustomizeImageCropper = require( './controllers/customize-image-cropper.js' );
    92 media.controller.SiteIconCropper = require( './controllers/site-icon-cropper.js' );
    93 
    94 media.View = require( './views/view.js' );
    95 media.view.Frame = require( './views/frame.js' );
    96 media.view.MediaFrame = require( './views/media-frame.js' );
    97 media.view.MediaFrame.Select = require( './views/frame/select.js' );
    98 media.view.MediaFrame.Post = require( './views/frame/post.js' );
    99 media.view.MediaFrame.ImageDetails = require( './views/frame/image-details.js' );
    100 media.view.Modal = require( './views/modal.js' );
    101 media.view.FocusManager = require( './views/focus-manager.js' );
    102 media.view.UploaderWindow = require( './views/uploader/window.js' );
    103 media.view.EditorUploader = require( './views/uploader/editor.js' );
    104 media.view.UploaderInline = require( './views/uploader/inline.js' );
    105 media.view.UploaderStatus = require( './views/uploader/status.js' );
    106 media.view.UploaderStatusError = require( './views/uploader/status-error.js' );
    107 media.view.Toolbar = require( './views/toolbar.js' );
    108 media.view.Toolbar.Select = require( './views/toolbar/select.js' );
    109 media.view.Toolbar.Embed = require( './views/toolbar/embed.js' );
    110 media.view.Button = require( './views/button.js' );
    111 media.view.ButtonGroup = require( './views/button-group.js' );
    112 media.view.PriorityList = require( './views/priority-list.js' );
    113 media.view.MenuItem = require( './views/menu-item.js' );
    114 media.view.Menu = require( './views/menu.js' );
    115 media.view.RouterItem = require( './views/router-item.js' );
    116 media.view.Router = require( './views/router.js' );
    117 media.view.Sidebar = require( './views/sidebar.js' );
    118 media.view.Attachment = require( './views/attachment.js' );
    119 media.view.Attachment.Library = require( './views/attachment/library.js' );
    120 media.view.Attachment.EditLibrary = require( './views/attachment/edit-library.js' );
    121 media.view.Attachments = require( './views/attachments.js' );
    122 media.view.Search = require( './views/search.js' );
    123 media.view.AttachmentFilters = require( './views/attachment-filters.js' );
    124 media.view.DateFilter = require( './views/attachment-filters/date.js' );
    125 media.view.AttachmentFilters.Uploaded = require( './views/attachment-filters/uploaded.js' );
    126 media.view.AttachmentFilters.All = require( './views/attachment-filters/all.js' );
    127 media.view.AttachmentsBrowser = require( './views/attachments/browser.js' );
    128 media.view.Selection = require( './views/selection.js' );
    129 media.view.Attachment.Selection = require( './views/attachment/selection.js' );
    130 media.view.Attachments.Selection = require( './views/attachments/selection.js' );
    131 media.view.Attachment.EditSelection = require( './views/attachment/edit-selection.js' );
    132 media.view.Settings = require( './views/settings.js' );
    133 media.view.Settings.AttachmentDisplay = require( './views/settings/attachment-display.js' );
    134 media.view.Settings.Gallery = require( './views/settings/gallery.js' );
    135 media.view.Settings.Playlist = require( './views/settings/playlist.js' );
    136 media.view.Attachment.Details = require( './views/attachment/details.js' );
    137 media.view.AttachmentCompat = require( './views/attachment-compat.js' );
    138 media.view.Iframe = require( './views/iframe.js' );
    139 media.view.Embed = require( './views/embed.js' );
    140 media.view.Label = require( './views/label.js' );
    141 media.view.EmbedUrl = require( './views/embed/url.js' );
    142 media.view.EmbedLink = require( './views/embed/link.js' );
    143 media.view.EmbedImage = require( './views/embed/image.js' );
    144 media.view.ImageDetails = require( './views/image-details.js' );
    145 media.view.Cropper = require( './views/cropper.js' );
    146 media.view.SiteIconCropper = require( './views/site-icon-cropper.js' );
    147 media.view.SiteIconPreview = require( './views/site-icon-preview.js' );
    148 media.view.EditImage = require( './views/edit-image.js' );
    149 media.view.Spinner = require( './views/spinner.js' );
     74media.controller.Region = require_once( './controllers/region.js' );
     75media.controller.StateMachine = require_once( './controllers/state-machine.js' );
     76media.controller.State = require_once( './controllers/state.js' );
     77
     78media.selectionSync = require_once( './utils/selection-sync.js' );
     79media.controller.Library = require_once( './controllers/library.js' );
     80media.controller.ImageDetails = require_once( './controllers/image-details.js' );
     81media.controller.GalleryEdit = require_once( './controllers/gallery-edit.js' );
     82media.controller.GalleryAdd = require_once( './controllers/gallery-add.js' );
     83media.controller.CollectionEdit = require_once( './controllers/collection-edit.js' );
     84media.controller.CollectionAdd = require_once( './controllers/collection-add.js' );
     85media.controller.FeaturedImage = require_once( './controllers/featured-image.js' );
     86media.controller.ReplaceImage = require_once( './controllers/replace-image.js' );
     87media.controller.EditImage = require_once( './controllers/edit-image.js' );
     88media.controller.MediaLibrary = require_once( './controllers/media-library.js' );
     89media.controller.Embed = require_once( './controllers/embed.js' );
     90media.controller.Cropper = require_once( './controllers/cropper.js' );
     91media.controller.CustomizeImageCropper = require_once( './controllers/customize-image-cropper.js' );
     92media.controller.SiteIconCropper = require_once( './controllers/site-icon-cropper.js' );
     93
     94media.View = require_once( './views/view.js' );
     95media.view.Frame = require_once( './views/frame.js' );
     96media.view.MediaFrame = require_once( './views/media-frame.js' );
     97media.view.MediaFrame.Select = require_once( './views/frame/select.js' );
     98media.view.MediaFrame.Post = require_once( './views/frame/post.js' );
     99media.view.MediaFrame.ImageDetails = require_once( './views/frame/image-details.js' );
     100media.view.Modal = require_once( './views/modal.js' );
     101media.view.FocusManager = require_once( './views/focus-manager.js' );
     102media.view.UploaderWindow = require_once( './views/uploader/window.js' );
     103media.view.EditorUploader = require_once( './views/uploader/editor.js' );
     104media.view.UploaderInline = require_once( './views/uploader/inline.js' );
     105media.view.UploaderStatus = require_once( './views/uploader/status.js' );
     106media.view.UploaderStatusError = require_once( './views/uploader/status-error.js' );
     107media.view.Toolbar = require_once( './views/toolbar.js' );
     108media.view.Toolbar.Select = require_once( './views/toolbar/select.js' );
     109media.view.Toolbar.Embed = require_once( './views/toolbar/embed.js' );
     110media.view.Button = require_once( './views/button.js' );
     111media.view.ButtonGroup = require_once( './views/button-group.js' );
     112media.view.PriorityList = require_once( './views/priority-list.js' );
     113media.view.MenuItem = require_once( './views/menu-item.js' );
     114media.view.Menu = require_once( './views/menu.js' );
     115media.view.RouterItem = require_once( './views/router-item.js' );
     116media.view.Router = require_once( './views/router.js' );
     117media.view.Sidebar = require_once( './views/sidebar.js' );
     118media.view.Attachment = require_once( './views/attachment.js' );
     119media.view.Attachment.Library = require_once( './views/attachment/library.js' );
     120media.view.Attachment.EditLibrary = require_once( './views/attachment/edit-library.js' );
     121media.view.Attachments = require_once( './views/attachments.js' );
     122media.view.Search = require_once( './views/search.js' );
     123media.view.AttachmentFilters = require_once( './views/attachment-filters.js' );
     124media.view.DateFilter = require_once( './views/attachment-filters/date.js' );
     125media.view.AttachmentFilters.Uploaded = require_once( './views/attachment-filters/uploaded.js' );
     126media.view.AttachmentFilters.All = require_once( './views/attachment-filters/all.js' );
     127media.view.AttachmentsBrowser = require_once( './views/attachments/browser.js' );
     128media.view.Selection = require_once( './views/selection.js' );
     129media.view.Attachment.Selection = require_once( './views/attachment/selection.js' );
     130media.view.Attachments.Selection = require_once( './views/attachments/selection.js' );
     131media.view.Attachment.EditSelection = require_once( './views/attachment/edit-selection.js' );
     132media.view.Settings = require_once( './views/settings.js' );
     133media.view.Settings.AttachmentDisplay = require_once( './views/settings/attachment-display.js' );
     134media.view.Settings.Gallery = require_once( './views/settings/gallery.js' );
     135media.view.Settings.Playlist = require_once( './views/settings/playlist.js' );
     136media.view.Attachment.Details = require_once( './views/attachment/details.js' );
     137media.view.AttachmentCompat = require_once( './views/attachment-compat.js' );
     138media.view.Iframe = require_once( './views/iframe.js' );
     139media.view.Embed = require_once( './views/embed.js' );
     140media.view.Label = require_once( './views/label.js' );
     141media.view.EmbedUrl = require_once( './views/embed/url.js' );
     142media.view.EmbedLink = require_once( './views/embed/link.js' );
     143media.view.EmbedImage = require_once( './views/embed/image.js' );
     144media.view.ImageDetails = require_once( './views/image-details.js' );
     145media.view.Cropper = require_once( './views/cropper.js' );
     146media.view.SiteIconCropper = require_once( './views/site-icon-cropper.js' );
     147media.view.SiteIconPreview = require_once( './views/site-icon-preview.js' );
     148media.view.EditImage = require_once( './views/edit-image.js' );
     149media.view.Spinner = require_once( './views/spinner.js' );
  • src/wp-includes/load.php

    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index 52245df..ba83169 100644
    a b function wp_not_installed() { 
    606606        } elseif ( ! is_blog_installed() && ! wp_installing() ) {
    607607                nocache_headers();
    608608
    609                 require( ABSPATH . WPINC . '/kses.php' );
    610                 require( ABSPATH . WPINC . '/pluggable.php' );
    611                 require( ABSPATH . WPINC . '/formatting.php' );
     609                require_once( ABSPATH . WPINC . '/kses.php' );
     610                require_once( ABSPATH . WPINC . '/pluggable.php' );
     611                require_once( ABSPATH . WPINC . '/formatting.php' );
    612612
    613613                $link = wp_guess_url() . '/wp-admin/install.php';
    614614
  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index 9936858..78f6a68 100644
    a b if ( ! function_exists( 'wp_text_diff' ) ) : 
    26842684                $args     = wp_parse_args( $args, $defaults );
    26852685
    26862686                if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) ) {
    2687                         require( ABSPATH . WPINC . '/wp-diff.php' );
     2687                        require_once( ABSPATH . WPINC . '/wp-diff.php' );
    26882688                }
    26892689
    26902690                $left_string  = normalize_whitespace( $left_string );
  • src/wp-includes/plugin.php

    diff --git a/src/wp-includes/plugin.php b/src/wp-includes/plugin.php
    index 879bb12..60da977 100644
    a b  
    2222 */
    2323
    2424// Initialize the filter globals.
    25 require( dirname( __FILE__ ) . '/class-wp-hook.php' );
     25require_once( dirname( __FILE__ ) . '/class-wp-hook.php' );
    2626
    2727/** @var WP_Hook[] $wp_filter */
    2828global $wp_filter, $wp_actions, $wp_current_filter;
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index 45cb463..31db5aa 100644
    a b  
    1717 */
    1818
    1919/** WordPress Dependency Class */
    20 require( ABSPATH . WPINC . '/class-wp-dependency.php' );
     20require_once( ABSPATH . WPINC . '/class-wp-dependency.php' );
    2121
    2222/** WordPress Dependencies Class */
    23 require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
     23require_once( ABSPATH . WPINC . '/class.wp-dependencies.php' );
    2424
    2525/** WordPress Scripts Class */
    26 require( ABSPATH . WPINC . '/class.wp-scripts.php' );
     26require_once( ABSPATH . WPINC . '/class.wp-scripts.php' );
    2727
    2828/** WordPress Scripts Functions */
    29 require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
     29require_once( ABSPATH . WPINC . '/functions.wp-scripts.php' );
    3030
    3131/** WordPress Styles Class */
    32 require( ABSPATH . WPINC . '/class.wp-styles.php' );
     32require_once( ABSPATH . WPINC . '/class.wp-styles.php' );
    3333
    3434/** WordPress Styles Functions */
    35 require( ABSPATH . WPINC . '/functions.wp-styles.php' );
     35require_once( ABSPATH . WPINC . '/functions.wp-styles.php' );
    3636
    3737/**
    3838 * Register all WordPress scripts.
  • src/wp-includes/template.php

    diff --git a/src/wp-includes/template.php b/src/wp-includes/template.php
    index 3168607..bf3d51c 100644
    a b function load_template( $_template_file, $require_once = true ) { 
    694694        if ( $require_once ) {
    695695                require_once( $_template_file );
    696696        } else {
    697                 require( $_template_file );
     697                require_once( $_template_file );
    698698        }
    699699}
  • src/wp-includes/theme.php

    diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
    index 2a29229..17b8c15 100644
    a b function current_theme_supports( $feature ) { 
    28142814 */
    28152815function require_if_theme_supports( $feature, $include ) {
    28162816        if ( current_theme_supports( $feature ) ) {
    2817                 require( $include );
     2817                require_once( $include );
    28182818                return true;
    28192819        }
    28202820        return false;
  • src/wp-includes/wp-diff.php

    diff --git a/src/wp-includes/wp-diff.php b/src/wp-includes/wp-diff.php
    index deae250..82e3dd4 100644
    a b  
    1010
    1111if ( ! class_exists( 'Text_Diff', false ) ) {
    1212        /** Text_Diff class */
    13         require( ABSPATH . WPINC . '/Text/Diff.php' );
     13        require_once( ABSPATH . WPINC . '/Text/Diff.php' );
    1414        /** Text_Diff_Renderer class */
    15         require( ABSPATH . WPINC . '/Text/Diff/Renderer.php' );
     15        require_once( ABSPATH . WPINC . '/Text/Diff/Renderer.php' );
    1616        /** Text_Diff_Renderer_inline class */
    17         require( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' );
     17        require_once( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' );
    1818}
    1919
    20 require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' );
    21 require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php' );
     20require_once( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' );
     21require_once( ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php' );
  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index 93d0818..43cdf9d 100644
    a b  
    99 */
    1010
    1111/** Make sure that the WordPress bootstrap has run before continuing. */
    12 require( dirname( __FILE__ ) . '/wp-load.php' );
     12require_once( dirname( __FILE__ ) . '/wp-load.php' );
    1313
    1414// Redirect to https login if forced to use SSL
    1515if ( force_ssl_admin() && ! is_ssl() ) {
  • src/wp-mail.php

    diff --git a/src/wp-mail.php b/src/wp-mail.php
    index 977ed0f..0424e56 100644
    a b  
    88 */
    99
    1010/** Make sure that the WordPress bootstrap has run before continuing. */
    11 require( dirname( __FILE__ ) . '/wp-load.php' );
     11require_once( dirname( __FILE__ ) . '/wp-load.php' );
    1212
    1313/** This filter is documented in wp-admin/options.php */
    1414if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) {
  • src/wp-settings.php

    diff --git a/src/wp-settings.php b/src/wp-settings.php
    index 6b1f32b..807ab4c 100644
    a b  
    1616define( 'WPINC', 'wp-includes' );
    1717
    1818// Include files required for initialization.
    19 require( ABSPATH . WPINC . '/load.php' );
    20 require( ABSPATH . WPINC . '/default-constants.php' );
     19require_once( ABSPATH . WPINC . '/load.php' );
     20require_once( ABSPATH . WPINC . '/default-constants.php' );
    2121require_once( ABSPATH . WPINC . '/plugin.php' );
    2222
    2323/*
    require_once( ABSPATH . WPINC . '/plugin.php' ); 
    2626 * these values to be overridden if already set.
    2727 */
    2828global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
    29 require( ABSPATH . WPINC . '/version.php' );
     29require_once( ABSPATH . WPINC . '/version.php' );
    3030
    3131/**
    3232 * If not already configured, `$blog_id` will default to 1 in a single site
    if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) 
    9393wp_set_lang_dir();
    9494
    9595// Load early WordPress files.
    96 require( ABSPATH . WPINC . '/compat.php' );
    97 require( ABSPATH . WPINC . '/class-wp-list-util.php' );
    98 require( ABSPATH . WPINC . '/formatting.php' );
    99 require( ABSPATH . WPINC . '/meta.php' );
    100 require( ABSPATH . WPINC . '/functions.php' );
    101 require( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' );
    102 require( ABSPATH . WPINC . '/class-wp.php' );
    103 require( ABSPATH . WPINC . '/class-wp-error.php' );
    104 require( ABSPATH . WPINC . '/pomo/mo.php' );
     96require_once( ABSPATH . WPINC . '/compat.php' );
     97require_once( ABSPATH . WPINC . '/class-wp-list-util.php' );
     98require_once( ABSPATH . WPINC . '/formatting.php' );
     99require_once( ABSPATH . WPINC . '/meta.php' );
     100require_once( ABSPATH . WPINC . '/functions.php' );
     101require_once( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' );
     102require_once( ABSPATH . WPINC . '/class-wp.php' );
     103require_once( ABSPATH . WPINC . '/class-wp-error.php' );
     104require_once( ABSPATH . WPINC . '/pomo/mo.php' );
    105105
    106106// Include the wpdb class and, if present, a db.php database drop-in.
    107107global $wpdb;
    wp_set_wpdb_vars(); 
    115115wp_start_object_cache();
    116116
    117117// Attach the default filters.
    118 require( ABSPATH . WPINC . '/default-filters.php' );
     118require_once( ABSPATH . WPINC . '/default-filters.php' );
    119119
    120120// Initialize multisite if enabled.
    121121if ( is_multisite() ) {
    122         require( ABSPATH . WPINC . '/class-wp-site-query.php' );
    123         require( ABSPATH . WPINC . '/class-wp-network-query.php' );
    124         require( ABSPATH . WPINC . '/ms-blogs.php' );
    125         require( ABSPATH . WPINC . '/ms-settings.php' );
     122        require_once( ABSPATH . WPINC . '/class-wp-site-query.php' );
     123        require_once( ABSPATH . WPINC . '/class-wp-network-query.php' );
     124        require_once( ABSPATH . WPINC . '/ms-blogs.php' );
     125        require_once( ABSPATH . WPINC . '/ms-settings.php' );
    126126} elseif ( ! defined( 'MULTISITE' ) ) {
    127127        define( 'MULTISITE', false );
    128128}
    require_once( ABSPATH . WPINC . '/class-wp-locale-switcher.php' ); 
    143143wp_not_installed();
    144144
    145145// Load most of WordPress.
    146 require( ABSPATH . WPINC . '/class-wp-walker.php' );
    147 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
    148 require( ABSPATH . WPINC . '/capabilities.php' );
    149 require( ABSPATH . WPINC . '/class-wp-roles.php' );
    150 require( ABSPATH . WPINC . '/class-wp-role.php' );
    151 require( ABSPATH . WPINC . '/class-wp-user.php' );
    152 require( ABSPATH . WPINC . '/class-wp-query.php' );
    153 require( ABSPATH . WPINC . '/query.php' );
    154 require( ABSPATH . WPINC . '/date.php' );
    155 require( ABSPATH . WPINC . '/theme.php' );
    156 require( ABSPATH . WPINC . '/class-wp-theme.php' );
    157 require( ABSPATH . WPINC . '/template.php' );
    158 require( ABSPATH . WPINC . '/user.php' );
    159 require( ABSPATH . WPINC . '/class-wp-user-query.php' );
    160 require( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
    161 require( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );
    162 require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
    163 require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
    164 require( ABSPATH . WPINC . '/general-template.php' );
    165 require( ABSPATH . WPINC . '/link-template.php' );
    166 require( ABSPATH . WPINC . '/author-template.php' );
    167 require( ABSPATH . WPINC . '/post.php' );
    168 require( ABSPATH . WPINC . '/class-walker-page.php' );
    169 require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
    170 require( ABSPATH . WPINC . '/class-wp-post-type.php' );
    171 require( ABSPATH . WPINC . '/class-wp-post.php' );
    172 require( ABSPATH . WPINC . '/post-template.php' );
    173 require( ABSPATH . WPINC . '/revision.php' );
    174 require( ABSPATH . WPINC . '/post-formats.php' );
    175 require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
    176 require( ABSPATH . WPINC . '/category.php' );
    177 require( ABSPATH . WPINC . '/class-walker-category.php' );
    178 require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
    179 require( ABSPATH . WPINC . '/category-template.php' );
    180 require( ABSPATH . WPINC . '/comment.php' );
    181 require( ABSPATH . WPINC . '/class-wp-comment.php' );
    182 require( ABSPATH . WPINC . '/class-wp-comment-query.php' );
    183 require( ABSPATH . WPINC . '/class-walker-comment.php' );
    184 require( ABSPATH . WPINC . '/comment-template.php' );
    185 require( ABSPATH . WPINC . '/rewrite.php' );
    186 require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
    187 require( ABSPATH . WPINC . '/feed.php' );
    188 require( ABSPATH . WPINC . '/bookmark.php' );
    189 require( ABSPATH . WPINC . '/bookmark-template.php' );
    190 require( ABSPATH . WPINC . '/kses.php' );
    191 require( ABSPATH . WPINC . '/cron.php' );
    192 require( ABSPATH . WPINC . '/deprecated.php' );
    193 require( ABSPATH . WPINC . '/script-loader.php' );
    194 require( ABSPATH . WPINC . '/taxonomy.php' );
    195 require( ABSPATH . WPINC . '/class-wp-taxonomy.php' );
    196 require( ABSPATH . WPINC . '/class-wp-term.php' );
    197 require( ABSPATH . WPINC . '/class-wp-term-query.php' );
    198 require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
    199 require( ABSPATH . WPINC . '/update.php' );
    200 require( ABSPATH . WPINC . '/canonical.php' );
    201 require( ABSPATH . WPINC . '/shortcodes.php' );
    202 require( ABSPATH . WPINC . '/embed.php' );
    203 require( ABSPATH . WPINC . '/class-wp-embed.php' );
    204 require( ABSPATH . WPINC . '/class-oembed.php' );
    205 require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
    206 require( ABSPATH . WPINC . '/media.php' );
    207 require( ABSPATH . WPINC . '/http.php' );
    208 require( ABSPATH . WPINC . '/class-http.php' );
    209 require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
    210 require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
    211 require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
    212 require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
    213 require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
    214 require( ABSPATH . WPINC . '/class-wp-http-response.php' );
    215 require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
    216 require( ABSPATH . WPINC . '/class-wp-http-requests-hooks.php' );
    217 require( ABSPATH . WPINC . '/widgets.php' );
    218 require( ABSPATH . WPINC . '/class-wp-widget.php' );
    219 require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
    220 require( ABSPATH . WPINC . '/nav-menu.php' );
    221 require( ABSPATH . WPINC . '/nav-menu-template.php' );
    222 require( ABSPATH . WPINC . '/admin-bar.php' );
    223 require( ABSPATH . WPINC . '/rest-api.php' );
    224 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
    225 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
    226 require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
    227 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php' );
    228 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php' );
    229 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php' );
    230 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php' );
    231 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php' );
    232 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php' );
    233 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php' );
    234 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php' );
    235 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php' );
    236 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php' );
    237 require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php' );
    238 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php' );
    239 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php' );
    240 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php' );
    241 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php' );
    242 require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php' );
     146require_once( ABSPATH . WPINC . '/class-wp-walker.php' );
     147require_once( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
     148require_once( ABSPATH . WPINC . '/capabilities.php' );
     149require_once( ABSPATH . WPINC . '/class-wp-roles.php' );
     150require_once( ABSPATH . WPINC . '/class-wp-role.php' );
     151require_once( ABSPATH . WPINC . '/class-wp-user.php' );
     152require_once( ABSPATH . WPINC . '/class-wp-query.php' );
     153require_once( ABSPATH . WPINC . '/query.php' );
     154require_once( ABSPATH . WPINC . '/date.php' );
     155require_once( ABSPATH . WPINC . '/theme.php' );
     156require_once( ABSPATH . WPINC . '/class-wp-theme.php' );
     157require_once( ABSPATH . WPINC . '/template.php' );
     158require_once( ABSPATH . WPINC . '/user.php' );
     159require_once( ABSPATH . WPINC . '/class-wp-user-query.php' );
     160require_once( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
     161require_once( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );
     162require_once( ABSPATH . WPINC . '/class-wp-meta-query.php' );
     163require_once( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
     164require_once( ABSPATH . WPINC . '/general-template.php' );
     165require_once( ABSPATH . WPINC . '/link-template.php' );
     166require_once( ABSPATH . WPINC . '/author-template.php' );
     167require_once( ABSPATH . WPINC . '/post.php' );
     168require_once( ABSPATH . WPINC . '/class-walker-page.php' );
     169require_once( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
     170require_once( ABSPATH . WPINC . '/class-wp-post-type.php' );
     171require_once( ABSPATH . WPINC . '/class-wp-post.php' );
     172require_once( ABSPATH . WPINC . '/post-template.php' );
     173require_once( ABSPATH . WPINC . '/revision.php' );
     174require_once( ABSPATH . WPINC . '/post-formats.php' );
     175require_once( ABSPATH . WPINC . '/post-thumbnail-template.php' );
     176require_once( ABSPATH . WPINC . '/category.php' );
     177require_once( ABSPATH . WPINC . '/class-walker-category.php' );
     178require_once( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
     179require_once( ABSPATH . WPINC . '/category-template.php' );
     180require_once( ABSPATH . WPINC . '/comment.php' );
     181require_once( ABSPATH . WPINC . '/class-wp-comment.php' );
     182require_once( ABSPATH . WPINC . '/class-wp-comment-query.php' );
     183require_once( ABSPATH . WPINC . '/class-walker-comment.php' );
     184require_once( ABSPATH . WPINC . '/comment-template.php' );
     185require_once( ABSPATH . WPINC . '/rewrite.php' );
     186require_once( ABSPATH . WPINC . '/class-wp-rewrite.php' );
     187require_once( ABSPATH . WPINC . '/feed.php' );
     188require_once( ABSPATH . WPINC . '/bookmark.php' );
     189require_once( ABSPATH . WPINC . '/bookmark-template.php' );
     190require_once( ABSPATH . WPINC . '/kses.php' );
     191require_once( ABSPATH . WPINC . '/cron.php' );
     192require_once( ABSPATH . WPINC . '/deprecated.php' );
     193require_once( ABSPATH . WPINC . '/script-loader.php' );
     194require_once( ABSPATH . WPINC . '/taxonomy.php' );
     195require_once( ABSPATH . WPINC . '/class-wp-taxonomy.php' );
     196require_once( ABSPATH . WPINC . '/class-wp-term.php' );
     197require_once( ABSPATH . WPINC . '/class-wp-term-query.php' );
     198require_once( ABSPATH . WPINC . '/class-wp-tax-query.php' );
     199require_once( ABSPATH . WPINC . '/update.php' );
     200require_once( ABSPATH . WPINC . '/canonical.php' );
     201require_once( ABSPATH . WPINC . '/shortcodes.php' );
     202require_once( ABSPATH . WPINC . '/embed.php' );
     203require_once( ABSPATH . WPINC . '/class-wp-embed.php' );
     204require_once( ABSPATH . WPINC . '/class-oembed.php' );
     205require_once( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
     206require_once( ABSPATH . WPINC . '/media.php' );
     207require_once( ABSPATH . WPINC . '/http.php' );
     208require_once( ABSPATH . WPINC . '/class-http.php' );
     209require_once( ABSPATH . WPINC . '/class-wp-http-streams.php' );
     210require_once( ABSPATH . WPINC . '/class-wp-http-curl.php' );
     211require_once( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
     212require_once( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
     213require_once( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
     214require_once( ABSPATH . WPINC . '/class-wp-http-response.php' );
     215require_once( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
     216require_once( ABSPATH . WPINC . '/class-wp-http-requests-hooks.php' );
     217require_once( ABSPATH . WPINC . '/widgets.php' );
     218require_once( ABSPATH . WPINC . '/class-wp-widget.php' );
     219require_once( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
     220require_once( ABSPATH . WPINC . '/nav-menu.php' );
     221require_once( ABSPATH . WPINC . '/nav-menu-template.php' );
     222require_once( ABSPATH . WPINC . '/admin-bar.php' );
     223require_once( ABSPATH . WPINC . '/rest-api.php' );
     224require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
     225require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
     226require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
     227require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php' );
     228require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php' );
     229require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php' );
     230require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php' );
     231require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php' );
     232require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php' );
     233require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php' );
     234require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php' );
     235require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php' );
     236require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php' );
     237require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php' );
     238require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php' );
     239require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php' );
     240require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php' );
     241require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php' );
     242require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php' );
    243243
    244244$GLOBALS['wp_embed'] = new WP_Embed();
    245245
    246246// Load multisite-specific files.
    247247if ( is_multisite() ) {
    248         require( ABSPATH . WPINC . '/ms-functions.php' );
    249         require( ABSPATH . WPINC . '/ms-default-filters.php' );
    250         require( ABSPATH . WPINC . '/ms-deprecated.php' );
     248        require_once( ABSPATH . WPINC . '/ms-functions.php' );
     249        require_once( ABSPATH . WPINC . '/ms-default-filters.php' );
     250        require_once( ABSPATH . WPINC . '/ms-deprecated.php' );
    251251}
    252252
    253253// Define constants that rely on the API to obtain the default value.
    wp_cookie_constants(); 
    289289wp_ssl_constants();
    290290
    291291// Create common globals.
    292 require( ABSPATH . WPINC . '/vars.php' );
     292require_once( ABSPATH . WPINC . '/vars.php' );
    293293
    294294// Make taxonomies and posts available to plugins and themes.
    295295// @plugin authors: warning: these get registered again on the init hook.
    foreach ( wp_get_active_and_valid_plugins() as $plugin ) { 
    309309unset( $plugin );
    310310
    311311// Load pluggable functions.
    312 require( ABSPATH . WPINC . '/pluggable.php' );
    313 require( ABSPATH . WPINC . '/pluggable-deprecated.php' );
     312require_once( ABSPATH . WPINC . '/pluggable.php' );
     313require_once( ABSPATH . WPINC . '/pluggable-deprecated.php' );
    314314
    315315// Set internal encoding.
    316316wp_set_internal_encoding();
    load_default_textdomain(); 
    407407$locale      = get_locale();
    408408$locale_file = WP_LANG_DIR . "/$locale.php";
    409409if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) {
    410         require( $locale_file );
     410        require_once( $locale_file );
    411411}
    412412unset( $locale_file );
    413413
    do_action( 'init' ); 
    465465// Check site status
    466466if ( is_multisite() ) {
    467467        if ( true !== ( $file = ms_site_check() ) ) {
    468                 require( $file );
     468                require_once( $file );
    469469                die();
    470470        }
    471471        unset( $file );
  • src/wp-signup.php

    diff --git a/src/wp-signup.php b/src/wp-signup.php
    index 92b6a21..df957c3 100644
    a b  
    11<?php
    22
    33/** Sets up the WordPress Environment. */
    4 require( dirname( __FILE__ ) . '/wp-load.php' );
     4require_once( dirname( __FILE__ ) . '/wp-load.php' );
    55
    66add_action( 'wp_head', 'wp_no_robots' );
    77
    8 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
     8require_once( dirname( __FILE__ ) . '/wp-blog-header.php' );
    99
    1010if ( is_array( get_site_option( 'illegal_names' ) ) && isset( $_GET['new'] ) && in_array( $_GET['new'], get_site_option( 'illegal_names' ) ) ) {
    1111        wp_redirect( network_home_url() );
  • tests/phpunit/tests/feed/atom.php

    diff --git a/tests/phpunit/tests/feed/atom.php b/tests/phpunit/tests/feed/atom.php
    index 356c95f..a8afe15 100644
    a b class Tests_Feeds_Atom extends WP_UnitTestCase { 
    7070                // Nasty hack! In the future it would better to leverage do_feed( 'atom' ).
    7171                global $post;
    7272                try {
    73                         @require( ABSPATH . 'wp-includes/feed-atom.php' );
     73                        @require_once( ABSPATH . 'wp-includes/feed-atom.php' );
    7474                        $out = ob_get_clean();
    7575                } catch ( Exception $e ) {
    7676                        $out = ob_get_clean();
  • tests/phpunit/tests/feed/rss2.php

    diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php
    index f8ebf2b..12da864 100644
    a b class Tests_Feeds_RSS2 extends WP_UnitTestCase { 
    7979                // Nasty hack! In the future it would better to leverage do_feed( 'rss2' ).
    8080                global $post;
    8181                try {
    82                         @require( ABSPATH . 'wp-includes/feed-rss2.php' );
     82                        @require_once( ABSPATH . 'wp-includes/feed-rss2.php' );
    8383                        $out = ob_get_clean();
    8484                } catch ( Exception $e ) {
    8585                        $out = ob_get_clean();
  • webpack.config.dev.js

    diff --git a/webpack.config.dev.js b/webpack.config.dev.js
    index 27c8e74..b8af539 100644
    a b  
    1 var path         = require( 'path' ),
     1var path         = require_once( 'path' ),
    22        SOURCE_DIR   = 'src/',
    33        mediaConfig  = {},
    44        mediaBuilds  = [ 'audiovideo', 'grid', 'models', 'views' ],
    5         webpack      = require( 'webpack' );
     5        webpack      = require_once( 'webpack' );
    66
    77
    88mediaBuilds.forEach( function ( build ) {
  • webpack.config.prod.js

    diff --git a/webpack.config.prod.js b/webpack.config.prod.js
    index 8a0b1e4..21bd6c5 100644
    a b  
    1 var path         = require( 'path' ),
     1var path         = require_once( 'path' ),
    22        SOURCE_DIR   = 'src/',
    33        mediaConfig  = {},
    44        mediaBuilds  = [ 'audiovideo', 'grid', 'models', 'views' ],
    5         webpack      = require( 'webpack' );
     5        webpack      = require_once( 'webpack' );
    66
    77
    88mediaBuilds.forEach( function ( build ) {