Ticket #43674: 4367.diff
File 4367.diff, 67.8 KB (added by , 7 years ago) |
---|
-
Gruntfile.js
diff --git a/Gruntfile.js b/Gruntfile.js index a43eabd..4072e04 100644
a b 1 1 /* jshint node:true */ 2 2 /* globals Set */ 3 var webpackConfig = require ( './webpack.config.prod' );4 var webpackDevConfig = require ( './webpack.config.dev' );3 var webpackConfig = require_once( './webpack.config.prod' ); 4 var webpackDevConfig = require_once( './webpack.config.dev' ); 5 5 6 6 module.exports = function(grunt) { 7 7 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, 10 10 SOURCE_DIR = 'src/', 11 11 BUILD_DIR = 'build/', 12 12 BANNER_TEXT = '/*! This file is auto-generated */', 13 autoprefixer = require ( 'autoprefixer' ),13 autoprefixer = require_once( 'autoprefixer' ), 14 14 phpUnitWatchGroup = grunt.option( 'group' ); 15 15 16 16 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 14 14 define( 'WP_USE_THEMES', true ); 15 15 16 16 /** Loads the WordPress Environment and Template */ 17 require ( dirname( __FILE__ ) . '/wp-blog-header.php' );17 require_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 9 9 define( 'WP_INSTALLING', true ); 10 10 11 11 /** Sets up the WordPress Environment. */ 12 require ( dirname( __FILE__ ) . '/wp-load.php' );12 require_once( dirname( __FILE__ ) . '/wp-load.php' ); 13 13 14 require ( dirname( __FILE__ ) . '/wp-blog-header.php' );14 require_once( dirname( __FILE__ ) . '/wp-blog-header.php' ); 15 15 16 16 if ( ! is_multisite() ) { 17 17 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' ) ) { 218 218 ?> 219 219 220 220 <div id="wpwrap"> 221 <?php require ( ABSPATH . 'wp-admin/menu-header.php' ); ?>221 <?php require_once( ABSPATH . 'wp-admin/menu-header.php' ); ?> 222 222 <div id="wpcontent"> 223 223 224 224 <?php … … if ( is_network_admin() ) { 274 274 do_action( 'all_admin_notices' ); 275 275 276 276 if ( $parent_file == 'options-general.php' ) { 277 require ( ABSPATH . 'wp-admin/options-head.php' );277 require_once( ABSPATH . 'wp-admin/options-head.php' ); 278 278 } -
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'] ) 144 144 } 145 145 146 146 if ( WP_NETWORK_ADMIN ) { 147 require ( ABSPATH . 'wp-admin/network/menu.php' );147 require_once( ABSPATH . 'wp-admin/network/menu.php' ); 148 148 } elseif ( WP_USER_ADMIN ) { 149 require ( ABSPATH . 'wp-admin/user/menu.php' );149 require_once( ABSPATH . 'wp-admin/user/menu.php' ); 150 150 } else { 151 require ( ABSPATH . 'wp-admin/menu.php' );151 require_once( ABSPATH . 'wp-admin/menu.php' ); 152 152 } 153 153 154 154 if ( 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() { 1670 1670 $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; 1671 1671 1672 1672 if ( ! class_exists( '_WP_Editors', false ) ) { 1673 require ( ABSPATH . WPINC . '/class-wp-editor.php' );1673 require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 1674 1674 } 1675 1675 1676 1676 $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 ) { 3248 3248 } 3249 3249 3250 3250 if ( ! class_exists( 'getID3', false ) ) { 3251 require ( ABSPATH . WPINC . '/ID3/getid3.php' );3251 require_once( ABSPATH . WPINC . '/ID3/getid3.php' ); 3252 3252 } 3253 3253 $id3 = new getID3(); 3254 3254 $data = $id3->analyze( $file ); … … function wp_read_audio_metadata( $file ) { 3345 3345 } 3346 3346 3347 3347 if ( ! class_exists( 'getID3', false ) ) { 3348 require ( ABSPATH . WPINC . '/ID3/getid3.php' );3348 require_once( ABSPATH . WPINC . '/ID3/getid3.php' ); 3349 3349 } 3350 3350 $id3 = new getID3(); 3351 3351 $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 ) { 923 923 } 924 924 925 925 $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' ); 927 927 $wp_filesystem->delete( $versions_file ); 928 928 929 929 $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 10 10 11 11 /** Include user installation customization script. */ 12 12 if ( file_exists( WP_CONTENT_DIR . '/install.php' ) ) { 13 require ( WP_CONTENT_DIR . '/install.php' );13 require_once( WP_CONTENT_DIR . '/install.php' ); 14 14 } 15 15 16 16 /** 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' ) ) 153 153 <?php 154 154 wp_print_community_events_templates(); 155 155 156 require ( ABSPATH . 'wp-admin/admin-footer.php' );156 require_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() ) { 28 28 $link = get_default_link_to_edit(); 29 29 include( ABSPATH . 'wp-admin/edit-link-form.php' ); 30 30 31 require ( ABSPATH . 'wp-admin/admin-footer.php' );31 require_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 ) ) { 26 26 exit; 27 27 } 28 28 29 require ( ABSPATH . 'wp-admin/includes/noop.php' );30 require ( ABSPATH . WPINC . '/script-loader.php' );31 require ( ABSPATH . WPINC . '/version.php' );29 require_once( ABSPATH . 'wp-admin/includes/noop.php' ); 30 require_once( ABSPATH . WPINC . '/script-loader.php' ); 31 require_once( ABSPATH . WPINC . '/version.php' ); 32 32 33 33 $compress = ( isset( $_GET['c'] ) && $_GET['c'] ); 34 34 $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' ) ) { 14 14 15 15 define( 'WPINC', 'wp-includes' ); 16 16 17 require ( ABSPATH . 'wp-admin/includes/noop.php' );18 require ( ABSPATH . WPINC . '/script-loader.php' );19 require ( ABSPATH . WPINC . '/version.php' );17 require_once( ABSPATH . 'wp-admin/includes/noop.php' ); 18 require_once( ABSPATH . WPINC . '/script-loader.php' ); 19 require_once( ABSPATH . WPINC . '/version.php' ); 20 20 21 21 $load = $_GET['load']; 22 22 if ( 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 ) { 96 96 '<p>' . __( '<a href="https://wordpress.org/support/">Support Forums</a>' ) . '</p>' 97 97 ); 98 98 99 require ( ABSPATH . 'wp-admin/admin-header.php' );99 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 100 100 101 101 $parent_file = 'upload.php'; 102 102 $message = ''; … … if ( current_user_can( 'upload_files' ) ) { 164 164 165 165 <?php 166 166 167 require ( ABSPATH . 'wp-admin/admin-footer.php' );167 require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 168 168 169 169 exit; 170 170 -
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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/about.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/credits.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/freedoms.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/plugin-editor.php' );13 require_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'] ) ) { 14 14 /** Load WordPress Administration Bootstrap */ 15 15 require_once( dirname( __FILE__ ) . '/admin.php' ); 16 16 17 require ( ABSPATH . 'wp-admin/plugin-install.php' );17 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/plugins.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/privacy.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/profile.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/network.php' );13 require_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 ) ); 126 126 $parent_file = 'sites.php'; 127 127 $submenu_file = 'sites.php'; 128 128 129 require ( ABSPATH . 'wp-admin/admin-header.php' );129 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 130 130 131 131 ?> 132 132 … … if ( ! empty( $messages ) ) { 210 210 211 211 </div> 212 212 <?php 213 require ( ABSPATH . 'wp-admin/admin-footer.php' );213 require_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'; 199 199 200 200 wp_enqueue_script( 'user-suggest' ); 201 201 202 require ( ABSPATH . 'wp-admin/admin-header.php' );202 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 203 203 204 204 ?> 205 205 … … printf( 295 295 </form> 296 296 </div> 297 297 <?php 298 require ( ABSPATH . 'wp-admin/admin-footer.php' );298 require_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 ) ); 84 84 $parent_file = 'sites.php'; 85 85 $submenu_file = 'sites.php'; 86 86 87 require ( ABSPATH . 'wp-admin/admin-header.php' );87 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 88 88 89 89 ?> 90 90 … … if ( ! empty( $messages ) ) { 172 172 173 173 </div> 174 174 <?php 175 require ( ABSPATH . 'wp-admin/admin-footer.php' );175 require_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 ) ); 171 171 $parent_file = 'sites.php'; 172 172 $submenu_file = 'sites.php'; 173 173 174 require ( ABSPATH . 'wp-admin/admin-header.php' ); ?>174 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 175 175 176 176 <div class="wrap"> 177 177 <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 214 214 wp_enqueue_script( 'user-suggest' ); 215 215 } 216 216 217 require ( ABSPATH . 'wp-admin/admin-header.php' ); ?>217 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 218 218 219 219 <script type="text/javascript"> 220 220 var current_site_id = <?php echo $id; ?>; … … if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use 363 363 <?php endif; ?> 364 364 </div> 365 365 <?php 366 require ( ABSPATH . 'wp-admin/admin-footer.php' );366 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/theme-editor.php' );13 require_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'] ) ) { 14 14 /** Load WordPress Administration Bootstrap */ 15 15 require_once( dirname( __FILE__ ) . '/admin.php' ); 16 16 17 require ( ABSPATH . 'wp-admin/theme-install.php' );17 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/update-core.php' );13 require_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 14 14 /** Load WordPress Administration Bootstrap */ 15 15 require_once( dirname( __FILE__ ) . '/admin.php' ); 16 16 17 require ( ABSPATH . 'wp-admin/update.php' );17 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/user-edit.php' );13 require_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'] ) ) { 97 97 $title = __( 'Add New User' ); 98 98 $parent_file = 'users.php'; 99 99 100 require ( ABSPATH . 'wp-admin/admin-header.php' ); ?>100 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 101 101 102 102 <div class="wrap"> 103 103 <h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1> … … if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { 146 146 </form> 147 147 </div> 148 148 <?php 149 require ( ABSPATH . 'wp-admin/admin-footer.php' );149 require_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'] ) 161 161 162 162 flush_rewrite_rules(); 163 163 164 require ( ABSPATH . 'wp-admin/admin-header.php' );164 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 165 165 ?> 166 166 <div class="wrap"> 167 167 <h1><?php echo esc_html( $title ); ?></h1> … … else : 401 401 402 402 </div> 403 403 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' ) ) { 30 30 define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' ); 31 31 } 32 32 33 require ( ABSPATH . 'wp-settings.php' );33 require_once( ABSPATH . 'wp-settings.php' ); 34 34 35 35 /** Load WordPress Administration Upgrade API */ 36 36 require_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 8 8 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 require ( ABSPATH . 'wp-admin/includes/theme-install.php' );11 require_once( ABSPATH . 'wp-admin/includes/theme-install.php' ); 12 12 13 13 wp_reset_vars( array( 'tab' ) ); 14 14 -
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( 538 538 ) 539 539 ); 540 540 541 require ( ABSPATH . 'wp-admin/admin-footer.php' );541 require_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 15 15 define( 'WP_INSTALLING', true ); 16 16 17 17 /** Load WordPress Bootstrap */ 18 require ( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );18 require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); 19 19 20 20 nocache_headers(); 21 21 -
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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/about.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/credits.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/freedoms.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/index.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/privacy.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/profile.php' );13 require_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 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 require ( ABSPATH . 'wp-admin/user-edit.php' );13 require_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'] ) { 18 18 } 19 19 20 20 /** Sets up the WordPress Environment. */ 21 require ( dirname( __FILE__ ) . '/wp-load.php' );21 require_once( dirname( __FILE__ ) . '/wp-load.php' ); 22 22 23 23 nocache_headers(); 24 24 -
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' ) ) : 84 84 add_editor_style(); 85 85 86 86 // 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' ); 88 88 89 89 // Grab Twenty Eleven's Ephemera widget. 90 require ( get_template_directory() . '/inc/widgets.php' );90 require_once( get_template_directory() . '/inc/widgets.php' ); 91 91 92 92 // Add default posts and comments RSS feed links to <head>. 93 93 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 14 14 define( ['jquery'], factory ); 15 15 } else if (typeof module !== 'undefined' && module.exports) { 16 16 // CommonJS 17 module.exports = factory( require ( 'jquery' ) );17 module.exports = factory( require_once( 'jquery' ) ); 18 18 } else { 19 19 // Global 20 20 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' ); 86 86 /** 87 87 * Add support for a custom header image. 88 88 */ 89 require ( get_template_directory() . '/inc/custom-header.php' );89 require_once( get_template_directory() . '/inc/custom-header.php' ); 90 90 91 91 /** 92 92 * 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 8 8 */ 9 9 10 10 if ( ! class_exists( 'Requests' ) ) { 11 require ( ABSPATH . WPINC . '/class-requests.php' );11 require_once( ABSPATH . WPINC . '/class-requests.php' ); 12 12 13 13 Requests::register_autoloader(); 14 14 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 1502 1502 */ 1503 1503 $include = apply_filters( 'comments_template', $theme_template ); 1504 1504 if ( file_exists( $include ) ) { 1505 require ( $include );1505 require_once( $include ); 1506 1506 } elseif ( file_exists( TEMPLATEPATH . $file ) ) { 1507 require ( TEMPLATEPATH . $file );1507 require_once( TEMPLATEPATH . $file ); 1508 1508 } 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' ); 1510 1510 } 1511 1511 } 1512 1512 -
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 5 5 * @package WordPress 6 6 */ 7 7 8 require ( ABSPATH . WPINC . '/option.php' );8 require_once( ABSPATH . WPINC . '/option.php' ); 9 9 10 10 /** 11 11 * 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 ) { 205 205 $search_form_template = locate_template( 'searchform.php' ); 206 206 if ( '' != $search_form_template ) { 207 207 ob_start(); 208 require ( $search_form_template );208 require_once( $search_form_template ); 209 209 $form = ob_get_clean(); 210 210 } else { 211 211 if ( 'html5' == $format ) { … … function wp_default_editor() { 3146 3146 */ 3147 3147 function wp_editor( $content, $editor_id, $settings = array() ) { 3148 3148 if ( ! class_exists( '_WP_Editors', false ) ) { 3149 require ( ABSPATH . WPINC . '/class-wp-editor.php' );3149 require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 3150 3150 } 3151 3151 _WP_Editors::editor( $content, $editor_id, $settings ); 3152 3152 } … … function wp_editor( $content, $editor_id, $settings = array() ) { 3162 3162 */ 3163 3163 function wp_enqueue_editor() { 3164 3164 if ( ! class_exists( '_WP_Editors', false ) ) { 3165 require ( ABSPATH . WPINC . '/class-wp-editor.php' );3165 require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 3166 3166 } 3167 3167 3168 3168 _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 = { 269 269 } 270 270 }; 271 271 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' );272 media.model.PostMedia = require_once( './models/post-media.js' ); 273 media.controller.AudioDetails = require_once( './controllers/audio-details.js' ); 274 media.controller.VideoDetails = require_once( './controllers/video-details.js' ); 275 media.view.MediaFrame.MediaDetails = require_once( './views/frame/media-details.js' ); 276 media.view.MediaFrame.AudioDetails = require_once( './views/frame/audio-details.js' ); 277 media.view.MediaFrame.VideoDetails = require_once( './views/frame/video-details.js' ); 278 media.view.MediaDetails = require_once( './views/media-details.js' ); 279 media.view.AudioDetails = require_once( './views/audio-details.js' ); 280 media.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 1 1 var media = wp.media; 2 2 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' );3 media.controller.EditAttachmentMetadata = require_once( './controllers/edit-attachment-metadata.js' ); 4 media.view.MediaFrame.Manage = require_once( './views/frame/manage.js' ); 5 media.view.Attachment.Details.TwoColumn = require_once( './views/attachment/details-two-column.js' ); 6 media.view.MediaFrame.Manage.Router = require_once( './routers/manage.js' ); 7 media.view.EditImage.Details = require_once( './views/edit-image-details.js' ); 8 media.view.MediaFrame.EditAttachments = require_once( './views/frame/edit-attachments.js' ); 9 media.view.SelectModeToggleButton = require_once( './views/button/select-mode-toggle.js' ); 10 media.view.DeleteSelectedButton = require_once( './views/button/delete-selected.js' ); 11 media.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 || {}; 64 64 media.model.settings = l10n.settings || {}; 65 65 delete l10n.settings; 66 66 67 Attachment = media.model.Attachment = require ( './models/attachment.js' );68 Attachments = media.model.Attachments = require ( './models/attachments.js' );67 Attachment = media.model.Attachment = require_once( './models/attachment.js' ); 68 Attachments = media.model.Attachments = require_once( './models/attachments.js' ); 69 69 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' );70 media.model.Query = require_once( './models/query.js' ); 71 media.model.PostImage = require_once( './models/post-image.js' ); 72 media.model.Selection = require_once( './models/selection.js' ); 73 73 74 74 /** 75 75 * ======================================================================== -
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 ) { 71 71 return deferred.promise(); 72 72 }; 73 73 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' );74 media.controller.Region = require_once( './controllers/region.js' ); 75 media.controller.StateMachine = require_once( './controllers/state-machine.js' ); 76 media.controller.State = require_once( './controllers/state.js' ); 77 78 media.selectionSync = require_once( './utils/selection-sync.js' ); 79 media.controller.Library = require_once( './controllers/library.js' ); 80 media.controller.ImageDetails = require_once( './controllers/image-details.js' ); 81 media.controller.GalleryEdit = require_once( './controllers/gallery-edit.js' ); 82 media.controller.GalleryAdd = require_once( './controllers/gallery-add.js' ); 83 media.controller.CollectionEdit = require_once( './controllers/collection-edit.js' ); 84 media.controller.CollectionAdd = require_once( './controllers/collection-add.js' ); 85 media.controller.FeaturedImage = require_once( './controllers/featured-image.js' ); 86 media.controller.ReplaceImage = require_once( './controllers/replace-image.js' ); 87 media.controller.EditImage = require_once( './controllers/edit-image.js' ); 88 media.controller.MediaLibrary = require_once( './controllers/media-library.js' ); 89 media.controller.Embed = require_once( './controllers/embed.js' ); 90 media.controller.Cropper = require_once( './controllers/cropper.js' ); 91 media.controller.CustomizeImageCropper = require_once( './controllers/customize-image-cropper.js' ); 92 media.controller.SiteIconCropper = require_once( './controllers/site-icon-cropper.js' ); 93 94 media.View = require_once( './views/view.js' ); 95 media.view.Frame = require_once( './views/frame.js' ); 96 media.view.MediaFrame = require_once( './views/media-frame.js' ); 97 media.view.MediaFrame.Select = require_once( './views/frame/select.js' ); 98 media.view.MediaFrame.Post = require_once( './views/frame/post.js' ); 99 media.view.MediaFrame.ImageDetails = require_once( './views/frame/image-details.js' ); 100 media.view.Modal = require_once( './views/modal.js' ); 101 media.view.FocusManager = require_once( './views/focus-manager.js' ); 102 media.view.UploaderWindow = require_once( './views/uploader/window.js' ); 103 media.view.EditorUploader = require_once( './views/uploader/editor.js' ); 104 media.view.UploaderInline = require_once( './views/uploader/inline.js' ); 105 media.view.UploaderStatus = require_once( './views/uploader/status.js' ); 106 media.view.UploaderStatusError = require_once( './views/uploader/status-error.js' ); 107 media.view.Toolbar = require_once( './views/toolbar.js' ); 108 media.view.Toolbar.Select = require_once( './views/toolbar/select.js' ); 109 media.view.Toolbar.Embed = require_once( './views/toolbar/embed.js' ); 110 media.view.Button = require_once( './views/button.js' ); 111 media.view.ButtonGroup = require_once( './views/button-group.js' ); 112 media.view.PriorityList = require_once( './views/priority-list.js' ); 113 media.view.MenuItem = require_once( './views/menu-item.js' ); 114 media.view.Menu = require_once( './views/menu.js' ); 115 media.view.RouterItem = require_once( './views/router-item.js' ); 116 media.view.Router = require_once( './views/router.js' ); 117 media.view.Sidebar = require_once( './views/sidebar.js' ); 118 media.view.Attachment = require_once( './views/attachment.js' ); 119 media.view.Attachment.Library = require_once( './views/attachment/library.js' ); 120 media.view.Attachment.EditLibrary = require_once( './views/attachment/edit-library.js' ); 121 media.view.Attachments = require_once( './views/attachments.js' ); 122 media.view.Search = require_once( './views/search.js' ); 123 media.view.AttachmentFilters = require_once( './views/attachment-filters.js' ); 124 media.view.DateFilter = require_once( './views/attachment-filters/date.js' ); 125 media.view.AttachmentFilters.Uploaded = require_once( './views/attachment-filters/uploaded.js' ); 126 media.view.AttachmentFilters.All = require_once( './views/attachment-filters/all.js' ); 127 media.view.AttachmentsBrowser = require_once( './views/attachments/browser.js' ); 128 media.view.Selection = require_once( './views/selection.js' ); 129 media.view.Attachment.Selection = require_once( './views/attachment/selection.js' ); 130 media.view.Attachments.Selection = require_once( './views/attachments/selection.js' ); 131 media.view.Attachment.EditSelection = require_once( './views/attachment/edit-selection.js' ); 132 media.view.Settings = require_once( './views/settings.js' ); 133 media.view.Settings.AttachmentDisplay = require_once( './views/settings/attachment-display.js' ); 134 media.view.Settings.Gallery = require_once( './views/settings/gallery.js' ); 135 media.view.Settings.Playlist = require_once( './views/settings/playlist.js' ); 136 media.view.Attachment.Details = require_once( './views/attachment/details.js' ); 137 media.view.AttachmentCompat = require_once( './views/attachment-compat.js' ); 138 media.view.Iframe = require_once( './views/iframe.js' ); 139 media.view.Embed = require_once( './views/embed.js' ); 140 media.view.Label = require_once( './views/label.js' ); 141 media.view.EmbedUrl = require_once( './views/embed/url.js' ); 142 media.view.EmbedLink = require_once( './views/embed/link.js' ); 143 media.view.EmbedImage = require_once( './views/embed/image.js' ); 144 media.view.ImageDetails = require_once( './views/image-details.js' ); 145 media.view.Cropper = require_once( './views/cropper.js' ); 146 media.view.SiteIconCropper = require_once( './views/site-icon-cropper.js' ); 147 media.view.SiteIconPreview = require_once( './views/site-icon-preview.js' ); 148 media.view.EditImage = require_once( './views/edit-image.js' ); 149 media.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() { 606 606 } elseif ( ! is_blog_installed() && ! wp_installing() ) { 607 607 nocache_headers(); 608 608 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' ); 612 612 613 613 $link = wp_guess_url() . '/wp-admin/install.php'; 614 614 -
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' ) ) : 2684 2684 $args = wp_parse_args( $args, $defaults ); 2685 2685 2686 2686 if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) ) { 2687 require ( ABSPATH . WPINC . '/wp-diff.php' );2687 require_once( ABSPATH . WPINC . '/wp-diff.php' ); 2688 2688 } 2689 2689 2690 2690 $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 22 22 */ 23 23 24 24 // Initialize the filter globals. 25 require ( dirname( __FILE__ ) . '/class-wp-hook.php' );25 require_once( dirname( __FILE__ ) . '/class-wp-hook.php' ); 26 26 27 27 /** @var WP_Hook[] $wp_filter */ 28 28 global $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 17 17 */ 18 18 19 19 /** WordPress Dependency Class */ 20 require ( ABSPATH . WPINC . '/class-wp-dependency.php' );20 require_once( ABSPATH . WPINC . '/class-wp-dependency.php' ); 21 21 22 22 /** WordPress Dependencies Class */ 23 require ( ABSPATH . WPINC . '/class.wp-dependencies.php' );23 require_once( ABSPATH . WPINC . '/class.wp-dependencies.php' ); 24 24 25 25 /** WordPress Scripts Class */ 26 require ( ABSPATH . WPINC . '/class.wp-scripts.php' );26 require_once( ABSPATH . WPINC . '/class.wp-scripts.php' ); 27 27 28 28 /** WordPress Scripts Functions */ 29 require ( ABSPATH . WPINC . '/functions.wp-scripts.php' );29 require_once( ABSPATH . WPINC . '/functions.wp-scripts.php' ); 30 30 31 31 /** WordPress Styles Class */ 32 require ( ABSPATH . WPINC . '/class.wp-styles.php' );32 require_once( ABSPATH . WPINC . '/class.wp-styles.php' ); 33 33 34 34 /** WordPress Styles Functions */ 35 require ( ABSPATH . WPINC . '/functions.wp-styles.php' );35 require_once( ABSPATH . WPINC . '/functions.wp-styles.php' ); 36 36 37 37 /** 38 38 * 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 ) { 694 694 if ( $require_once ) { 695 695 require_once( $_template_file ); 696 696 } else { 697 require ( $_template_file );697 require_once( $_template_file ); 698 698 } 699 699 } -
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 ) { 2814 2814 */ 2815 2815 function require_if_theme_supports( $feature, $include ) { 2816 2816 if ( current_theme_supports( $feature ) ) { 2817 require ( $include );2817 require_once( $include ); 2818 2818 return true; 2819 2819 } 2820 2820 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 10 10 11 11 if ( ! class_exists( 'Text_Diff', false ) ) { 12 12 /** Text_Diff class */ 13 require ( ABSPATH . WPINC . '/Text/Diff.php' );13 require_once( ABSPATH . WPINC . '/Text/Diff.php' ); 14 14 /** Text_Diff_Renderer class */ 15 require ( ABSPATH . WPINC . '/Text/Diff/Renderer.php' );15 require_once( ABSPATH . WPINC . '/Text/Diff/Renderer.php' ); 16 16 /** Text_Diff_Renderer_inline class */ 17 require ( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' );17 require_once( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' ); 18 18 } 19 19 20 require ( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' );21 require ( ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php' );20 require_once( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' ); 21 require_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 9 9 */ 10 10 11 11 /** Make sure that the WordPress bootstrap has run before continuing. */ 12 require ( dirname( __FILE__ ) . '/wp-load.php' );12 require_once( dirname( __FILE__ ) . '/wp-load.php' ); 13 13 14 14 // Redirect to https login if forced to use SSL 15 15 if ( 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 8 8 */ 9 9 10 10 /** Make sure that the WordPress bootstrap has run before continuing. */ 11 require ( dirname( __FILE__ ) . '/wp-load.php' );11 require_once( dirname( __FILE__ ) . '/wp-load.php' ); 12 12 13 13 /** This filter is documented in wp-admin/options.php */ 14 14 if ( ! 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 16 16 define( 'WPINC', 'wp-includes' ); 17 17 18 18 // Include files required for initialization. 19 require ( ABSPATH . WPINC . '/load.php' );20 require ( ABSPATH . WPINC . '/default-constants.php' );19 require_once( ABSPATH . WPINC . '/load.php' ); 20 require_once( ABSPATH . WPINC . '/default-constants.php' ); 21 21 require_once( ABSPATH . WPINC . '/plugin.php' ); 22 22 23 23 /* … … require_once( ABSPATH . WPINC . '/plugin.php' ); 26 26 * these values to be overridden if already set. 27 27 */ 28 28 global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package; 29 require ( ABSPATH . WPINC . '/version.php' );29 require_once( ABSPATH . WPINC . '/version.php' ); 30 30 31 31 /** 32 32 * 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 ) ) 93 93 wp_set_lang_dir(); 94 94 95 95 // 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' );96 require_once( ABSPATH . WPINC . '/compat.php' ); 97 require_once( ABSPATH . WPINC . '/class-wp-list-util.php' ); 98 require_once( ABSPATH . WPINC . '/formatting.php' ); 99 require_once( ABSPATH . WPINC . '/meta.php' ); 100 require_once( ABSPATH . WPINC . '/functions.php' ); 101 require_once( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' ); 102 require_once( ABSPATH . WPINC . '/class-wp.php' ); 103 require_once( ABSPATH . WPINC . '/class-wp-error.php' ); 104 require_once( ABSPATH . WPINC . '/pomo/mo.php' ); 105 105 106 106 // Include the wpdb class and, if present, a db.php database drop-in. 107 107 global $wpdb; … … wp_set_wpdb_vars(); 115 115 wp_start_object_cache(); 116 116 117 117 // Attach the default filters. 118 require ( ABSPATH . WPINC . '/default-filters.php' );118 require_once( ABSPATH . WPINC . '/default-filters.php' ); 119 119 120 120 // Initialize multisite if enabled. 121 121 if ( 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' ); 126 126 } elseif ( ! defined( 'MULTISITE' ) ) { 127 127 define( 'MULTISITE', false ); 128 128 } … … require_once( ABSPATH . WPINC . '/class-wp-locale-switcher.php' ); 143 143 wp_not_installed(); 144 144 145 145 // 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' );146 require_once( ABSPATH . WPINC . '/class-wp-walker.php' ); 147 require_once( ABSPATH . WPINC . '/class-wp-ajax-response.php' ); 148 require_once( ABSPATH . WPINC . '/capabilities.php' ); 149 require_once( ABSPATH . WPINC . '/class-wp-roles.php' ); 150 require_once( ABSPATH . WPINC . '/class-wp-role.php' ); 151 require_once( ABSPATH . WPINC . '/class-wp-user.php' ); 152 require_once( ABSPATH . WPINC . '/class-wp-query.php' ); 153 require_once( ABSPATH . WPINC . '/query.php' ); 154 require_once( ABSPATH . WPINC . '/date.php' ); 155 require_once( ABSPATH . WPINC . '/theme.php' ); 156 require_once( ABSPATH . WPINC . '/class-wp-theme.php' ); 157 require_once( ABSPATH . WPINC . '/template.php' ); 158 require_once( ABSPATH . WPINC . '/user.php' ); 159 require_once( ABSPATH . WPINC . '/class-wp-user-query.php' ); 160 require_once( ABSPATH . WPINC . '/class-wp-session-tokens.php' ); 161 require_once( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' ); 162 require_once( ABSPATH . WPINC . '/class-wp-meta-query.php' ); 163 require_once( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' ); 164 require_once( ABSPATH . WPINC . '/general-template.php' ); 165 require_once( ABSPATH . WPINC . '/link-template.php' ); 166 require_once( ABSPATH . WPINC . '/author-template.php' ); 167 require_once( ABSPATH . WPINC . '/post.php' ); 168 require_once( ABSPATH . WPINC . '/class-walker-page.php' ); 169 require_once( ABSPATH . WPINC . '/class-walker-page-dropdown.php' ); 170 require_once( ABSPATH . WPINC . '/class-wp-post-type.php' ); 171 require_once( ABSPATH . WPINC . '/class-wp-post.php' ); 172 require_once( ABSPATH . WPINC . '/post-template.php' ); 173 require_once( ABSPATH . WPINC . '/revision.php' ); 174 require_once( ABSPATH . WPINC . '/post-formats.php' ); 175 require_once( ABSPATH . WPINC . '/post-thumbnail-template.php' ); 176 require_once( ABSPATH . WPINC . '/category.php' ); 177 require_once( ABSPATH . WPINC . '/class-walker-category.php' ); 178 require_once( ABSPATH . WPINC . '/class-walker-category-dropdown.php' ); 179 require_once( ABSPATH . WPINC . '/category-template.php' ); 180 require_once( ABSPATH . WPINC . '/comment.php' ); 181 require_once( ABSPATH . WPINC . '/class-wp-comment.php' ); 182 require_once( ABSPATH . WPINC . '/class-wp-comment-query.php' ); 183 require_once( ABSPATH . WPINC . '/class-walker-comment.php' ); 184 require_once( ABSPATH . WPINC . '/comment-template.php' ); 185 require_once( ABSPATH . WPINC . '/rewrite.php' ); 186 require_once( ABSPATH . WPINC . '/class-wp-rewrite.php' ); 187 require_once( ABSPATH . WPINC . '/feed.php' ); 188 require_once( ABSPATH . WPINC . '/bookmark.php' ); 189 require_once( ABSPATH . WPINC . '/bookmark-template.php' ); 190 require_once( ABSPATH . WPINC . '/kses.php' ); 191 require_once( ABSPATH . WPINC . '/cron.php' ); 192 require_once( ABSPATH . WPINC . '/deprecated.php' ); 193 require_once( ABSPATH . WPINC . '/script-loader.php' ); 194 require_once( ABSPATH . WPINC . '/taxonomy.php' ); 195 require_once( ABSPATH . WPINC . '/class-wp-taxonomy.php' ); 196 require_once( ABSPATH . WPINC . '/class-wp-term.php' ); 197 require_once( ABSPATH . WPINC . '/class-wp-term-query.php' ); 198 require_once( ABSPATH . WPINC . '/class-wp-tax-query.php' ); 199 require_once( ABSPATH . WPINC . '/update.php' ); 200 require_once( ABSPATH . WPINC . '/canonical.php' ); 201 require_once( ABSPATH . WPINC . '/shortcodes.php' ); 202 require_once( ABSPATH . WPINC . '/embed.php' ); 203 require_once( ABSPATH . WPINC . '/class-wp-embed.php' ); 204 require_once( ABSPATH . WPINC . '/class-oembed.php' ); 205 require_once( ABSPATH . WPINC . '/class-wp-oembed-controller.php' ); 206 require_once( ABSPATH . WPINC . '/media.php' ); 207 require_once( ABSPATH . WPINC . '/http.php' ); 208 require_once( ABSPATH . WPINC . '/class-http.php' ); 209 require_once( ABSPATH . WPINC . '/class-wp-http-streams.php' ); 210 require_once( ABSPATH . WPINC . '/class-wp-http-curl.php' ); 211 require_once( ABSPATH . WPINC . '/class-wp-http-proxy.php' ); 212 require_once( ABSPATH . WPINC . '/class-wp-http-cookie.php' ); 213 require_once( ABSPATH . WPINC . '/class-wp-http-encoding.php' ); 214 require_once( ABSPATH . WPINC . '/class-wp-http-response.php' ); 215 require_once( ABSPATH . WPINC . '/class-wp-http-requests-response.php' ); 216 require_once( ABSPATH . WPINC . '/class-wp-http-requests-hooks.php' ); 217 require_once( ABSPATH . WPINC . '/widgets.php' ); 218 require_once( ABSPATH . WPINC . '/class-wp-widget.php' ); 219 require_once( ABSPATH . WPINC . '/class-wp-widget-factory.php' ); 220 require_once( ABSPATH . WPINC . '/nav-menu.php' ); 221 require_once( ABSPATH . WPINC . '/nav-menu-template.php' ); 222 require_once( ABSPATH . WPINC . '/admin-bar.php' ); 223 require_once( ABSPATH . WPINC . '/rest-api.php' ); 224 require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' ); 225 require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' ); 226 require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' ); 227 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php' ); 228 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php' ); 229 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php' ); 230 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php' ); 231 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php' ); 232 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php' ); 233 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php' ); 234 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php' ); 235 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php' ); 236 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php' ); 237 require_once( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php' ); 238 require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php' ); 239 require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php' ); 240 require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php' ); 241 require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php' ); 242 require_once( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php' ); 243 243 244 244 $GLOBALS['wp_embed'] = new WP_Embed(); 245 245 246 246 // Load multisite-specific files. 247 247 if ( 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' ); 251 251 } 252 252 253 253 // Define constants that rely on the API to obtain the default value. … … wp_cookie_constants(); 289 289 wp_ssl_constants(); 290 290 291 291 // Create common globals. 292 require ( ABSPATH . WPINC . '/vars.php' );292 require_once( ABSPATH . WPINC . '/vars.php' ); 293 293 294 294 // Make taxonomies and posts available to plugins and themes. 295 295 // @plugin authors: warning: these get registered again on the init hook. … … foreach ( wp_get_active_and_valid_plugins() as $plugin ) { 309 309 unset( $plugin ); 310 310 311 311 // Load pluggable functions. 312 require ( ABSPATH . WPINC . '/pluggable.php' );313 require ( ABSPATH . WPINC . '/pluggable-deprecated.php' );312 require_once( ABSPATH . WPINC . '/pluggable.php' ); 313 require_once( ABSPATH . WPINC . '/pluggable-deprecated.php' ); 314 314 315 315 // Set internal encoding. 316 316 wp_set_internal_encoding(); … … load_default_textdomain(); 407 407 $locale = get_locale(); 408 408 $locale_file = WP_LANG_DIR . "/$locale.php"; 409 409 if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) { 410 require ( $locale_file );410 require_once( $locale_file ); 411 411 } 412 412 unset( $locale_file ); 413 413 … … do_action( 'init' ); 465 465 // Check site status 466 466 if ( is_multisite() ) { 467 467 if ( true !== ( $file = ms_site_check() ) ) { 468 require ( $file );468 require_once( $file ); 469 469 die(); 470 470 } 471 471 unset( $file ); -
src/wp-signup.php
diff --git a/src/wp-signup.php b/src/wp-signup.php index 92b6a21..df957c3 100644
a b 1 1 <?php 2 2 3 3 /** Sets up the WordPress Environment. */ 4 require ( dirname( __FILE__ ) . '/wp-load.php' );4 require_once( dirname( __FILE__ ) . '/wp-load.php' ); 5 5 6 6 add_action( 'wp_head', 'wp_no_robots' ); 7 7 8 require ( dirname( __FILE__ ) . '/wp-blog-header.php' );8 require_once( dirname( __FILE__ ) . '/wp-blog-header.php' ); 9 9 10 10 if ( is_array( get_site_option( 'illegal_names' ) ) && isset( $_GET['new'] ) && in_array( $_GET['new'], get_site_option( 'illegal_names' ) ) ) { 11 11 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 { 70 70 // Nasty hack! In the future it would better to leverage do_feed( 'atom' ). 71 71 global $post; 72 72 try { 73 @require ( ABSPATH . 'wp-includes/feed-atom.php' );73 @require_once( ABSPATH . 'wp-includes/feed-atom.php' ); 74 74 $out = ob_get_clean(); 75 75 } catch ( Exception $e ) { 76 76 $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 { 79 79 // Nasty hack! In the future it would better to leverage do_feed( 'rss2' ). 80 80 global $post; 81 81 try { 82 @require ( ABSPATH . 'wp-includes/feed-rss2.php' );82 @require_once( ABSPATH . 'wp-includes/feed-rss2.php' ); 83 83 $out = ob_get_clean(); 84 84 } catch ( Exception $e ) { 85 85 $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' ),1 var path = require_once( 'path' ), 2 2 SOURCE_DIR = 'src/', 3 3 mediaConfig = {}, 4 4 mediaBuilds = [ 'audiovideo', 'grid', 'models', 'views' ], 5 webpack = require ( 'webpack' );5 webpack = require_once( 'webpack' ); 6 6 7 7 8 8 mediaBuilds.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' ),1 var path = require_once( 'path' ), 2 2 SOURCE_DIR = 'src/', 3 3 mediaConfig = {}, 4 4 mediaBuilds = [ 'audiovideo', 'grid', 'models', 'views' ], 5 webpack = require ( 'webpack' );5 webpack = require_once( 'webpack' ); 6 6 7 7 8 8 mediaBuilds.forEach( function ( build ) {