@@ -575,4 +575,4 @@ foreach ( $theme_sidebars as $sidebar => $registered_sidebar ) {
* @since 2.2.0
*/
do_action( 'sidebar_admin_page' );
-require_once( ABSPATH . 'wp-admin/admin-footer.php' );
+require_once ABSPATH . 'wp-admin/admin-footer.php';
diff --git a/wp-blog-header.php b/wp-blog-header.php
index a8b1efc7b5..91e3b9daf4 100644
--- a/wp-blog-header.php
+++ b/wp-blog-header.php
@@ -10,12 +10,12 @@ if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
- require_once( dirname( __FILE__ ) . '/wp-load.php' );
+ require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
- require_once( ABSPATH . WPINC . '/template-loader.php' );
+ require_once ABSPATH . WPINC . '/template-loader.php';
}
diff --git a/wp-comments-post.php b/wp-comments-post.php
index 86c758cc0a..ebf658603d 100644
--- a/wp-comments-post.php
+++ b/wp-comments-post.php
@@ -18,7 +18,7 @@ if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
}
/** Sets up the WordPress Environment. */
-require( dirname( __FILE__ ) . '/wp-load.php' );
+require __DIR__ . '/wp-load.php';
nocache_headers();
diff --git a/wp-config-sample.php b/wp-config-sample.php
index 1a4e59243b..bb04ed6986 100644
--- a/wp-config-sample.php
+++ b/wp-config-sample.php
@@ -83,8 +83,8 @@ define( 'WP_DEBUG', false );
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
- define( 'ABSPATH', dirname( __FILE__ ) . '/' );
+ define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
-require_once( ABSPATH . 'wp-settings.php' );
+require_once ABSPATH . 'wp-settings.php';
diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php
index 7835bbd1a2..2e5215e7a3 100644
--- a/wp-content/themes/twentyeleven/functions.php
+++ b/wp-content/themes/twentyeleven/functions.php
@@ -132,10 +132,10 @@ if ( ! function_exists( 'twentyeleven_setup' ) ) :
);
// Load up our theme options page and related code.
- require( get_template_directory() . '/inc/theme-options.php' );
+ require get_template_directory() . '/inc/theme-options.php';
// Grab Twenty Eleven's Ephemera widget.
- require( get_template_directory() . '/inc/widgets.php' );
+ require get_template_directory() . '/inc/widgets.php';
// Add default posts and comments RSS feed links to .
add_theme_support( 'automatic-feed-links' );
diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php
index 7e5cb84c0b..1ef1b570a7 100644
--- a/wp-content/themes/twentyseventeen/functions.php
+++ b/wp-content/themes/twentyseventeen/functions.php
@@ -425,7 +425,7 @@ function twentyseventeen_colors_css_wrap() {
return;
}
- require_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) );
+ require_once get_parent_theme_file_path( '/inc/color-patterns.php' );
$hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) );
$customize_preview_data_hue = '';
diff --git a/wp-content/themes/twentyseventeen/inc/icon-functions.php b/wp-content/themes/twentyseventeen/inc/icon-functions.php
index c906762b58..11a1b0be16 100644
--- a/wp-content/themes/twentyseventeen/inc/icon-functions.php
+++ b/wp-content/themes/twentyseventeen/inc/icon-functions.php
@@ -16,7 +16,7 @@ function twentyseventeen_include_svg_icons() {
// If it exists, include it.
if ( file_exists( $svg_icons ) ) {
- require_once( $svg_icons );
+ require_once $svg_icons;
}
}
add_action( 'wp_footer', 'twentyseventeen_include_svg_icons', 9999 );
diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php
index 86c5f1130f..ebb1e709d6 100644
--- a/wp-content/themes/twentytwelve/functions.php
+++ b/wp-content/themes/twentytwelve/functions.php
@@ -130,7 +130,7 @@ add_action( 'after_setup_theme', 'twentytwelve_setup' );
/**
* Add support for a custom header image.
*/
-require( get_template_directory() . '/inc/custom-header.php' );
+require get_template_directory() . '/inc/custom-header.php';
/**
* Return the Google font stylesheet URL if available.
diff --git a/wp-cron.php b/wp-cron.php
index 561ae96559..333625c069 100644
--- a/wp-cron.php
+++ b/wp-cron.php
@@ -41,7 +41,7 @@ define( 'DOING_CRON', true );
if ( ! defined( 'ABSPATH' ) ) {
/** Set up WordPress environment */
- require_once( dirname( __FILE__ ) . '/wp-load.php' );
+ require_once __DIR__ . '/wp-load.php';
}
/**
diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php
index 2f52797141..8799583eb7 100644
--- a/wp-includes/admin-bar.php
+++ b/wp-includes/admin-bar.php
@@ -28,7 +28,7 @@ function _wp_admin_bar_init() {
}
/* Load the admin bar class code ready for instantiation */
- require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
+ require_once ABSPATH . WPINC . '/class-wp-admin-bar.php';
/* Instantiate the admin bar */
diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php
index 706e5e320a..0cd72df20e 100644
--- a/wp-includes/class-IXR.php
+++ b/wp-includes/class-IXR.php
@@ -39,22 +39,22 @@
* @license http://www.opensource.org/licenses/bsd-license.php BSD
*/
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-server.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-server.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-base64.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-base64.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-client.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-client.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-date.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-date.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-error.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-error.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-message.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-message.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-request.php' );
+require_once ABSPATH . WPINC . '/IXR/class-IXR-request.php';
-require_once( ABSPATH . WPINC . '/IXR/class-IXR-value.php' );
\ No newline at end of file
+require_once ABSPATH . WPINC . '/IXR/class-IXR-value.php';
\ No newline at end of file
diff --git a/wp-includes/class-feed.php b/wp-includes/class-feed.php
index 5236170450..9a4772dc75 100644
--- a/wp-includes/class-feed.php
+++ b/wp-includes/class-feed.php
@@ -10,10 +10,10 @@
_deprecated_file( basename( __FILE__ ), '4.7.0', 'fetch_feed()' );
if ( ! class_exists( 'SimplePie', false ) ) {
- require_once( ABSPATH . WPINC . '/class-simplepie.php' );
+ require_once ABSPATH . WPINC . '/class-simplepie.php';
}
-require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
-require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
-require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
-require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
+require_once ABSPATH . WPINC . '/class-wp-feed-cache.php';
+require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php';
+require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php';
+require_once ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php';
diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php
index 4fe9d14de0..3db499f6c7 100644
--- a/wp-includes/class-http.php
+++ b/wp-includes/class-http.php
@@ -8,7 +8,7 @@
*/
if ( ! class_exists( 'Requests' ) ) {
- require( ABSPATH . WPINC . '/class-requests.php' );
+ require ABSPATH . WPINC . '/class-requests.php';
Requests::register_autoloader();
Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php
index 3b39e97df8..747fffa77a 100644
--- a/wp-includes/class-oembed.php
+++ b/wp-includes/class-oembed.php
@@ -12,4 +12,4 @@
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-includes/class-wp-oembed.php' );
/** WP_oEmbed class */
-require_once( ABSPATH . 'wp-includes/class-wp-oembed.php' );
+require_once ABSPATH . 'wp-includes/class-wp-oembed.php';
diff --git a/wp-includes/class-phpmailer.php b/wp-includes/class-phpmailer.php
index 7aaa850532..30754a4e6c 100644
--- a/wp-includes/class-phpmailer.php
+++ b/wp-includes/class-phpmailer.php
@@ -1534,7 +1534,7 @@ class PHPMailer
public function getSMTPInstance()
{
if (!is_object($this->smtp)) {
- require_once( 'class-smtp.php' );
+ require_once 'class-smtp.php';
$this->smtp = new SMTP;
}
return $this->smtp;
diff --git a/wp-includes/class-simplepie.php b/wp-includes/class-simplepie.php
index 6110413767..348657f5d9 100644
--- a/wp-includes/class-simplepie.php
+++ b/wp-includes/class-simplepie.php
@@ -26,7 +26,7 @@ function wp_simplepie_autoload( $class ) {
return;
$file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
- include( $file );
+ include $file;
}
/**
diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php
index 994ff90805..da6333183b 100644
--- a/wp-includes/class-wp-customize-control.php
+++ b/wp-includes/class-wp-customize-control.php
@@ -693,100 +693,100 @@ class WP_Customize_Control {
/**
* WP_Customize_Color_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php';
/**
* WP_Customize_Media_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php';
/**
* WP_Customize_Upload_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php';
/**
* WP_Customize_Image_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php';
/**
* WP_Customize_Background_Image_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php';
/**
* WP_Customize_Background_Position_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php';
/**
* WP_Customize_Cropped_Image_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php';
/**
* WP_Customize_Site_Icon_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php';
/**
* WP_Customize_Header_Image_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php';
/**
* WP_Customize_Theme_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php';
/**
* WP_Widget_Area_Customize_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php';
/**
* WP_Widget_Form_Customize_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php';
/**
* WP_Customize_Nav_Menu_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php';
/**
* WP_Customize_Nav_Menu_Item_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php';
/**
* WP_Customize_Nav_Menu_Location_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php';
/**
* WP_Customize_Nav_Menu_Name_Control class.
*
* As this file is deprecated, it will trigger a deprecation notice if instantiated. In a subsequent
- * release, the require_once() here will be removed and _deprecated_file() will be called if file is
+ * release, the require_once here will be removed and _deprecated_file() will be called if file is
* required at all.
*
* @deprecated 4.9.0 This file is no longer used due to new menu creation UX.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php';
/**
* WP_Customize_Nav_Menu_Locations_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php';
/**
* WP_Customize_Nav_Menu_Auto_Add_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php';
/**
* WP_Customize_Date_Time_Control class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php';
diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php
index eb99381911..cdc5bd6b7e 100644
--- a/wp-includes/class-wp-customize-manager.php
+++ b/wp-includes/class-wp-customize-manager.php
@@ -294,44 +294,44 @@ final class WP_Customize_Manager {
}
}
- require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' );
- require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' );
- require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' );
- require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' );
+ require_once ABSPATH . WPINC . '/class-wp-customize-setting.php';
+ require_once ABSPATH . WPINC . '/class-wp-customize-panel.php';
+ require_once ABSPATH . WPINC . '/class-wp-customize-section.php';
+ require_once ABSPATH . WPINC . '/class-wp-customize-control.php';
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-code-editor-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-code-editor-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php';
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php';
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-panel.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-panel.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php';
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php';
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php';
/**
* Filters the core Customizer components to load.
@@ -350,16 +350,16 @@ final class WP_Customize_Manager {
*/
$components = apply_filters( 'customize_loaded_components', $this->components, $this );
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php';
$this->selective_refresh = new WP_Customize_Selective_Refresh( $this );
if ( in_array( 'widgets', $components, true ) ) {
- require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
+ require_once ABSPATH . WPINC . '/class-wp-customize-widgets.php';
$this->widgets = new WP_Customize_Widgets( $this );
}
if ( in_array( 'nav_menus', $components, true ) ) {
- require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );
+ require_once ABSPATH . WPINC . '/class-wp-customize-nav-menus.php';
$this->nav_menus = new WP_Customize_Nav_Menus( $this );
}
@@ -1641,9 +1641,9 @@ final class WP_Customize_Manager {
}
// Such is The WordPress Way.
- require_once( ABSPATH . 'wp-admin/includes/file.php' );
- require_once( ABSPATH . 'wp-admin/includes/media.php' );
- require_once( ABSPATH . 'wp-admin/includes/image.php' );
+ require_once ABSPATH . 'wp-admin/includes/file.php';
+ require_once ABSPATH . 'wp-admin/includes/media.php';
+ require_once ABSPATH . 'wp-admin/includes/image.php';
foreach ( $attachments as $symbol => $attachment ) {
diff --git a/wp-includes/class-wp-customize-panel.php b/wp-includes/class-wp-customize-panel.php
index 82eda3a0f6..185908bea8 100644
--- a/wp-includes/class-wp-customize-panel.php
+++ b/wp-includes/class-wp-customize-panel.php
@@ -379,4 +379,4 @@ class WP_Customize_Panel {
}
/** WP_Customize_Nav_Menus_Panel class */
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php';
diff --git a/wp-includes/class-wp-customize-section.php b/wp-includes/class-wp-customize-section.php
index 57cc8d3bff..47ff0910ba 100644
--- a/wp-includes/class-wp-customize-section.php
+++ b/wp-includes/class-wp-customize-section.php
@@ -376,10 +376,10 @@ class WP_Customize_Section {
}
/** WP_Customize_Themes_Section class */
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php';
/** WP_Customize_Sidebar_Section class */
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php';
/** WP_Customize_Nav_Menu_Section class */
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php';
diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php
index c98c28a44b..a457709fcf 100644
--- a/wp-includes/class-wp-customize-setting.php
+++ b/wp-includes/class-wp-customize-setting.php
@@ -943,24 +943,24 @@ class WP_Customize_Setting {
/**
* WP_Customize_Filter_Setting class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php';
/**
* WP_Customize_Header_Image_Setting class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php';
/**
* WP_Customize_Background_Image_Setting class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php';
/**
* WP_Customize_Nav_Menu_Item_Setting class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php';
/**
* WP_Customize_Nav_Menu_Setting class.
*/
-require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
+require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php';
diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php
index d61a459473..0913621f3c 100644
--- a/wp-includes/class-wp-editor.php
+++ b/wp-includes/class-wp-editor.php
@@ -218,7 +218,7 @@ final class _WP_Editors {
self::$has_medialib = true;
if ( ! function_exists( 'media_buttons' ) ) {
- include( ABSPATH . 'wp-admin/includes/media.php' );
+ require ABSPATH . 'wp-admin/includes/media.php';
}
echo '
';
@@ -489,7 +489,7 @@ final class _WP_Editors {
if ( ! empty( $mce_external_languages ) ) {
foreach ( $mce_external_languages as $name => $path ) {
if ( @is_file( $path ) && @is_readable( $path ) ) {
- include_once( $path );
+ include_once $path;
$ext_plugins .= $strings . "\n";
$loaded_langs[] = $name;
}
diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index 0ad73cad98..bb148478ce 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -1523,11 +1523,11 @@ function comments_template( $file = '/comments.php', $separate_comments = false
*/
$include = apply_filters( 'comments_template', $theme_template );
if ( file_exists( $include ) ) {
- require( $include );
+ require $include;
} elseif ( file_exists( TEMPLATEPATH . $file ) ) {
- require( TEMPLATEPATH . $file );
+ require TEMPLATEPATH . $file;
} else { // Backward compat code will be removed in a future release.
- require( ABSPATH . WPINC . '/theme-compat/comments.php' );
+ require ABSPATH . WPINC . '/theme-compat/comments.php';
}
}
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index 924f6e7f70..a493802fe6 100644
--- a/wp-includes/comment.php
+++ b/wp-includes/comment.php
@@ -2801,8 +2801,8 @@ function generic_ping( $post_id = 0 ) {
* @param int|WP_Post $post_id Post Object or ID.
*/
function pingback( $content, $post_id ) {
- include_once( ABSPATH . WPINC . '/class-IXR.php' );
- include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
+ include_once ABSPATH . WPINC . '/class-IXR.php';
+ include_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';
// Original code by Mort (http://mort.mine.nu:8080).
$post_links = array();
@@ -2963,8 +2963,8 @@ function trackback( $trackback_url, $title, $excerpt, $ID ) {
* @param string $path Path to send the ping.
*/
function weblog_ping( $server = '', $path = '' ) {
- include_once( ABSPATH . WPINC . '/class-IXR.php' );
- include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );
+ include_once ABSPATH . WPINC . '/class-IXR.php';
+ include_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';
// Using a timeout of 3 seconds should be enough to cover slow servers.
$client = new WP_HTTP_IXR_Client( $server, ( ( ! strlen( trim( $path ) ) || ( '/' == $path ) ) ? false : $path ) );
diff --git a/wp-includes/cron.php b/wp-includes/cron.php
index d1c7849063..e6957c35c3 100644
--- a/wp-includes/cron.php
+++ b/wp-includes/cron.php
@@ -682,7 +682,7 @@ function spawn_cron( $gmt_time = 0 ) {
wp_ob_end_flush_all();
flush();
- include_once( ABSPATH . 'wp-cron.php' );
+ include_once ABSPATH . 'wp-cron.php';
return true;
}
diff --git a/wp-includes/customize/class-wp-customize-header-image-setting.php b/wp-includes/customize/class-wp-customize-header-image-setting.php
index 8aef690d93..e8328a991d 100644
--- a/wp-includes/customize/class-wp-customize-header-image-setting.php
+++ b/wp-includes/customize/class-wp-customize-header-image-setting.php
@@ -31,7 +31,7 @@ final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting {
// If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin().
if ( empty( $custom_image_header ) ) {
- require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
$args = get_theme_support( 'custom-header' );
$admin_head_callback = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] : null;
$admin_preview_callback = isset( $args[0]['admin-preview-callback'] ) ? $args[0]['admin-preview-callback'] : null;
diff --git a/wp-includes/customize/class-wp-customize-selective-refresh.php b/wp-includes/customize/class-wp-customize-selective-refresh.php
index 0b5c446131..be524bea19 100644
--- a/wp-includes/customize/class-wp-customize-selective-refresh.php
+++ b/wp-includes/customize/class-wp-customize-selective-refresh.php
@@ -62,7 +62,7 @@ final class WP_Customize_Selective_Refresh {
*/
public function __construct( WP_Customize_Manager $manager ) {
$this->manager = $manager;
- require_once( ABSPATH . WPINC . '/customize/class-wp-customize-partial.php' );
+ require_once ABSPATH . WPINC . '/customize/class-wp-customize-partial.php';
add_action( 'customize_preview_init', array( $this, 'init_preview' ) );
}
diff --git a/wp-includes/date.php b/wp-includes/date.php
index 3536e535b0..26ffcb4513 100644
--- a/wp-includes/date.php
+++ b/wp-includes/date.php
@@ -11,4 +11,4 @@
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-includes/class-wp-date-query.php' );
/** WP_Date_Query class */
-require_once( ABSPATH . 'wp-includes/class-wp-date-query.php' );
+require_once ABSPATH . 'wp-includes/class-wp-date-query.php';
diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php
index 767002b642..173573a3dd 100644
--- a/wp-includes/default-widgets.php
+++ b/wp-includes/default-widgets.php
@@ -8,58 +8,58 @@
*/
/** WP_Widget_Pages class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-pages.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-pages.php';
/** WP_Widget_Links class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-links.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-links.php';
/** WP_Widget_Search class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-search.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-search.php';
/** WP_Widget_Archives class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php';
/** WP_Widget_Media class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media.php';
/** WP_Widget_Media_Audio class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-audio.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-audio.php';
/** WP_Widget_Media_Image class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-image.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-image.php';
/** WP_Widget_Media_Video class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-video.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-video.php';
/** WP_Widget_Media_Gallery class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-gallery.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-gallery.php';
/** WP_Widget_Meta class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php';
/** WP_Widget_Calendar class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-calendar.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-calendar.php';
/** WP_Widget_Text class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-text.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-text.php';
/** WP_Widget_Categories class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-categories.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-categories.php';
/** WP_Widget_Recent_Posts class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-posts.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-recent-posts.php';
/** WP_Widget_Recent_Comments class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-comments.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-recent-comments.php';
/** WP_Widget_RSS class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-rss.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-rss.php';
/** WP_Widget_Tag_Cloud class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-tag-cloud.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-tag-cloud.php';
/** WP_Nav_Menu_Widget class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-nav-menu-widget.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-nav-menu-widget.php';
/** WP_Widget_Custom_HTML class */
-require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-custom-html.php' );
+require_once ABSPATH . WPINC . '/widgets/class-wp-widget-custom-html.php';
diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php
index d8d32bb449..7804c8efcb 100644
--- a/wp-includes/deprecated.php
+++ b/wp-includes/deprecated.php
@@ -3926,7 +3926,7 @@ function get_shortcut_link() {
function wp_ajax_press_this_save_post() {
_deprecated_function( __FUNCTION__, '4.9.0' );
if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) {
- include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' );
+ include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
$wp_press_this = new WP_Press_This_Plugin();
$wp_press_this->save_post();
} else {
@@ -3943,7 +3943,7 @@ function wp_ajax_press_this_save_post() {
function wp_ajax_press_this_add_category() {
_deprecated_function( __FUNCTION__, '4.9.0' );
if ( is_plugin_active( 'press-this/press-this-plugin.php' ) ) {
- include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' );
+ include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php';
$wp_press_this = new WP_Press_This_Plugin();
$wp_press_this->add_category();
} else {
diff --git a/wp-includes/embed-template.php b/wp-includes/embed-template.php
index fb20991584..88b94bf5f7 100644
--- a/wp-includes/embed-template.php
+++ b/wp-includes/embed-template.php
@@ -10,4 +10,4 @@
_deprecated_file( basename( __FILE__ ), '4.5.0', 'wp-includes/theme-compat/embed.php' );
-include( ABSPATH . WPINC . '/theme-compat/embed.php' );
+require ABSPATH . WPINC . '/theme-compat/embed.php';
diff --git a/wp-includes/feed.php b/wp-includes/feed.php
index 813aea29ae..54beda6d44 100644
--- a/wp-includes/feed.php
+++ b/wp-includes/feed.php
@@ -751,13 +751,13 @@ function feed_content_type( $type = '' ) {
*/
function fetch_feed( $url ) {
if ( ! class_exists( 'SimplePie', false ) ) {
- require_once( ABSPATH . WPINC . '/class-simplepie.php' );
+ require_once ABSPATH . WPINC . '/class-simplepie.php';
}
- require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
- require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
- require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
- require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
+ require_once ABSPATH . WPINC . '/class-wp-feed-cache.php';
+ require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php';
+ require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php';
+ require_once ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php';
$feed = new SimplePie();
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index 2da63160fd..a48a09a03b 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -5,7 +5,7 @@
* @package WordPress
*/
-require( ABSPATH . WPINC . '/option.php' );
+require ABSPATH . WPINC . '/option.php';
/**
* Convert given MySQL date string into a different format.
@@ -835,7 +835,7 @@ function do_enclose( $content = null, $post ) {
global $wpdb;
// @todo Tidy this code and make the debug code optional.
- include_once( ABSPATH . WPINC . '/class-IXR.php' );
+ include_once ABSPATH . WPINC . '/class-IXR.php';
$post = get_post( $post );
if ( ! $post ) {
@@ -4572,7 +4572,7 @@ function wp_maybe_load_widgets() {
return;
}
- require_once( ABSPATH . WPINC . '/default-widgets.php' );
+ require_once ABSPATH . WPINC . '/default-widgets.php';
add_action( '_admin_menu', 'wp_widgets_add_menu' );
}
@@ -4634,7 +4634,7 @@ function dead_db() {
// Load custom DB error template, if present.
if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
- require_once( WP_CONTENT_DIR . '/db-error.php' );
+ require_once WP_CONTENT_DIR . '/db-error.php';
die();
}
@@ -7259,7 +7259,7 @@ function wp_privacy_delete_old_export_files() {
return;
}
- require_once( ABSPATH . 'wp-admin/includes/file.php' );
+ require_once ABSPATH . 'wp-admin/includes/file.php';
$export_files = list_files( $exports_dir, 100, array( 'index.html' ) );
/**
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 344d9276fb..0e821ac744 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -255,7 +255,7 @@ function get_search_form( $args = array() ) {
$search_form_template = locate_template( 'searchform.php' );
if ( '' != $search_form_template ) {
ob_start();
- require( $search_form_template );
+ require $search_form_template;
$form = ob_get_clean();
} else {
// Build a string containing an aria-label to use for the search form.
@@ -3408,7 +3408,7 @@ function wp_default_editor() {
*/
function wp_editor( $content, $editor_id, $settings = array() ) {
if ( ! class_exists( '_WP_Editors', false ) ) {
- require( ABSPATH . WPINC . '/class-wp-editor.php' );
+ require ABSPATH . WPINC . '/class-wp-editor.php';
}
_WP_Editors::editor( $content, $editor_id, $settings );
}
@@ -3424,7 +3424,7 @@ function wp_editor( $content, $editor_id, $settings = array() ) {
*/
function wp_enqueue_editor() {
if ( ! class_exists( '_WP_Editors', false ) ) {
- require( ABSPATH . WPINC . '/class-wp-editor.php' );
+ require ABSPATH . WPINC . '/class-wp-editor.php';
}
_WP_Editors::enqueue_default_editor();
diff --git a/wp-includes/js/tinymce/wp-tinymce.php b/wp-includes/js/tinymce/wp-tinymce.php
index 213e9327b5..3b51ea266c 100644
--- a/wp-includes/js/tinymce/wp-tinymce.php
+++ b/wp-includes/js/tinymce/wp-tinymce.php
@@ -11,7 +11,7 @@
*/
error_reporting( 0 );
-$basepath = dirname( __FILE__ );
+$basepath = __DIR__;
function get_file( $path ) {
diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php
index 77099ffe6a..ef7c4b34e6 100644
--- a/wp-includes/l10n.php
+++ b/wp-includes/l10n.php
@@ -1462,7 +1462,7 @@ function wp_dropdown_languages( $args = array() ) {
$translations = $parsed_args['translations'];
if ( empty( $translations ) ) {
- require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
+ require_once ABSPATH . 'wp-admin/includes/translation-install.php';
$translations = wp_get_available_translations();
}
diff --git a/wp-includes/load.php b/wp-includes/load.php
index 3cd95a3d14..b661762417 100644
--- a/wp-includes/load.php
+++ b/wp-includes/load.php
@@ -139,7 +139,7 @@ function wp_check_php_mysql_versions() {
}
if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
- require_once( ABSPATH . WPINC . '/functions.php' );
+ require_once ABSPATH . WPINC . '/functions.php';
wp_load_translations_early();
$args = array(
'exit' => false,
@@ -192,7 +192,7 @@ function wp_maintenance() {
global $upgrading;
- include( ABSPATH . '.maintenance' );
+ require ABSPATH . '.maintenance';
// If the $upgrading timestamp is older than 10 minutes, don't die.
if ( ( time() - $upgrading ) >= 600 ) {
return;
@@ -216,11 +216,11 @@ function wp_maintenance() {
}
if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) {
- require_once( WP_CONTENT_DIR . '/maintenance.php' );
+ require_once WP_CONTENT_DIR . '/maintenance.php';
die();
}
- require_once( ABSPATH . WPINC . '/functions.php' );
+ require_once ABSPATH . WPINC . '/functions.php';
wp_load_translations_early();
header( 'Retry-After: 600' );
@@ -409,9 +409,9 @@ function wp_set_lang_dir() {
function require_wp_db() {
global $wpdb;
- require_once( ABSPATH . WPINC . '/wp-db.php' );
+ require_once ABSPATH . WPINC . '/wp-db.php';
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
- require_once( WP_CONTENT_DIR . '/db.php' );
+ require_once WP_CONTENT_DIR . '/db.php';
}
if ( isset( $wpdb ) ) {
@@ -544,7 +544,7 @@ function wp_start_object_cache() {
* that an external object cache is being used.
*/
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
- require_once( WP_CONTENT_DIR . '/object-cache.php' );
+ require_once WP_CONTENT_DIR . '/object-cache.php';
if ( function_exists( 'wp_cache_init' ) ) {
wp_using_ext_object_cache( true );
}
@@ -566,7 +566,7 @@ function wp_start_object_cache() {
}
if ( ! wp_using_ext_object_cache() ) {
- require_once( ABSPATH . WPINC . '/cache.php' );
+ require_once ABSPATH . WPINC . '/cache.php';
}
/*
@@ -606,8 +606,8 @@ function wp_not_installed() {
} elseif ( ! is_blog_installed() && ! wp_installing() ) {
nocache_headers();
- require( ABSPATH . WPINC . '/kses.php' );
- require( ABSPATH . WPINC . '/pluggable.php' );
+ require ABSPATH . WPINC . '/kses.php';
+ require ABSPATH . WPINC . '/pluggable.php';
$link = wp_guess_url() . '/wp-admin/install.php';
diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php
index 184953b4a8..6bfbbc0c6d 100644
--- a/wp-includes/ms-blogs.php
+++ b/wp-includes/ms-blogs.php
@@ -8,8 +8,8 @@
* @since MU (3.0.0)
*/
-require_once( ABSPATH . WPINC . '/ms-site.php' );
-require_once( ABSPATH . WPINC . '/ms-network.php' );
+require_once ABSPATH . WPINC . '/ms-site.php';
+require_once ABSPATH . WPINC . '/ms-network.php';
/**
* Update the last_updated field for the current site.
diff --git a/wp-includes/ms-deprecated.php b/wp-includes/ms-deprecated.php
index b7fa528e5c..cd30478811 100644
--- a/wp-includes/ms-deprecated.php
+++ b/wp-includes/ms-deprecated.php
@@ -610,7 +610,7 @@ function install_blog( $blog_id, $blog_title = '' ) {
// Cast for security.
$blog_id = (int) $blog_id;
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
$suppress = $wpdb->suppress_errors();
if ( $wpdb->get_results( "DESCRIBE {$wpdb->posts}" ) ) {
@@ -677,7 +677,7 @@ function install_blog_defaults( $blog_id, $user_id ) {
_deprecated_function( __FUNCTION__, 'MU' );
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
$suppress = $wpdb->suppress_errors();
diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php
index 260ece311c..fa41af5e31 100644
--- a/wp-includes/ms-files.php
+++ b/wp-includes/ms-files.php
@@ -9,7 +9,7 @@
*/
define( 'SHORTINIT', true );
-require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
+require_once dirname( __DIR__ ) . '/wp-load.php';
if ( ! is_multisite() ) {
die( 'Multisite support not enabled' );
diff --git a/wp-includes/ms-settings.php b/wp-includes/ms-settings.php
index 1a9874ad72..1aff91ac66 100644
--- a/wp-includes/ms-settings.php
+++ b/wp-includes/ms-settings.php
@@ -32,19 +32,19 @@
global $current_site, $current_blog, $domain, $path, $site_id, $public;
/** WP_Network class */
-require_once( ABSPATH . WPINC . '/class-wp-network.php' );
+require_once ABSPATH . WPINC . '/class-wp-network.php';
/** WP_Site class */
-require_once( ABSPATH . WPINC . '/class-wp-site.php' );
+require_once ABSPATH . WPINC . '/class-wp-site.php';
/** Multisite loader */
-require_once( ABSPATH . WPINC . '/ms-load.php' );
+require_once ABSPATH . WPINC . '/ms-load.php';
/** Default Multisite constants */
-require_once( ABSPATH . WPINC . '/ms-default-constants.php' );
+require_once ABSPATH . WPINC . '/ms-default-constants.php';
if ( defined( 'SUNRISE' ) ) {
- include_once( WP_CONTENT_DIR . '/sunrise.php' );
+ include_once WP_CONTENT_DIR . '/sunrise.php';
}
/** Check for and define SUBDOMAIN_INSTALL and the deprecated VHOST constant. */
diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php
index 947570a05c..186237430e 100644
--- a/wp-includes/ms-site.php
+++ b/wp-includes/ms-site.php
@@ -717,7 +717,7 @@ function wp_initialize_site( $site_id, array $args = array() ) {
switch_to_blog( $site->id );
}
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
+ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
// Set up the database tables.
make_db_current_silent( 'blog' );
diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
index 3646526d8f..81db29542b 100644
--- a/wp-includes/pluggable.php
+++ b/wp-includes/pluggable.php
@@ -2337,7 +2337,7 @@ if ( ! function_exists( 'wp_hash_password' ) ) :
global $wp_hasher;
if ( empty( $wp_hasher ) ) {
- require_once( ABSPATH . WPINC . '/class-phpass.php' );
+ require_once ABSPATH . WPINC . '/class-phpass.php';
// By default, use the portable hash from phpass.
$wp_hasher = new PasswordHash( 8, true );
}
@@ -2397,7 +2397,7 @@ if ( ! function_exists( 'wp_check_password' ) ) :
// If the stored hash is longer than an MD5,
// presume the new style phpass portable hash.
if ( empty( $wp_hasher ) ) {
- require_once( ABSPATH . WPINC . '/class-phpass.php' );
+ require_once ABSPATH . WPINC . '/class-phpass.php';
// By default, use the portable hash from phpass.
$wp_hasher = new PasswordHash( 8, true );
}
@@ -2761,7 +2761,7 @@ if ( ! function_exists( 'wp_text_diff' ) ) :
$args = wp_parse_args( $args, $defaults );
if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) ) {
- require( ABSPATH . WPINC . '/wp-diff.php' );
+ require ABSPATH . WPINC . '/wp-diff.php';
}
$left_string = normalize_whitespace( $left_string );
diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php
index b893b90929..8e89d7c667 100644
--- a/wp-includes/plugin.php
+++ b/wp-includes/plugin.php
@@ -22,7 +22,7 @@
*/
// Initialize the filter globals.
-require( dirname( __FILE__ ) . '/class-wp-hook.php' );
+require __DIR__ . '/class-wp-hook.php';
/** @var WP_Hook[] $wp_filter */
global $wp_filter, $wp_actions, $wp_current_filter;
diff --git a/wp-includes/pomo/mo.php b/wp-includes/pomo/mo.php
index 623726f942..ed02d0aa0d 100644
--- a/wp-includes/pomo/mo.php
+++ b/wp-includes/pomo/mo.php
@@ -7,8 +7,8 @@
* @subpackage mo
*/
-require_once dirname( __FILE__ ) . '/translations.php';
-require_once dirname( __FILE__ ) . '/streams.php';
+require_once __DIR__ . '/translations.php';
+require_once __DIR__ . '/streams.php';
if ( ! class_exists( 'MO', false ) ) :
class MO extends Gettext_Translations {
diff --git a/wp-includes/pomo/po.php b/wp-includes/pomo/po.php
index 4c2133612e..bcc4ee2860 100644
--- a/wp-includes/pomo/po.php
+++ b/wp-includes/pomo/po.php
@@ -7,7 +7,7 @@
* @subpackage po
*/
-require_once dirname( __FILE__ ) . '/translations.php';
+require_once __DIR__ . '/translations.php';
if ( ! defined( 'PO_MAX_LINE_LEN' ) ) {
define( 'PO_MAX_LINE_LEN', 79 );
diff --git a/wp-includes/pomo/translations.php b/wp-includes/pomo/translations.php
index cb186e841d..7211b52441 100644
--- a/wp-includes/pomo/translations.php
+++ b/wp-includes/pomo/translations.php
@@ -7,8 +7,8 @@
* @subpackage translations
*/
-require_once dirname( __FILE__ ) . '/plural-forms.php';
-require_once dirname( __FILE__ ) . '/entry.php';
+require_once __DIR__ . '/plural-forms.php';
+require_once __DIR__ . '/entry.php';
if ( ! class_exists( 'Translations', false ) ) :
class Translations {
diff --git a/wp-includes/rss-functions.php b/wp-includes/rss-functions.php
index 07b0aefb81..40749db8bf 100644
--- a/wp-includes/rss-functions.php
+++ b/wp-includes/rss-functions.php
@@ -7,4 +7,4 @@
*/
_deprecated_file( basename( __FILE__ ), '2.1.0', WPINC . '/rss.php' );
-require_once( ABSPATH . WPINC . '/rss.php' );
+require_once ABSPATH . WPINC . '/rss.php';
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 668ffee456..02a3091c50 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -17,22 +17,22 @@
*/
/** WordPress Dependency Class */
-require( ABSPATH . WPINC . '/class-wp-dependency.php' );
+require ABSPATH . WPINC . '/class-wp-dependency.php';
/** WordPress Dependencies Class */
-require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
+require ABSPATH . WPINC . '/class.wp-dependencies.php';
/** WordPress Scripts Class */
-require( ABSPATH . WPINC . '/class.wp-scripts.php' );
+require ABSPATH . WPINC . '/class.wp-scripts.php';
/** WordPress Scripts Functions */
-require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
+require ABSPATH . WPINC . '/functions.wp-scripts.php';
/** WordPress Styles Class */
-require( ABSPATH . WPINC . '/class.wp-styles.php' );
+require ABSPATH . WPINC . '/class.wp-styles.php';
/** WordPress Styles Functions */
-require( ABSPATH . WPINC . '/functions.wp-styles.php' );
+require ABSPATH . WPINC . '/functions.wp-styles.php';
/**
* Registers TinyMCE scripts.
@@ -254,7 +254,6 @@ function wp_default_packages_scripts( &$scripts ) {
'html-entities',
'i18n',
'is-shallow-equal',
- 'keyboard-shortcuts',
'keycodes',
'list-reusable-blocks',
'media-utils',
@@ -295,7 +294,7 @@ function wp_default_packages_scripts( &$scripts ) {
continue;
}
- $asset_file = include ABSPATH . WPINC . "/assets/dist/$package$suffix.asset.php";
+ $asset_file = require ABSPATH . WPINC . "/assets/dist/$package$suffix.asset.php";
$dependencies = $asset_file['dependencies'];
// Add dependencies that cannot be detected and generated by build tools.
@@ -596,7 +595,7 @@ function wp_scripts_get_suffix( $type = '' ) {
if ( $suffixes === null ) {
// Include an unmodified $wp_version.
- include( ABSPATH . WPINC . '/version.php' );
+ require ABSPATH . WPINC . '/version.php';
$develop_src = false !== strpos( $wp_version, '-src' );
@@ -1666,7 +1665,7 @@ function wp_default_scripts( &$scripts ) {
*/
function wp_default_styles( &$styles ) {
// Include an unmodified $wp_version.
- include( ABSPATH . WPINC . '/version.php' );
+ require ABSPATH . WPINC . '/version.php';
if ( ! defined( 'SCRIPT_DEBUG' ) ) {
define( 'SCRIPT_DEBUG', false !== strpos( $wp_version, '-src' ) );
@@ -2042,7 +2041,7 @@ function wp_localize_community_events() {
return;
}
- require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php';
$user_id = get_current_user_id();
$saved_location = get_user_option( 'community-events-location', $user_id );
diff --git a/wp-includes/session.php b/wp-includes/session.php
index 8e9918ad4c..df2a042ca6 100644
--- a/wp-includes/session.php
+++ b/wp-includes/session.php
@@ -8,5 +8,5 @@
_deprecated_file( basename( __FILE__ ), '4.7.0' );
-require_once( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
-require_once( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );
+require_once ABSPATH . WPINC . '/class-wp-session-tokens.php';
+require_once ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php';
diff --git a/wp-includes/template-loader.php b/wp-includes/template-loader.php
index 8aa1ebeb67..4234f5572d 100644
--- a/wp-includes/template-loader.php
+++ b/wp-includes/template-loader.php
@@ -48,7 +48,7 @@ if ( is_robots() ) {
do_feed();
return;
} elseif ( is_trackback() ) {
- include( ABSPATH . 'wp-trackback.php' );
+ require ABSPATH . 'wp-trackback.php';
return;
}
@@ -103,7 +103,7 @@ if ( wp_using_themes() ) {
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
- include( $template );
+ include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
diff --git a/wp-includes/template.php b/wp-includes/template.php
index ffaa336e69..447e76bc7a 100644
--- a/wp-includes/template.php
+++ b/wp-includes/template.php
@@ -720,8 +720,8 @@ function load_template( $_template_file, $require_once = true ) {
}
if ( $require_once ) {
- require_once( $_template_file );
+ require_once $_template_file;
} else {
- require( $_template_file );
+ require $_template_file;
}
}
diff --git a/wp-includes/theme.php b/wp-includes/theme.php
index fd1b93fbaa..dc18db9913 100644
--- a/wp-includes/theme.php
+++ b/wp-includes/theme.php
@@ -2638,7 +2638,7 @@ function _custom_header_background_just_in_time() {
}
if ( is_admin() ) {
- require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
$custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
}
}
@@ -2651,7 +2651,7 @@ function _custom_header_background_just_in_time() {
add_action( 'wp_head', $args[0]['wp-head-callback'] );
if ( is_admin() ) {
- require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-custom-background.php';
$custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
}
}
@@ -2897,7 +2897,7 @@ function current_theme_supports( $feature, ...$args ) {
*/
function require_if_theme_supports( $feature, $include ) {
if ( current_theme_supports( $feature ) ) {
- require( $include );
+ require $include;
return true;
}
return false;
diff --git a/wp-includes/update.php b/wp-includes/update.php
index 125a6e3084..09000c794c 100644
--- a/wp-includes/update.php
+++ b/wp-includes/update.php
@@ -28,7 +28,7 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
global $wpdb, $wp_local_package;
// Include an unmodified $wp_version.
- include( ABSPATH . WPINC . '/version.php' );
+ require ABSPATH . WPINC . '/version.php';
$php_version = phpversion();
$current = get_site_transient( 'update_core' );
@@ -261,11 +261,11 @@ function wp_update_plugins( $extra_stats = array() ) {
}
// Include an unmodified $wp_version.
- include( ABSPATH . WPINC . '/version.php' );
+ require ABSPATH . WPINC . '/version.php';
// If running blog-side, bail unless we've not checked in the last 12 hours.
if ( ! function_exists( 'get_plugins' ) ) {
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
$plugins = get_plugins();
@@ -441,7 +441,7 @@ function wp_update_themes( $extra_stats = array() ) {
}
// Include an unmodified $wp_version.
- include( ABSPATH . WPINC . '/version.php' );
+ require ABSPATH . WPINC . '/version.php';
$installed_themes = wp_get_themes();
$translations = wp_get_installed_translations( 'themes' );
@@ -603,8 +603,8 @@ function wp_update_themes( $extra_stats = array() ) {
* @since 3.7.0
*/
function wp_maybe_auto_update() {
- include_once( ABSPATH . 'wp-admin/includes/admin.php' );
- include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
+ include_once ABSPATH . 'wp-admin/includes/admin.php';
+ require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
$upgrader = new WP_Automatic_Updater;
$upgrader->run();
@@ -729,7 +729,7 @@ function wp_get_update_data() {
*/
function _maybe_update_core() {
// Include an unmodified $wp_version.
- include( ABSPATH . WPINC . '/version.php' );
+ require ABSPATH . WPINC . '/version.php';
$current = get_site_transient( 'update_core' );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index cc1d055659..84dc8414cf 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.4-alpha-47197';
+$wp_version = '5.4-alpha-47198';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff --git a/wp-includes/widgets/class-wp-widget-text.php b/wp-includes/widgets/class-wp-widget-text.php
index 0aa320f025..bd9c1df230 100644
--- a/wp-includes/widgets/class-wp-widget-text.php
+++ b/wp-includes/widgets/class-wp-widget-text.php
@@ -420,7 +420,7 @@ class WP_Widget_Text extends WP_Widget {
* @since 4.9.3
*/
public function enqueue_preview_scripts() {
- require_once dirname( dirname( __FILE__ ) ) . '/media.php';
+ require_once dirname( __DIR__ ) . '/media.php';
wp_playlist_scripts( 'audio' );
wp_playlist_scripts( 'video' );
diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php
index 0298e20569..400888e61e 100644
--- a/wp-includes/wp-db.php
+++ b/wp-includes/wp-db.php
@@ -1667,7 +1667,7 @@ class wpdb {
// Load custom DB error template, if present.
if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
- require_once( WP_CONTENT_DIR . '/db-error.php' );
+ require_once WP_CONTENT_DIR . '/db-error.php';
die();
}
diff --git a/wp-includes/wp-diff.php b/wp-includes/wp-diff.php
index deae25081d..235b04b4be 100644
--- a/wp-includes/wp-diff.php
+++ b/wp-includes/wp-diff.php
@@ -10,12 +10,12 @@
if ( ! class_exists( 'Text_Diff', false ) ) {
/** Text_Diff class */
- require( ABSPATH . WPINC . '/Text/Diff.php' );
+ require ABSPATH . WPINC . '/Text/Diff.php';
/** Text_Diff_Renderer class */
- require( ABSPATH . WPINC . '/Text/Diff/Renderer.php' );
+ require ABSPATH . WPINC . '/Text/Diff/Renderer.php';
/** Text_Diff_Renderer_inline class */
- require( ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php' );
+ require ABSPATH . WPINC . '/Text/Diff/Renderer/inline.php';
}
-require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php' );
-require( ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php' );
+require ABSPATH . WPINC . '/class-wp-text-diff-renderer-table.php';
+require ABSPATH . WPINC . '/class-wp-text-diff-renderer-inline.php';
diff --git a/wp-links-opml.php b/wp-links-opml.php
index c5b1729aea..9739a9a767 100644
--- a/wp-links-opml.php
+++ b/wp-links-opml.php
@@ -12,7 +12,7 @@
* @package WordPress
*/
-require_once( dirname( __FILE__ ) . '/wp-load.php' );
+require_once __DIR__ . '/wp-load.php';
header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
$link_cat = '';
diff --git a/wp-load.php b/wp-load.php
index 97e1aa908e..3f4d764bfc 100644
--- a/wp-load.php
+++ b/wp-load.php
@@ -18,7 +18,7 @@
/** Define ABSPATH as this file's directory */
if ( ! defined( 'ABSPATH' ) ) {
- define( 'ABSPATH', dirname( __FILE__ ) . '/' );
+ define( 'ABSPATH', __DIR__ . '/' );
}
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
@@ -34,24 +34,24 @@ error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_W
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
/** The config file resides in ABSPATH */
- require_once( ABSPATH . 'wp-config.php' );
+ require_once ABSPATH . 'wp-config.php';
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
/** The config file resides one level above ABSPATH but is not part of another installation */
- require_once( dirname( ABSPATH ) . '/wp-config.php' );
+ require_once dirname( ABSPATH ) . '/wp-config.php';
} else {
// A config file doesn't exist.
define( 'WPINC', 'wp-includes' );
- require_once( ABSPATH . WPINC . '/load.php' );
+ require_once ABSPATH . WPINC . '/load.php';
// Standardize $_SERVER variables across setups.
wp_fix_server_vars();
- require_once( ABSPATH . WPINC . '/functions.php' );
+ require_once ABSPATH . WPINC . '/functions.php';
$path = wp_guess_url() . '/wp-admin/setup-config.php';
@@ -66,7 +66,7 @@ if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
}
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
- require_once( ABSPATH . WPINC . '/version.php' );
+ require_once ABSPATH . WPINC . '/version.php';
wp_check_php_mysql_versions();
wp_load_translations_early();
diff --git a/wp-login.php b/wp-login.php
index cc7a53d014..597725e11d 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -9,7 +9,7 @@
*/
/** Make sure that the WordPress bootstrap has run before continuing. */
-require( dirname( __FILE__ ) . '/wp-load.php' );
+require __DIR__ . '/wp-load.php';
// Redirect to HTTPS login if forced to use SSL.
if ( force_ssl_admin() && ! is_ssl() ) {
diff --git a/wp-mail.php b/wp-mail.php
index 1faa685d3e..02635157c5 100644
--- a/wp-mail.php
+++ b/wp-mail.php
@@ -8,7 +8,7 @@
*/
/** Make sure that the WordPress bootstrap has run before continuing. */
-require( dirname( __FILE__ ) . '/wp-load.php' );
+require __DIR__ . '/wp-load.php';
/** This filter is documented in wp-admin/options.php */
if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) {
@@ -29,7 +29,7 @@ if ( 'mail.example.com' === $mailserver_url || empty( $mailserver_url ) ) {
do_action( 'wp-mail.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
/** Get the POP3 class with which to access the mailbox. */
-require_once( ABSPATH . WPINC . '/class-pop3.php' );
+require_once ABSPATH . WPINC . '/class-pop3.php';
/** Only check at this interval for new messages. */
if ( ! defined( 'WP_MAIL_INTERVAL' ) ) {
diff --git a/wp-settings.php b/wp-settings.php
index 230b54010a..cfcdc8a3d8 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -21,23 +21,23 @@ define( 'WPINC', 'wp-includes' );
* these values to be overridden if already set.
*/
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
-require( ABSPATH . WPINC . '/version.php' );
-require( ABSPATH . WPINC . '/load.php' );
+require ABSPATH . WPINC . '/version.php';
+require ABSPATH . WPINC . '/load.php';
// Check for the required PHP version and for the MySQL extension or a database drop-in.
wp_check_php_mysql_versions();
// Include files required for initialization.
-require( ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php' );
-require( ABSPATH . WPINC . '/class-wp-fatal-error-handler.php' );
-require( ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php' );
-require( ABSPATH . WPINC . '/class-wp-recovery-mode-key-service.php' );
-require( ABSPATH . WPINC . '/class-wp-recovery-mode-link-service.php' );
-require( ABSPATH . WPINC . '/class-wp-recovery-mode-email-service.php' );
-require( ABSPATH . WPINC . '/class-wp-recovery-mode.php' );
-require( ABSPATH . WPINC . '/error-protection.php' );
-require( ABSPATH . WPINC . '/default-constants.php' );
-require_once( ABSPATH . WPINC . '/plugin.php' );
+require ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php';
+require ABSPATH . WPINC . '/class-wp-fatal-error-handler.php';
+require ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php';
+require ABSPATH . WPINC . '/class-wp-recovery-mode-key-service.php';
+require ABSPATH . WPINC . '/class-wp-recovery-mode-link-service.php';
+require ABSPATH . WPINC . '/class-wp-recovery-mode-email-service.php';
+require ABSPATH . WPINC . '/class-wp-recovery-mode.php';
+require ABSPATH . WPINC . '/error-protection.php';
+require ABSPATH . WPINC . '/default-constants.php';
+require_once ABSPATH . WPINC . '/plugin.php';
/**
* If not already configured, `$blog_id` will default to 1 in a single site
@@ -85,7 +85,7 @@ wp_debug_mode();
*/
if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) && file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) {
// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
- include( WP_CONTENT_DIR . '/advanced-cache.php' );
+ include WP_CONTENT_DIR . '/advanced-cache.php';
// Re-initialize any hooks added manually by advanced-cache.php.
if ( $wp_filter ) {
@@ -97,16 +97,16 @@ if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) &
wp_set_lang_dir();
// Load early WordPress files.
-require( ABSPATH . WPINC . '/compat.php' );
-require( ABSPATH . WPINC . '/class-wp-list-util.php' );
-require( ABSPATH . WPINC . '/formatting.php' );
-require( ABSPATH . WPINC . '/meta.php' );
-require( ABSPATH . WPINC . '/functions.php' );
-require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
-require( ABSPATH . WPINC . '/class-wp-matchesmapregex.php' );
-require( ABSPATH . WPINC . '/class-wp.php' );
-require( ABSPATH . WPINC . '/class-wp-error.php' );
-require( ABSPATH . WPINC . '/pomo/mo.php' );
+require ABSPATH . WPINC . '/compat.php';
+require ABSPATH . WPINC . '/class-wp-list-util.php';
+require ABSPATH . WPINC . '/formatting.php';
+require ABSPATH . WPINC . '/meta.php';
+require ABSPATH . WPINC . '/functions.php';
+require ABSPATH . WPINC . '/class-wp-meta-query.php';
+require ABSPATH . WPINC . '/class-wp-matchesmapregex.php';
+require ABSPATH . WPINC . '/class-wp.php';
+require ABSPATH . WPINC . '/class-wp-error.php';
+require ABSPATH . WPINC . '/pomo/mo.php';
// Include the wpdb class and, if present, a db.php database drop-in.
global $wpdb;
@@ -120,14 +120,14 @@ wp_set_wpdb_vars();
wp_start_object_cache();
// Attach the default filters.
-require( ABSPATH . WPINC . '/default-filters.php' );
+require ABSPATH . WPINC . '/default-filters.php';
// Initialize multisite if enabled.
if ( is_multisite() ) {
- require( ABSPATH . WPINC . '/class-wp-site-query.php' );
- require( ABSPATH . WPINC . '/class-wp-network-query.php' );
- require( ABSPATH . WPINC . '/ms-blogs.php' );
- require( ABSPATH . WPINC . '/ms-settings.php' );
+ require ABSPATH . WPINC . '/class-wp-site-query.php';
+ require ABSPATH . WPINC . '/class-wp-network-query.php';
+ require ABSPATH . WPINC . '/ms-blogs.php';
+ require ABSPATH . WPINC . '/ms-settings.php';
} elseif ( ! defined( 'MULTISITE' ) ) {
define( 'MULTISITE', false );
}
@@ -140,142 +140,142 @@ if ( SHORTINIT ) {
}
// Load the L10n library.
-require_once( ABSPATH . WPINC . '/l10n.php' );
-require_once( ABSPATH . WPINC . '/class-wp-locale.php' );
-require_once( ABSPATH . WPINC . '/class-wp-locale-switcher.php' );
+require_once ABSPATH . WPINC . '/l10n.php';
+require_once ABSPATH . WPINC . '/class-wp-locale.php';
+require_once ABSPATH . WPINC . '/class-wp-locale-switcher.php';
// Run the installer if WordPress is not installed.
wp_not_installed();
// Load most of WordPress.
-require( ABSPATH . WPINC . '/class-wp-walker.php' );
-require( ABSPATH . WPINC . '/class-wp-ajax-response.php' );
-require( ABSPATH . WPINC . '/capabilities.php' );
-require( ABSPATH . WPINC . '/class-wp-roles.php' );
-require( ABSPATH . WPINC . '/class-wp-role.php' );
-require( ABSPATH . WPINC . '/class-wp-user.php' );
-require( ABSPATH . WPINC . '/class-wp-query.php' );
-require( ABSPATH . WPINC . '/query.php' );
-require( ABSPATH . WPINC . '/class-wp-date-query.php' );
-require( ABSPATH . WPINC . '/theme.php' );
-require( ABSPATH . WPINC . '/class-wp-theme.php' );
-require( ABSPATH . WPINC . '/template.php' );
-require( ABSPATH . WPINC . '/class-wp-user-request.php' );
-require( ABSPATH . WPINC . '/user.php' );
-require( ABSPATH . WPINC . '/class-wp-user-query.php' );
-require( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
-require( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );
-require( ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
-require( ABSPATH . WPINC . '/general-template.php' );
-require( ABSPATH . WPINC . '/link-template.php' );
-require( ABSPATH . WPINC . '/author-template.php' );
-require( ABSPATH . WPINC . '/post.php' );
-require( ABSPATH . WPINC . '/class-walker-page.php' );
-require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
-require( ABSPATH . WPINC . '/class-wp-post-type.php' );
-require( ABSPATH . WPINC . '/class-wp-post.php' );
-require( ABSPATH . WPINC . '/post-template.php' );
-require( ABSPATH . WPINC . '/revision.php' );
-require( ABSPATH . WPINC . '/post-formats.php' );
-require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
-require( ABSPATH . WPINC . '/category.php' );
-require( ABSPATH . WPINC . '/class-walker-category.php' );
-require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
-require( ABSPATH . WPINC . '/category-template.php' );
-require( ABSPATH . WPINC . '/comment.php' );
-require( ABSPATH . WPINC . '/class-wp-comment.php' );
-require( ABSPATH . WPINC . '/class-wp-comment-query.php' );
-require( ABSPATH . WPINC . '/class-walker-comment.php' );
-require( ABSPATH . WPINC . '/comment-template.php' );
-require( ABSPATH . WPINC . '/rewrite.php' );
-require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
-require( ABSPATH . WPINC . '/feed.php' );
-require( ABSPATH . WPINC . '/bookmark.php' );
-require( ABSPATH . WPINC . '/bookmark-template.php' );
-require( ABSPATH . WPINC . '/kses.php' );
-require( ABSPATH . WPINC . '/cron.php' );
-require( ABSPATH . WPINC . '/deprecated.php' );
-require( ABSPATH . WPINC . '/script-loader.php' );
-require( ABSPATH . WPINC . '/taxonomy.php' );
-require( ABSPATH . WPINC . '/class-wp-taxonomy.php' );
-require( ABSPATH . WPINC . '/class-wp-term.php' );
-require( ABSPATH . WPINC . '/class-wp-term-query.php' );
-require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
-require( ABSPATH . WPINC . '/update.php' );
-require( ABSPATH . WPINC . '/canonical.php' );
-require( ABSPATH . WPINC . '/shortcodes.php' );
-require( ABSPATH . WPINC . '/embed.php' );
-require( ABSPATH . WPINC . '/class-wp-embed.php' );
-require( ABSPATH . WPINC . '/class-wp-oembed.php' );
-require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
-require( ABSPATH . WPINC . '/media.php' );
-require( ABSPATH . WPINC . '/http.php' );
-require( ABSPATH . WPINC . '/class-http.php' );
-require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
-require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
-require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
-require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
-require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
-require( ABSPATH . WPINC . '/class-wp-http-response.php' );
-require( ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
-require( ABSPATH . WPINC . '/class-wp-http-requests-hooks.php' );
-require( ABSPATH . WPINC . '/widgets.php' );
-require( ABSPATH . WPINC . '/class-wp-widget.php' );
-require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
-require( ABSPATH . WPINC . '/nav-menu.php' );
-require( ABSPATH . WPINC . '/nav-menu-template.php' );
-require( ABSPATH . WPINC . '/admin-bar.php' );
-require( ABSPATH . WPINC . '/rest-api.php' );
-require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
-require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
-require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-autosaves-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-search-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-blocks-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-renderer-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-themes-controller.php' );
-require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php' );
-require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php' );
-require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php' );
-require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php' );
-require( ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php' );
-require( ABSPATH . WPINC . '/rest-api/search/class-wp-rest-search-handler.php' );
-require( ABSPATH . WPINC . '/rest-api/search/class-wp-rest-post-search-handler.php' );
-require( ABSPATH . WPINC . '/class-wp-block-type.php' );
-require( ABSPATH . WPINC . '/class-wp-block-styles-registry.php' );
-require( ABSPATH . WPINC . '/class-wp-block-type-registry.php' );
-require( ABSPATH . WPINC . '/class-wp-block-parser.php' );
-require( ABSPATH . WPINC . '/blocks.php' );
-require( ABSPATH . WPINC . '/blocks/archives.php' );
-require( ABSPATH . WPINC . '/blocks/block.php' );
-require( ABSPATH . WPINC . '/blocks/calendar.php' );
-require( ABSPATH . WPINC . '/blocks/categories.php' );
-require( ABSPATH . WPINC . '/blocks/latest-comments.php' );
-require( ABSPATH . WPINC . '/blocks/latest-posts.php' );
-require( ABSPATH . WPINC . '/blocks/navigation.php' );
-require( ABSPATH . WPINC . '/blocks/rss.php' );
-require( ABSPATH . WPINC . '/blocks/search.php' );
-require( ABSPATH . WPINC . '/blocks/shortcode.php' );
-require( ABSPATH . WPINC . '/blocks/tag-cloud.php' );
+require ABSPATH . WPINC . '/class-wp-walker.php';
+require ABSPATH . WPINC . '/class-wp-ajax-response.php';
+require ABSPATH . WPINC . '/capabilities.php';
+require ABSPATH . WPINC . '/class-wp-roles.php';
+require ABSPATH . WPINC . '/class-wp-role.php';
+require ABSPATH . WPINC . '/class-wp-user.php';
+require ABSPATH . WPINC . '/class-wp-query.php';
+require ABSPATH . WPINC . '/query.php';
+require ABSPATH . WPINC . '/class-wp-date-query.php';
+require ABSPATH . WPINC . '/theme.php';
+require ABSPATH . WPINC . '/class-wp-theme.php';
+require ABSPATH . WPINC . '/template.php';
+require ABSPATH . WPINC . '/class-wp-user-request.php';
+require ABSPATH . WPINC . '/user.php';
+require ABSPATH . WPINC . '/class-wp-user-query.php';
+require ABSPATH . WPINC . '/class-wp-session-tokens.php';
+require ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php';
+require ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php';
+require ABSPATH . WPINC . '/general-template.php';
+require ABSPATH . WPINC . '/link-template.php';
+require ABSPATH . WPINC . '/author-template.php';
+require ABSPATH . WPINC . '/post.php';
+require ABSPATH . WPINC . '/class-walker-page.php';
+require ABSPATH . WPINC . '/class-walker-page-dropdown.php';
+require ABSPATH . WPINC . '/class-wp-post-type.php';
+require ABSPATH . WPINC . '/class-wp-post.php';
+require ABSPATH . WPINC . '/post-template.php';
+require ABSPATH . WPINC . '/revision.php';
+require ABSPATH . WPINC . '/post-formats.php';
+require ABSPATH . WPINC . '/post-thumbnail-template.php';
+require ABSPATH . WPINC . '/category.php';
+require ABSPATH . WPINC . '/class-walker-category.php';
+require ABSPATH . WPINC . '/class-walker-category-dropdown.php';
+require ABSPATH . WPINC . '/category-template.php';
+require ABSPATH . WPINC . '/comment.php';
+require ABSPATH . WPINC . '/class-wp-comment.php';
+require ABSPATH . WPINC . '/class-wp-comment-query.php';
+require ABSPATH . WPINC . '/class-walker-comment.php';
+require ABSPATH . WPINC . '/comment-template.php';
+require ABSPATH . WPINC . '/rewrite.php';
+require ABSPATH . WPINC . '/class-wp-rewrite.php';
+require ABSPATH . WPINC . '/feed.php';
+require ABSPATH . WPINC . '/bookmark.php';
+require ABSPATH . WPINC . '/bookmark-template.php';
+require ABSPATH . WPINC . '/kses.php';
+require ABSPATH . WPINC . '/cron.php';
+require ABSPATH . WPINC . '/deprecated.php';
+require ABSPATH . WPINC . '/script-loader.php';
+require ABSPATH . WPINC . '/taxonomy.php';
+require ABSPATH . WPINC . '/class-wp-taxonomy.php';
+require ABSPATH . WPINC . '/class-wp-term.php';
+require ABSPATH . WPINC . '/class-wp-term-query.php';
+require ABSPATH . WPINC . '/class-wp-tax-query.php';
+require ABSPATH . WPINC . '/update.php';
+require ABSPATH . WPINC . '/canonical.php';
+require ABSPATH . WPINC . '/shortcodes.php';
+require ABSPATH . WPINC . '/embed.php';
+require ABSPATH . WPINC . '/class-wp-embed.php';
+require ABSPATH . WPINC . '/class-wp-oembed.php';
+require ABSPATH . WPINC . '/class-wp-oembed-controller.php';
+require ABSPATH . WPINC . '/media.php';
+require ABSPATH . WPINC . '/http.php';
+require ABSPATH . WPINC . '/class-http.php';
+require ABSPATH . WPINC . '/class-wp-http-streams.php';
+require ABSPATH . WPINC . '/class-wp-http-curl.php';
+require ABSPATH . WPINC . '/class-wp-http-proxy.php';
+require ABSPATH . WPINC . '/class-wp-http-cookie.php';
+require ABSPATH . WPINC . '/class-wp-http-encoding.php';
+require ABSPATH . WPINC . '/class-wp-http-response.php';
+require ABSPATH . WPINC . '/class-wp-http-requests-response.php';
+require ABSPATH . WPINC . '/class-wp-http-requests-hooks.php';
+require ABSPATH . WPINC . '/widgets.php';
+require ABSPATH . WPINC . '/class-wp-widget.php';
+require ABSPATH . WPINC . '/class-wp-widget-factory.php';
+require ABSPATH . WPINC . '/nav-menu.php';
+require ABSPATH . WPINC . '/nav-menu-template.php';
+require ABSPATH . WPINC . '/admin-bar.php';
+require ABSPATH . WPINC . '/rest-api.php';
+require ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php';
+require ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php';
+require ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-posts-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-attachments-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-types-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-post-statuses-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-revisions-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-autosaves-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-taxonomies-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-terms-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-users-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-search-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-blocks-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-renderer-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php';
+require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-themes-controller.php';
+require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-meta-fields.php';
+require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-comment-meta-fields.php';
+require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-post-meta-fields.php';
+require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-term-meta-fields.php';
+require ABSPATH . WPINC . '/rest-api/fields/class-wp-rest-user-meta-fields.php';
+require ABSPATH . WPINC . '/rest-api/search/class-wp-rest-search-handler.php';
+require ABSPATH . WPINC . '/rest-api/search/class-wp-rest-post-search-handler.php';
+require ABSPATH . WPINC . '/class-wp-block-type.php';
+require ABSPATH . WPINC . '/class-wp-block-styles-registry.php';
+require ABSPATH . WPINC . '/class-wp-block-type-registry.php';
+require ABSPATH . WPINC . '/class-wp-block-parser.php';
+require ABSPATH . WPINC . '/blocks.php';
+require ABSPATH . WPINC . '/blocks/archives.php';
+require ABSPATH . WPINC . '/blocks/block.php';
+require ABSPATH . WPINC . '/blocks/calendar.php';
+require ABSPATH . WPINC . '/blocks/categories.php';
+require ABSPATH . WPINC . '/blocks/latest-comments.php';
+require ABSPATH . WPINC . '/blocks/latest-posts.php';
+require ABSPATH . WPINC . '/blocks/navigation.php';
+require ABSPATH . WPINC . '/blocks/rss.php';
+require ABSPATH . WPINC . '/blocks/search.php';
+require ABSPATH . WPINC . '/blocks/shortcode.php';
+require ABSPATH . WPINC . '/blocks/tag-cloud.php';
$GLOBALS['wp_embed'] = new WP_Embed();
// Load multisite-specific files.
if ( is_multisite() ) {
- require( ABSPATH . WPINC . '/ms-functions.php' );
- require( ABSPATH . WPINC . '/ms-default-filters.php' );
- require( ABSPATH . WPINC . '/ms-deprecated.php' );
+ require ABSPATH . WPINC . '/ms-functions.php';
+ require ABSPATH . WPINC . '/ms-default-filters.php';
+ require ABSPATH . WPINC . '/ms-deprecated.php';
}
// Define constants that rely on the API to obtain the default value.
@@ -286,7 +286,7 @@ $GLOBALS['wp_plugin_paths'] = array();
// Load must-use plugins.
foreach ( wp_get_mu_plugins() as $mu_plugin ) {
- include_once( $mu_plugin );
+ include_once $mu_plugin;
/**
* Fires once a single must-use plugin has loaded.
@@ -303,7 +303,7 @@ unset( $mu_plugin );
if ( is_multisite() ) {
foreach ( wp_get_active_network_plugins() as $network_plugin ) {
wp_register_plugin_realpath( $network_plugin );
- include_once( $network_plugin );
+ include_once $network_plugin;
/**
* Fires once a single network-activated plugin has loaded.
@@ -335,7 +335,7 @@ wp_cookie_constants();
wp_ssl_constants();
// Create common globals.
-require( ABSPATH . WPINC . '/vars.php' );
+require ABSPATH . WPINC . '/vars.php';
// Make taxonomies and posts available to plugins and themes.
// @plugin authors: warning: these get registered again on the init hook.
@@ -354,14 +354,14 @@ if ( ! is_multisite() ) {
// Create an instance of WP_Site_Health so that Cron events may fire.
if ( ! class_exists( 'WP_Site_Health' ) ) {
- require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}
WP_Site_Health::get_instance();
// Load active plugins.
foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
wp_register_plugin_realpath( $plugin );
- include_once( $plugin );
+ include_once $plugin;
/**
* Fires once a single activated plugin has loaded.
@@ -375,8 +375,8 @@ foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
unset( $plugin );
// Load pluggable functions.
-require( ABSPATH . WPINC . '/pluggable.php' );
-require( ABSPATH . WPINC . '/pluggable-deprecated.php' );
+require ABSPATH . WPINC . '/pluggable.php';
+require ABSPATH . WPINC . '/pluggable-deprecated.php';
// Set internal encoding.
wp_set_internal_encoding();
@@ -473,7 +473,7 @@ load_default_textdomain();
$locale = get_locale();
$locale_file = WP_LANG_DIR . "/$locale.php";
if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) {
- require( $locale_file );
+ require $locale_file;
}
unset( $locale_file );
@@ -530,7 +530,7 @@ do_action( 'init' );
if ( is_multisite() ) {
$file = ms_site_check();
if ( true !== $file ) {
- require( $file );
+ require $file;
die();
}
unset( $file );
diff --git a/wp-signup.php b/wp-signup.php
index 97aee29d8e..4d01ca0bfe 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -1,11 +1,11 @@
'1' ) );
}
diff --git a/xmlrpc.php b/xmlrpc.php
index 885fc26bd1..00bd97e8df 100644
--- a/xmlrpc.php
+++ b/xmlrpc.php
@@ -27,7 +27,7 @@ if ( isset( $HTTP_RAW_POST_DATA ) ) {
}
/** Include the bootstrap for setting up WordPress environment */
-include( dirname( __FILE__ ) . '/wp-load.php' );
+require_once __DIR__ . '/wp-load.php';
if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
@@ -60,9 +60,9 @@ if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/r
exit;
}
-include_once( ABSPATH . 'wp-admin/includes/admin.php' );
-include_once( ABSPATH . WPINC . '/class-IXR.php' );
-include_once( ABSPATH . WPINC . '/class-wp-xmlrpc-server.php' );
+require_once ABSPATH . 'wp-admin/includes/admin.php';
+require_once ABSPATH . WPINC . '/class-IXR.php';
+require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';
/**
* Posts submitted via the XML-RPC interface get that title