mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-30 13:08:26 +01:00
Code Modernization: Replace dirname( __FILE__ )
calls with __DIR__
magic constant.
This avoids the performance overhead of the function call every time `dirname( __FILE__ )` was used instead of `__DIR__`. This commit also includes: * Removing unnecessary parentheses from `include`/`require` statements. These are language constructs, not function calls. * Replacing `include` statements for several files with `require_once`, for consistency: * `wp-admin/admin-header.php` * `wp-admin/admin-footer.php` * `wp-includes/version.php` Props ayeshrajans, desrosj, valentinbora, jrf, joostdevalk, netweb. Fixes #48082. Built from https://develop.svn.wordpress.org/trunk@47198 git-svn-id: http://core.svn.wordpress.org/trunk@46998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ecb8633dcc
commit
47ed56f38f
@ -14,4 +14,4 @@
|
||||
define( 'WP_USE_THEMES', true );
|
||||
|
||||
/** Loads the WordPress Environment and Template */
|
||||
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
|
||||
require __DIR__ . '/wp-blog-header.php';
|
||||
|
@ -9,9 +9,9 @@
|
||||
define( 'WP_INSTALLING', true );
|
||||
|
||||
/** Sets up the WordPress Environment. */
|
||||
require( dirname( __FILE__ ) . '/wp-load.php' );
|
||||
require __DIR__ . '/wp-load.php';
|
||||
|
||||
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
|
||||
require __DIR__ . '/wp-blog-header.php';
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
wp_redirect( wp_registration_url() );
|
||||
|
@ -7,14 +7,14 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
/* translators: Page title of the About WordPress page in the admin. */
|
||||
$title = _x( 'About', 'page title' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
<div class="wrap about__container">
|
||||
|
||||
@ -202,7 +202,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
<?php
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
||||
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
|
||||
return;
|
||||
|
@ -19,7 +19,7 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
|
||||
/** Allow for cross-domain requests (from the front end). */
|
||||
send_origin_headers();
|
||||
@ -33,10 +33,10 @@ if ( empty( $_REQUEST['action'] ) ) {
|
||||
}
|
||||
|
||||
/** Load WordPress Administration APIs */
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
|
||||
/** Load Ajax Handlers for WordPress Core */
|
||||
require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/ajax-actions.php';
|
||||
|
||||
send_nosniff_header();
|
||||
nocache_headers();
|
||||
|
@ -12,4 +12,4 @@
|
||||
_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
|
||||
|
||||
/** WordPress Administration API: Includes all Administration functions. */
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
|
||||
if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -233,7 +233,7 @@ if ( current_user_can( 'customize' ) ) {
|
||||
?>
|
||||
|
||||
<div id="wpwrap">
|
||||
<?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?>
|
||||
<?php require ABSPATH . 'wp-admin/menu-header.php'; ?>
|
||||
<div id="wpcontent">
|
||||
|
||||
<?php
|
||||
@ -289,5 +289,5 @@ if ( is_network_admin() ) {
|
||||
do_action( 'all_admin_notices' );
|
||||
|
||||
if ( $parent_file == 'options-general.php' ) {
|
||||
require( ABSPATH . 'wp-admin/options-head.php' );
|
||||
require ABSPATH . 'wp-admin/options-head.php';
|
||||
}
|
||||
|
@ -14,15 +14,15 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
if ( defined( 'ABSPATH' ) ) {
|
||||
require_once( ABSPATH . 'wp-load.php' );
|
||||
require_once ABSPATH . 'wp-load.php';
|
||||
} else {
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
}
|
||||
|
||||
/** Allow for cross-domain requests (from the front end). */
|
||||
send_origin_headers();
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
|
||||
nocache_headers();
|
||||
|
||||
|
@ -31,7 +31,7 @@ if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
|
||||
define( 'WP_LOAD_IMPORTERS', true );
|
||||
}
|
||||
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
|
||||
nocache_headers();
|
||||
|
||||
@ -73,7 +73,7 @@ if ( get_option( 'db_upgraded' ) ) {
|
||||
* attempt to do no more than threshold value, with some +/- allowed.
|
||||
*/
|
||||
if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) {
|
||||
require_once( ABSPATH . WPINC . '/http.php' );
|
||||
require_once ABSPATH . WPINC . '/http.php';
|
||||
$response = wp_remote_get(
|
||||
admin_url( 'upgrade.php?step=1' ),
|
||||
array(
|
||||
@ -89,7 +89,7 @@ if ( get_option( 'db_upgraded' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
|
||||
auth_redirect();
|
||||
|
||||
@ -146,11 +146,11 @@ if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] )
|
||||
}
|
||||
|
||||
if ( WP_NETWORK_ADMIN ) {
|
||||
require( ABSPATH . 'wp-admin/network/menu.php' );
|
||||
require ABSPATH . 'wp-admin/network/menu.php';
|
||||
} elseif ( WP_USER_ADMIN ) {
|
||||
require( ABSPATH . 'wp-admin/user/menu.php' );
|
||||
require ABSPATH . 'wp-admin/user/menu.php';
|
||||
} else {
|
||||
require( ABSPATH . 'wp-admin/menu.php' );
|
||||
require ABSPATH . 'wp-admin/menu.php';
|
||||
}
|
||||
|
||||
if ( current_user_can( 'manage_options' ) ) {
|
||||
@ -231,7 +231,7 @@ if ( isset( $plugin_page ) ) {
|
||||
*/
|
||||
do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
if ( ! isset( $_GET['noheader'] ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -277,17 +277,17 @@ if ( isset( $plugin_page ) ) {
|
||||
do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
|
||||
if ( ! isset( $_GET['noheader'] ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
}
|
||||
|
||||
if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) {
|
||||
include( WPMU_PLUGIN_DIR . "/$plugin_page" );
|
||||
include WPMU_PLUGIN_DIR . "/$plugin_page";
|
||||
} else {
|
||||
include( WP_PLUGIN_DIR . "/$plugin_page" );
|
||||
include WP_PLUGIN_DIR . "/$plugin_page";
|
||||
}
|
||||
}
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
||||
exit();
|
||||
} elseif ( isset( $_GET['import'] ) ) {
|
||||
@ -322,10 +322,10 @@ if ( isset( $plugin_page ) ) {
|
||||
$title = __( 'Import' );
|
||||
|
||||
if ( ! isset( $_GET['noheader'] ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
||||
|
||||
define( 'WP_IMPORTING', true );
|
||||
|
||||
@ -345,7 +345,7 @@ if ( isset( $plugin_page ) ) {
|
||||
|
||||
call_user_func( $wp_importers[ $importer ][2] );
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
||||
// Make sure rules are flushed.
|
||||
flush_rewrite_rules( false );
|
||||
|
@ -15,17 +15,17 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
if ( defined( 'ABSPATH' ) ) {
|
||||
require_once( ABSPATH . 'wp-load.php' );
|
||||
require_once ABSPATH . 'wp-load.php';
|
||||
} else {
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin.php';
|
||||
|
||||
header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) );
|
||||
|
||||
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
|
||||
include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
|
||||
require ABSPATH . 'wp-admin/includes/ajax-actions.php';
|
||||
|
||||
send_nosniff_header();
|
||||
nocache_headers();
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
$parent_file = 'edit-comments.php';
|
||||
$submenu_file = 'edit-comments.php';
|
||||
@ -58,7 +58,7 @@ switch ( $action ) {
|
||||
);
|
||||
|
||||
wp_enqueue_script( 'comment' );
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
$comment_id = absint( $_GET['c'] );
|
||||
|
||||
@ -77,7 +77,7 @@ switch ( $action ) {
|
||||
|
||||
$comment = get_comment_to_edit( $comment_id );
|
||||
|
||||
include( ABSPATH . 'wp-admin/edit-form-comment.php' );
|
||||
require ABSPATH . 'wp-admin/edit-form-comment.php';
|
||||
|
||||
break;
|
||||
|
||||
@ -106,7 +106,7 @@ switch ( $action ) {
|
||||
die();
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
$formaction = $action . 'comment';
|
||||
$nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
|
||||
@ -357,4 +357,4 @@ switch ( $action ) {
|
||||
|
||||
} // End switch.
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,14 +7,14 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once( dirname( __FILE__ ) . '/includes/credits.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
require_once __DIR__ . '/includes/credits.php';
|
||||
|
||||
$title = __( 'Credits' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
$credits = wp_credits();
|
||||
?>
|
||||
@ -82,7 +82,7 @@ $credits = wp_credits();
|
||||
<?php
|
||||
if ( ! $credits ) {
|
||||
echo '</div>';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@ -129,7 +129,7 @@ if ( ! $credits ) {
|
||||
</div>
|
||||
<?php
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
||||
return;
|
||||
|
||||
|
@ -12,4 +12,4 @@
|
||||
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' );
|
||||
|
||||
/** Custom_Background class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-custom-background.php';
|
||||
|
@ -12,4 +12,4 @@
|
||||
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );
|
||||
|
||||
/** Custom_Image_Header class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
|
||||
|
@ -10,7 +10,7 @@
|
||||
define( 'IFRAME_REQUEST', true );
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'customize' ) ) {
|
||||
wp_die(
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
if ( ! current_user_can( 'edit_posts' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
|
||||
@ -205,7 +205,7 @@ get_current_screen()->set_screen_reader_content(
|
||||
)
|
||||
);
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
@ -351,4 +351,4 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $
|
||||
<?php
|
||||
wp_comment_reply( '-1', true, 'detail' );
|
||||
wp_comment_trashnotice();
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
@ -264,7 +264,7 @@ if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql
|
||||
$post_type_object = get_post_type_object( $post_type );
|
||||
|
||||
// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
|
||||
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
|
||||
|
||||
register_and_do_post_meta_boxes( $post );
|
||||
|
||||
@ -416,7 +416,7 @@ if ( 'post' == $post_type ) {
|
||||
);
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
|
@ -363,7 +363,7 @@ wp_enqueue_style( 'wp-format-library' );
|
||||
do_action( 'enqueue_block_editor_assets' );
|
||||
|
||||
// In order to duplicate classic meta box behaviour, we need to run the classic meta box actions.
|
||||
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
|
||||
register_and_do_post_meta_boxes( $post );
|
||||
|
||||
// Check if the Custom Fields meta box has been removed at some point.
|
||||
@ -401,7 +401,7 @@ $script = sprintf(
|
||||
);
|
||||
wp_add_inline_script( 'wp-edit-post', $script );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="block-editor">
|
||||
|
@ -25,7 +25,7 @@ if ( ! empty( $link_id ) ) {
|
||||
$nonce_action = 'add-bookmark';
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
|
||||
|
||||
add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' );
|
||||
add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' );
|
||||
@ -77,7 +77,7 @@ get_current_screen()->set_help_sidebar(
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
|
@ -52,7 +52,7 @@ wp_reset_vars( array( 'wp_http_referer' ) );
|
||||
$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
|
||||
|
||||
/** Also used by Edit Tags */
|
||||
require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
|
||||
|
||||
/**
|
||||
* Fires before the Edit Term form for all taxonomies.
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! $taxnow ) {
|
||||
wp_die( __( 'Invalid taxonomy.' ) );
|
||||
@ -318,10 +318,10 @@ if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' ===
|
||||
unset( $help );
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
/** Also used by the Edit Tag form */
|
||||
require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php';
|
||||
|
||||
$class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated';
|
||||
|
||||
@ -658,4 +658,4 @@ endif;
|
||||
|
||||
$wp_list_table->inline_edit();
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! $typenow ) {
|
||||
wp_die( __( 'Invalid post type.' ) );
|
||||
@ -383,7 +383,7 @@ $bulk_messages['wp_block'] = array(
|
||||
$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
|
||||
$bulk_counts = array_filter( $bulk_counts );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 class="wp-heading-inline">
|
||||
@ -461,4 +461,4 @@ if ( $wp_list_table->has_items() ) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) );
|
||||
@ -47,7 +47,7 @@ $requests_table->screen->set_screen_reader_content(
|
||||
$requests_table->process_bulk_action();
|
||||
$requests_table->prepare_items();
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap nosubsub">
|
||||
@ -89,4 +89,4 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'export_others_personal_data' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) );
|
||||
@ -47,7 +47,7 @@ $requests_table->screen->set_screen_reader_content(
|
||||
$requests_table->process_bulk_action();
|
||||
$requests_table->prepare_items();
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap nosubsub">
|
||||
@ -89,4 +89,4 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,14 +7,14 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'export' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) );
|
||||
}
|
||||
|
||||
/** Load WordPress export API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/export.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/export.php';
|
||||
$title = __( 'Export' );
|
||||
|
||||
/**
|
||||
@ -122,7 +122,7 @@ if ( isset( $_GET['download'] ) ) {
|
||||
die();
|
||||
}
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
/**
|
||||
* Create the date options fields for exporting a given post type.
|
||||
@ -321,4 +321,4 @@ do_action( 'export_filters' );
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
|
||||
if ( isset( $_GET['privacy-notice'] ) ) {
|
||||
@ -19,7 +19,7 @@ $title = __( 'Freedoms' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
<div class="wrap about__container">
|
||||
|
||||
@ -123,4 +123,4 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
@ -9,7 +9,7 @@
|
||||
define( 'WP_LOAD_IMPORTERS', true );
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'import' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) );
|
||||
@ -53,7 +53,7 @@ add_thickbox();
|
||||
wp_enqueue_script( 'plugin-install' );
|
||||
wp_enqueue_script( 'updates' );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
$parent_file = 'tools.php';
|
||||
?>
|
||||
|
||||
@ -237,4 +237,4 @@ if ( current_user_can( 'install_plugins' ) ) {
|
||||
wp_print_request_filesystem_credentials_modal();
|
||||
wp_print_admin_notice_templates();
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -17,83 +17,83 @@ if ( ! defined( 'WP_ADMIN' ) ) {
|
||||
}
|
||||
|
||||
/** WordPress Administration Hooks */
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin-filters.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/admin-filters.php';
|
||||
|
||||
/** WordPress Bookmark Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/bookmark.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/bookmark.php';
|
||||
|
||||
/** WordPress Comment Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/comment.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/comment.php';
|
||||
|
||||
/** WordPress Administration File API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
|
||||
/** WordPress Image Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/image.php';
|
||||
|
||||
/** WordPress Media Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/media.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/media.php';
|
||||
|
||||
/** WordPress Import Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/import.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/import.php';
|
||||
|
||||
/** WordPress Misc Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/misc.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/misc.php';
|
||||
|
||||
/** WordPress Misc Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
|
||||
|
||||
/** WordPress Options Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/options.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/options.php';
|
||||
|
||||
/** WordPress Plugin Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
|
||||
/** WordPress Post Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/post.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/post.php';
|
||||
|
||||
/** WordPress Administration Screen API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/screen.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/screen.php';
|
||||
|
||||
/** WordPress Taxonomy Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/taxonomy.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/taxonomy.php';
|
||||
|
||||
/** WordPress Template Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/template.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/template.php';
|
||||
|
||||
/** WordPress List Table Administration API and base class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/list-table.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/list-table.php';
|
||||
|
||||
/** WordPress Theme Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/theme.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/theme.php';
|
||||
|
||||
/** WordPress Privacy Functions */
|
||||
require_once( ABSPATH . 'wp-admin/includes/privacy-tools.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/privacy-tools.php';
|
||||
|
||||
/** WordPress Privacy List Table classes. */
|
||||
// Previously in wp-admin/includes/user.php. Need to be loaded for backward compatibility.
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php';
|
||||
|
||||
/** WordPress User Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/user.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/user.php';
|
||||
|
||||
/** WordPress Site Icon API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php';
|
||||
|
||||
/** WordPress Update Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/update.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/update.php';
|
||||
|
||||
/** WordPress Deprecated Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/deprecated.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/deprecated.php';
|
||||
|
||||
/** WordPress Multisite support API */
|
||||
if ( is_multisite() ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/ms-admin-filters.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/ms.php' );
|
||||
require_once( ABSPATH . 'wp-admin/includes/ms-deprecated.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/ms-admin-filters.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/ms.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/ms-deprecated.php';
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ function wp_ajax_imgedit_preview() {
|
||||
|
||||
check_ajax_referer( "image_editor-$post_id" );
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
||||
include_once ABSPATH . 'wp-admin/includes/image-edit.php';
|
||||
|
||||
if ( ! stream_preview_image( $post_id ) ) {
|
||||
wp_die( -1 );
|
||||
@ -336,7 +336,7 @@ function wp_ajax_autocomplete_user() {
|
||||
* @since 4.8.0
|
||||
*/
|
||||
function wp_ajax_get_community_events() {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php';
|
||||
|
||||
check_ajax_referer( 'community_events' );
|
||||
|
||||
@ -1345,7 +1345,7 @@ function wp_ajax_replyto_comment( $action ) {
|
||||
|
||||
ob_start();
|
||||
if ( isset( $_REQUEST['mode'] ) && 'dashboard' == $_REQUEST['mode'] ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
_wp_dashboard_recent_comments_row( $comment );
|
||||
} else {
|
||||
if ( isset( $_REQUEST['mode'] ) && 'single' == $_REQUEST['mode'] ) {
|
||||
@ -1855,7 +1855,7 @@ function wp_ajax_wp_link_ajax() {
|
||||
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
|
||||
|
||||
if ( ! class_exists( '_WP_Editors', false ) ) {
|
||||
require( ABSPATH . WPINC . '/class-wp-editor.php' );
|
||||
require ABSPATH . WPINC . '/class-wp-editor.php';
|
||||
}
|
||||
|
||||
$results = _WP_Editors::wp_link_query( $args );
|
||||
@ -2597,7 +2597,7 @@ function wp_ajax_image_editor() {
|
||||
}
|
||||
|
||||
check_ajax_referer( "image_editor-$attachment_id" );
|
||||
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
||||
include_once ABSPATH . 'wp-admin/includes/image-edit.php';
|
||||
|
||||
$msg = false;
|
||||
switch ( $_POST['do'] ) {
|
||||
@ -4004,8 +4004,8 @@ function wp_ajax_install_theme() {
|
||||
wp_send_json_error( $status );
|
||||
}
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
include_once( ABSPATH . 'wp-admin/includes/theme.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
include_once ABSPATH . 'wp-admin/includes/theme.php';
|
||||
|
||||
$api = themes_api(
|
||||
'theme_information',
|
||||
@ -4133,7 +4133,7 @@ function wp_ajax_update_theme() {
|
||||
$status['oldVersion'] = $theme->get( 'Version' );
|
||||
}
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
|
||||
$current = get_site_transient( 'update_themes' );
|
||||
if ( empty( $current ) ) {
|
||||
@ -4247,7 +4247,7 @@ function wp_ajax_delete_theme() {
|
||||
wp_send_json_error( $status );
|
||||
}
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/theme.php' );
|
||||
include_once ABSPATH . 'wp-admin/includes/theme.php';
|
||||
|
||||
$result = delete_theme( $stylesheet );
|
||||
|
||||
@ -4294,8 +4294,8 @@ function wp_ajax_install_plugin() {
|
||||
wp_send_json_error( $status );
|
||||
}
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
||||
|
||||
$api = plugins_api(
|
||||
'plugin_information',
|
||||
@ -4416,7 +4416,7 @@ function wp_ajax_update_plugin() {
|
||||
$status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
|
||||
}
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
|
||||
wp_update_plugins();
|
||||
|
||||
@ -5119,7 +5119,7 @@ function wp_ajax_health_check_dotorg_communication() {
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
@ -5139,7 +5139,7 @@ function wp_ajax_health_check_is_in_debug_mode() {
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
@ -5159,7 +5159,7 @@ function wp_ajax_health_check_background_updates() {
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
@ -5180,7 +5180,7 @@ function wp_ajax_health_check_loopback_requests() {
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
$site_health = WP_Site_Health::get_instance();
|
||||
@ -5217,7 +5217,7 @@ function wp_ajax_health_check_get_sizes() {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Debug_Data' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
|
||||
}
|
||||
|
||||
$sizes_data = WP_Debug_Data::get_sizes();
|
||||
|
@ -62,7 +62,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
public function upgrade( $current, $args = array() ) {
|
||||
global $wp_filesystem;
|
||||
|
||||
include( ABSPATH . WPINC . '/version.php' ); // $wp_version;
|
||||
require ABSPATH . WPINC . '/version.php'; // $wp_version;
|
||||
|
||||
$start_time = time();
|
||||
|
||||
@ -161,7 +161,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
$wp_filesystem->chmod( $wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/update-core.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/update-core.php';
|
||||
|
||||
if ( ! function_exists( 'update_core' ) ) {
|
||||
WP_Upgrader::release_lock( 'core_updater' );
|
||||
@ -270,7 +270,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
* @return bool True if we should update to the offered version, otherwise false.
|
||||
*/
|
||||
public static function should_update_to_version( $offered_ver ) {
|
||||
include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z
|
||||
require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
||||
|
||||
$current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
|
||||
$new_branch = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y
|
||||
|
@ -903,7 +903,7 @@ if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) {
|
||||
$mod_sockets = extension_loaded( 'sockets' );
|
||||
}
|
||||
|
||||
require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
|
||||
require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
|
||||
|
||||
if ( $mod_sockets ) {
|
||||
class ftp extends ftp_sockets {}
|
||||
|
@ -93,7 +93,7 @@ class WP_Community_Events {
|
||||
}
|
||||
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$api_url = 'http://api.wordpress.org/events/1.0/';
|
||||
$request_args = $this->get_request_args( $location_search, $timezone );
|
||||
|
@ -33,7 +33,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
||||
$this->errors = new WP_Error();
|
||||
|
||||
// Check if possible to use ftp functions.
|
||||
if ( ! include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) {
|
||||
if ( ! include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) {
|
||||
return;
|
||||
}
|
||||
$this->ftp = new ftp();
|
||||
|
@ -85,7 +85,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
* @global string $term
|
||||
*/
|
||||
public function prepare_items() {
|
||||
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
|
||||
include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
||||
|
||||
global $tabs, $tab, $paged, $type, $term;
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ class WP_Site_Health_Auto_Updates {
|
||||
* @since 5.2.0
|
||||
*/
|
||||
public function __construct() {
|
||||
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
}
|
||||
|
||||
|
||||
@ -166,7 +166,7 @@ class WP_Site_Health_Auto_Updates {
|
||||
*/
|
||||
public function test_wp_automatic_updates_disabled() {
|
||||
if ( ! class_exists( 'WP_Automatic_Updater' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php';
|
||||
}
|
||||
|
||||
$auto_updates = new WP_Automatic_Updater();
|
||||
@ -336,7 +336,7 @@ class WP_Site_Health_Auto_Updates {
|
||||
function test_all_files_writable() {
|
||||
global $wp_filesystem;
|
||||
|
||||
include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
||||
require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
||||
|
||||
$skin = new Automatic_Upgrader_Skin;
|
||||
$success = $skin->request_filesystem_credentials( false, ABSPATH );
|
||||
@ -414,7 +414,7 @@ class WP_Site_Health_Auto_Updates {
|
||||
* @return array|bool The test results. False if it isn't a development version.
|
||||
*/
|
||||
function test_accepts_dev_updates() {
|
||||
include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
||||
require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
||||
// Only for dev versions.
|
||||
if ( false === strpos( $wp_version, '-' ) ) {
|
||||
return false;
|
||||
|
@ -1632,7 +1632,7 @@ class WP_Site_Health {
|
||||
);
|
||||
|
||||
if ( ! class_exists( 'WP_Site_Health_Auto_Updates' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php';
|
||||
}
|
||||
|
||||
// Run the auto-update tests in a separate class,
|
||||
@ -2223,7 +2223,7 @@ class WP_Site_Health {
|
||||
*/
|
||||
public function wp_cron_scheduled_check() {
|
||||
// Bootstrap wp-admin, as WP_Cron doesn't do this for us.
|
||||
require_once( trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php' );
|
||||
require_once trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php';
|
||||
|
||||
$tests = WP_Site_Health::get_tests();
|
||||
|
||||
|
@ -34,7 +34,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||
* @global array $theme_field_defaults
|
||||
*/
|
||||
public function prepare_items() {
|
||||
include( ABSPATH . 'wp-admin/includes/theme-install.php' );
|
||||
require ABSPATH . 'wp-admin/includes/theme-install.php';
|
||||
|
||||
global $tabs, $tab, $paged, $type, $theme_field_defaults;
|
||||
wp_reset_vars( array( 'tab' ) );
|
||||
|
@ -209,6 +209,6 @@ function enqueue_comment_hotkeys_js() {
|
||||
*/
|
||||
function comment_footer_die( $msg ) {
|
||||
echo "<div class='wrap'><p>$msg</p></div>";
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
die;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
function wp_credits() {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$locale = get_user_locale();
|
||||
|
||||
|
@ -45,7 +45,7 @@ function wp_dashboard_setup() {
|
||||
// Site Health.
|
||||
if ( current_user_can( 'view_site_health_checks' ) ) {
|
||||
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();
|
||||
@ -1665,7 +1665,7 @@ function wp_check_browser_version() {
|
||||
$response = get_site_transient( 'browser_' . $key );
|
||||
if ( false === $response ) {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$url = 'http://api.wordpress.org/core/browse-happy/1.1/';
|
||||
$options = array(
|
||||
|
@ -763,7 +763,7 @@ function wp_tiny_mce( $teeny = false, $settings = false ) {
|
||||
static $num = 1;
|
||||
|
||||
if ( ! class_exists( '_WP_Editors', false ) )
|
||||
require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
|
||||
require_once ABSPATH . WPINC . '/class-wp-editor.php';
|
||||
|
||||
$editor_id = 'content' . $num++;
|
||||
|
||||
@ -1157,7 +1157,7 @@ function wp_update_core($current, $feedback = '') {
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Core_Upgrader();
|
||||
return $upgrader->upgrade($current);
|
||||
|
||||
@ -1180,7 +1180,7 @@ function wp_update_plugin($plugin, $feedback = '') {
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Plugin_Upgrader();
|
||||
return $upgrader->upgrade($plugin);
|
||||
}
|
||||
@ -1202,7 +1202,7 @@ function wp_update_theme($theme, $feedback = '') {
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Theme_Upgrader();
|
||||
return $upgrader->upgrade($theme);
|
||||
}
|
||||
|
@ -1597,7 +1597,7 @@ function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) {
|
||||
|
||||
mbstring_binary_safe_encoding();
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-pclzip.php';
|
||||
|
||||
$archive = new PclZip( $file );
|
||||
|
||||
@ -1769,7 +1769,7 @@ function copy_dir( $from, $to, $skip_list = array() ) {
|
||||
function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
global $wp_filesystem;
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
|
||||
|
||||
$method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership );
|
||||
|
||||
@ -1795,7 +1795,7 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
|
||||
return;
|
||||
}
|
||||
|
||||
require_once( $abstraction_file );
|
||||
require_once $abstraction_file;
|
||||
}
|
||||
$method = "WP_Filesystem_$method";
|
||||
|
||||
|
@ -137,7 +137,7 @@ function wp_import_handle_upload() {
|
||||
*/
|
||||
function wp_get_popular_importers() {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$locale = get_user_locale();
|
||||
$cache_key = 'popular_importers_' . md5( $locale . $wp_version );
|
||||
|
@ -46,7 +46,7 @@ function _get_list_table( $class, $args = array() ) {
|
||||
|
||||
if ( isset( $core_classes[ $class ] ) ) {
|
||||
foreach ( (array) $core_classes[ $class ] as $required ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php';
|
||||
}
|
||||
|
||||
if ( isset( $args['screen'] ) ) {
|
||||
|
@ -3458,7 +3458,7 @@ function wp_read_video_metadata( $file ) {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'getID3', false ) ) {
|
||||
require( ABSPATH . WPINC . '/ID3/getid3.php' );
|
||||
require ABSPATH . WPINC . '/ID3/getid3.php';
|
||||
}
|
||||
|
||||
$id3 = new getID3();
|
||||
@ -3569,7 +3569,7 @@ function wp_read_audio_metadata( $file ) {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'getID3', false ) ) {
|
||||
require( ABSPATH . WPINC . '/ID3/getid3.php' );
|
||||
require ABSPATH . WPINC . '/ID3/getid3.php';
|
||||
}
|
||||
|
||||
$id3 = new getID3();
|
||||
|
@ -254,7 +254,7 @@ function save_mod_rewrite_rules() {
|
||||
global $wp_rewrite;
|
||||
|
||||
// Ensure get_home_path() is declared.
|
||||
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
|
||||
$home_path = get_home_path();
|
||||
$htaccess_file = $home_path . '.htaccess';
|
||||
@ -291,7 +291,7 @@ function iis7_save_url_rewrite_rules() {
|
||||
global $wp_rewrite;
|
||||
|
||||
// Ensure get_home_path() is declared.
|
||||
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
|
||||
$home_path = get_home_path();
|
||||
$web_config_file = $home_path . 'web.config';
|
||||
|
@ -8,10 +8,10 @@
|
||||
*/
|
||||
|
||||
/** Walker_Nav_Menu_Edit class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php';
|
||||
|
||||
/** Walker_Nav_Menu_Checklist class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php';
|
||||
|
||||
/**
|
||||
* Prints the appropriate response to a menu quick search.
|
||||
|
@ -116,7 +116,7 @@ function network_step1( $errors = false ) {
|
||||
'<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>'
|
||||
) . '</p></div>';
|
||||
echo '</div>';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
die();
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ function network_step1( $errors = false ) {
|
||||
) . '</p></div>';
|
||||
echo '<p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>';
|
||||
echo '</div>';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
die();
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ function network_step1( $errors = false ) {
|
||||
) . '</p>';
|
||||
echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>';
|
||||
echo '</div>';
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
die();
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@
|
||||
*/
|
||||
function plugins_api( $action, $args = array() ) {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
if ( is_array( $args ) ) {
|
||||
$args = (object) $args;
|
||||
|
@ -656,7 +656,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen
|
||||
if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
|
||||
define( 'WP_SANDBOX_SCRAPING', true );
|
||||
}
|
||||
include_once( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
include_once WP_PLUGIN_DIR . '/' . $plugin;
|
||||
$plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin.
|
||||
|
||||
if ( ! $silent ) {
|
||||
@ -907,9 +907,9 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
|
||||
if ( false === $credentials ) {
|
||||
if ( ! empty( $data ) ) {
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
echo $data;
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
exit;
|
||||
}
|
||||
return;
|
||||
@ -922,9 +922,9 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
$data = ob_get_clean();
|
||||
|
||||
if ( ! empty( $data ) ) {
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
echo $data;
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
exit;
|
||||
}
|
||||
return;
|
||||
@ -1219,7 +1219,7 @@ function uninstall_plugin( $plugin ) {
|
||||
|
||||
define( 'WP_UNINSTALL_PLUGIN', $file );
|
||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
|
||||
include( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' );
|
||||
include WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php';
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -1231,7 +1231,7 @@ function uninstall_plugin( $plugin ) {
|
||||
unset( $uninstallable_plugins );
|
||||
|
||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
|
||||
include( WP_PLUGIN_DIR . '/' . $file );
|
||||
include WP_PLUGIN_DIR . '/' . $file;
|
||||
|
||||
add_action( "uninstall_{$file}", $callable );
|
||||
|
||||
@ -2252,7 +2252,7 @@ function plugin_sandbox_scrape( $plugin ) {
|
||||
define( 'WP_SANDBOX_SCRAPING', true );
|
||||
}
|
||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
include( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
include WP_PLUGIN_DIR . '/' . $plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2307,7 +2307,7 @@ function wp_add_privacy_policy_content( $plugin_name, $policy_text ) {
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
|
||||
}
|
||||
|
||||
WP_Privacy_Policy_Content::add( $plugin_name, $policy_text );
|
||||
|
@ -9,10 +9,10 @@
|
||||
*/
|
||||
|
||||
/** Walker_Category_Checklist class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php';
|
||||
|
||||
/** WP_Internal_Pointers class */
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php';
|
||||
|
||||
//
|
||||
// Category Checklists.
|
||||
|
@ -35,9 +35,9 @@ function delete_theme( $stylesheet, $redirect = '' ) {
|
||||
|
||||
if ( false === $credentials ) {
|
||||
if ( ! empty( $data ) ) {
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
echo $data;
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
exit;
|
||||
}
|
||||
return;
|
||||
@ -50,9 +50,9 @@ function delete_theme( $stylesheet, $redirect = '' ) {
|
||||
$data = ob_get_clean();
|
||||
|
||||
if ( ! empty( $data ) ) {
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
echo $data;
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
exit;
|
||||
}
|
||||
return;
|
||||
@ -435,7 +435,7 @@ function get_theme_feature_list( $api = true ) {
|
||||
*/
|
||||
function themes_api( $action, $args = array() ) {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
if ( is_array( $args ) ) {
|
||||
$args = (object) $args;
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
function translations_api( $type, $args = null ) {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) {
|
||||
return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
|
||||
@ -128,7 +128,7 @@ function wp_get_available_translations() {
|
||||
}
|
||||
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$api = translations_api( 'core', array( 'version' => $wp_version ) );
|
||||
|
||||
|
@ -936,7 +936,7 @@ function update_core( $from, $to ) {
|
||||
}
|
||||
|
||||
$wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );
|
||||
require( WP_CONTENT_DIR . '/upgrade/version-current.php' );
|
||||
require WP_CONTENT_DIR . '/upgrade/version-current.php';
|
||||
$wp_filesystem->delete( $versions_file );
|
||||
|
||||
$php_version = phpversion();
|
||||
@ -1433,7 +1433,7 @@ window.location = 'about.php?updated';
|
||||
<?php
|
||||
|
||||
// Include admin-footer.php and exit.
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ function find_core_auto_update() {
|
||||
return false;
|
||||
}
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
|
||||
$auto_update = false;
|
||||
$upgrader = new WP_Automatic_Updater;
|
||||
@ -724,7 +724,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
|
||||
*/
|
||||
function maintenance_nag() {
|
||||
// Include an unmodified $wp_version.
|
||||
include( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
global $upgrading;
|
||||
$nag = isset( $upgrading );
|
||||
if ( ! $nag ) {
|
||||
|
@ -10,14 +10,14 @@
|
||||
|
||||
/** Include user installation customization script. */
|
||||
if ( file_exists( WP_CONTENT_DIR . '/install.php' ) ) {
|
||||
require( WP_CONTENT_DIR . '/install.php' );
|
||||
require WP_CONTENT_DIR . '/install.php';
|
||||
}
|
||||
|
||||
/** WordPress Administration API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/admin.php';
|
||||
|
||||
/** WordPress Schema API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/schema.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/schema.php';
|
||||
|
||||
if ( ! function_exists( 'wp_install' ) ) :
|
||||
/**
|
||||
@ -358,7 +358,7 @@ Commenter avatars come from <a href="https://gravatar.com">Gravatar</a>.'
|
||||
$privacy_policy_content = get_site_option( 'default_privacy_policy_content' );
|
||||
} else {
|
||||
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );
|
||||
include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
|
||||
}
|
||||
|
||||
$privacy_policy_content = WP_Privacy_Policy_Content::get_default_content();
|
||||
|
@ -7,10 +7,10 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
/** Load WordPress dashboard API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
|
||||
wp_dashboard_setup();
|
||||
|
||||
@ -108,7 +108,7 @@ $screen->set_help_sidebar(
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
@ -153,4 +153,4 @@ if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) )
|
||||
<?php
|
||||
wp_print_community_events_templates();
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Plugins may load this file to gain access to special helper functions for
|
||||
* plugin installation. This file is not included by WordPress and it is
|
||||
* recommended, to prevent fatal errors, that this file is included using
|
||||
* require_once().
|
||||
* require_once.
|
||||
*
|
||||
* These functions are not optimized for speed, but they should only be used
|
||||
* once in a while, so speed shouldn't be a concern. If it is and you are
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
|
||||
if ( ! function_exists( 'maybe_create_table' ) ) :
|
||||
/**
|
||||
|
@ -33,16 +33,16 @@ if ( false ) {
|
||||
define( 'WP_INSTALLING', true );
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
|
||||
/** Load WordPress Administration Upgrade API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
||||
|
||||
/** Load WordPress Translation Install API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
||||
|
||||
/** Load wpdb */
|
||||
require_once( ABSPATH . WPINC . '/wp-db.php' );
|
||||
require_once ABSPATH . WPINC . '/wp-db.php';
|
||||
|
||||
nocache_headers();
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_links' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
|
||||
@ -26,6 +26,6 @@ if ( wp_is_mobile() ) {
|
||||
}
|
||||
|
||||
$link = get_default_link_to_edit();
|
||||
include( ABSPATH . 'wp-admin/edit-link-form.php' );
|
||||
require ABSPATH . 'wp-admin/edit-link-form.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
if ( ! current_user_can( 'manage_links' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
|
||||
}
|
||||
@ -85,7 +85,7 @@ get_current_screen()->set_screen_reader_content(
|
||||
)
|
||||
);
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_links' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
|
||||
@ -134,4 +134,4 @@ if ( isset( $_REQUEST['deleted'] ) ) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
|
||||
|
||||
@ -117,8 +117,8 @@ switch ( $action ) {
|
||||
wp_die( __( 'Link not found.' ) );
|
||||
}
|
||||
|
||||
include( ABSPATH . 'wp-admin/edit-link-form.php' );
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require ABSPATH . 'wp-admin/edit-link-form.php';
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -9,7 +9,7 @@ error_reporting( 0 );
|
||||
|
||||
/** Set ABSPATH for execution */
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
|
||||
define( 'ABSPATH', dirname( __DIR__ ) . '/' );
|
||||
}
|
||||
|
||||
define( 'WPINC', 'wp-includes' );
|
||||
@ -33,9 +33,9 @@ if ( empty( $load ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require( ABSPATH . 'wp-admin/includes/noop.php' );
|
||||
require( ABSPATH . WPINC . '/script-loader.php' );
|
||||
require( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . 'wp-admin/includes/noop.php';
|
||||
require ABSPATH . WPINC . '/script-loader.php';
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$expires_offset = 31536000; // 1 year.
|
||||
$out = '';
|
||||
|
@ -9,14 +9,14 @@ error_reporting( 0 );
|
||||
|
||||
/** Set ABSPATH for execution */
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
|
||||
define( 'ABSPATH', dirname( __DIR__ ) . '/' );
|
||||
}
|
||||
|
||||
define( 'WPINC', 'wp-includes' );
|
||||
|
||||
require( ABSPATH . 'wp-admin/includes/noop.php' );
|
||||
require( ABSPATH . WPINC . '/script-loader.php' );
|
||||
require( ABSPATH . WPINC . '/version.php' );
|
||||
require ABSPATH . 'wp-admin/includes/noop.php';
|
||||
require ABSPATH . WPINC . '/script-loader.php';
|
||||
require ABSPATH . WPINC . '/version.php';
|
||||
|
||||
$protocol = $_SERVER['SERVER_PROTOCOL'];
|
||||
if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
define( 'WP_REPAIRING', true );
|
||||
|
||||
require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' );
|
||||
require_once dirname( dirname( __DIR__ ) ) . '/wp-load.php';
|
||||
|
||||
header( 'Content-Type: text/html; charset=utf-8' );
|
||||
?>
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'upload_files' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
|
||||
@ -61,7 +61,7 @@ get_current_screen()->set_help_sidebar(
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
$form_class = 'media-upload-form type-form validate';
|
||||
|
||||
@ -86,4 +86,4 @@ if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -14,7 +14,7 @@ if ( ! isset( $_GET['inline'] ) ) {
|
||||
}
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'upload_files' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 );
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
$parent_file = 'upload.php';
|
||||
$submenu_file = 'upload.php';
|
||||
@ -97,7 +97,7 @@ switch ( $action ) {
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
$parent_file = 'upload.php';
|
||||
$message = '';
|
||||
@ -166,7 +166,7 @@ switch ( $action ) {
|
||||
|
||||
<?php
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
||||
exit;
|
||||
|
||||
|
@ -323,4 +323,4 @@ $compat = array(
|
||||
'themes' => 'appearance',
|
||||
);
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/menu.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/menu.php';
|
||||
|
@ -7,6 +7,6 @@
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*/
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
wp_redirect( admin_url( 'edit-comments.php?comment_status=moderated' ) );
|
||||
exit;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url() );
|
||||
exit;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||
@ -37,7 +37,7 @@ $user = wp_get_current_user();
|
||||
|
||||
$title = __( 'Delete Site' );
|
||||
$parent_file = 'tools.php';
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
echo '<div class="wrap">';
|
||||
echo '<h1>' . esc_html( $title ) . '</h1>';
|
||||
@ -133,4 +133,4 @@ Webmaster
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url() );
|
||||
exit;
|
||||
|
@ -7,6 +7,6 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url( 'settings.php' ) );
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url( 'sites.php' ) );
|
||||
exit;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url( 'themes.php' ) );
|
||||
exit;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url( 'upgrade.php' ) );
|
||||
exit;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
wp_redirect( network_admin_url( 'users.php' ) );
|
||||
exit;
|
||||
|
@ -7,7 +7,7 @@
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||
@ -52,7 +52,7 @@ get_current_screen()->set_help_sidebar(
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
if ( $updated ) { ?>
|
||||
<div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
|
||||
@ -157,4 +157,4 @@ else :
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -10,10 +10,10 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
// Load all the nav menu interface functions.
|
||||
require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
|
||||
|
||||
if ( ! current_theme_supports( 'menus' ) && ! current_theme_supports( 'widgets' ) ) {
|
||||
wp_die( __( 'Your theme does not support navigation menus or widgets.' ) );
|
||||
@ -606,7 +606,7 @@ get_current_screen()->set_help_sidebar(
|
||||
);
|
||||
|
||||
// Get the admin header.
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1>
|
||||
@ -1035,4 +1035,4 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</div><!-- /#nav-menus-frame -->
|
||||
<?php endif; ?>
|
||||
</div><!-- /.wrap-->
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
@ -13,7 +13,7 @@
|
||||
define( 'WP_INSTALLING_NETWORK', true );
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'setup_network' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
|
||||
@ -30,7 +30,7 @@ if ( is_multisite() ) {
|
||||
}
|
||||
}
|
||||
|
||||
require_once( dirname( __FILE__ ) . '/includes/network.php' );
|
||||
require_once __DIR__ . '/includes/network.php';
|
||||
|
||||
// We need to create references to ms global tables to enable Network.
|
||||
foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) {
|
||||
@ -81,7 +81,7 @@ get_current_screen()->set_help_sidebar(
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1><?php echo esc_html( $title ); ?></h1>
|
||||
@ -91,7 +91,7 @@ if ( $_POST ) {
|
||||
|
||||
check_admin_referer( 'install-network-1' );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
||||
// Create network tables.
|
||||
install_network();
|
||||
$base = parse_url( trailingslashit( get_option( 'home' ) ), PHP_URL_PATH );
|
||||
@ -118,4 +118,4 @@ if ( $_POST ) {
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/about.php' );
|
||||
require ABSPATH . 'wp-admin/about.php';
|
||||
|
@ -10,7 +10,7 @@
|
||||
define( 'WP_NETWORK_ADMIN', true );
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
|
||||
require_once dirname( __DIR__ ) . '/admin.php';
|
||||
|
||||
// Do not remove this check. It is required by individual network admin pages.
|
||||
if ( ! is_multisite() ) {
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/credits.php' );
|
||||
require ABSPATH . 'wp-admin/credits.php';
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
|
||||
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/freedoms.php' );
|
||||
require ABSPATH . 'wp-admin/freedoms.php';
|
||||
|
@ -8,10 +8,10 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
/** Load WordPress dashboard API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_network' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
|
||||
@ -62,7 +62,7 @@ wp_enqueue_script( 'dashboard' );
|
||||
wp_enqueue_script( 'plugin-install' );
|
||||
add_thickbox();
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
?>
|
||||
|
||||
@ -80,4 +80,4 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
<?php
|
||||
wp_print_community_events_templates();
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -115,4 +115,4 @@ unset( $update_data );
|
||||
|
||||
$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/includes/menu.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/menu.php';
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/plugin-editor.php' );
|
||||
require ABSPATH . 'wp-admin/plugin-editor.php';
|
||||
|
@ -12,6 +12,6 @@ if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) {
|
||||
}
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/plugin-install.php' );
|
||||
require ABSPATH . 'wp-admin/plugin-install.php';
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/plugins.php' );
|
||||
require ABSPATH . 'wp-admin/plugins.php';
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/privacy.php' );
|
||||
require ABSPATH . 'wp-admin/privacy.php';
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/profile.php' );
|
||||
require ABSPATH . 'wp-admin/profile.php';
|
||||
|
@ -8,10 +8,10 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
/** WordPress Translation Installation API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_network_options' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
|
||||
@ -135,7 +135,7 @@ if ( $_POST ) {
|
||||
exit();
|
||||
}
|
||||
|
||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
if ( isset( $_GET['updated'] ) ) {
|
||||
?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div>
|
||||
@ -486,4 +486,4 @@ if ( isset( $_GET['updated'] ) ) {
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/network.php' );
|
||||
require ABSPATH . 'wp-admin/network.php';
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_sites' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
|
||||
@ -127,7 +127,7 @@ $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
?>
|
||||
|
||||
@ -206,4 +206,4 @@ if ( ! empty( $messages ) ) {
|
||||
|
||||
</div>
|
||||
<?php
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -8,10 +8,10 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
/** WordPress Translation Installation API */
|
||||
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
|
||||
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
||||
|
||||
if ( ! current_user_can( 'create_sites' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
|
||||
@ -202,7 +202,7 @@ $parent_file = 'sites.php';
|
||||
|
||||
wp_enqueue_script( 'user-suggest' );
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
?>
|
||||
|
||||
@ -300,4 +300,4 @@ printf(
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_sites' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
|
||||
@ -85,7 +85,7 @@ $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
?>
|
||||
|
||||
@ -173,4 +173,4 @@ if ( ! empty( $messages ) ) {
|
||||
|
||||
</div>
|
||||
<?php
|
||||
require( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
if ( ! current_user_can( 'manage_sites' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) );
|
||||
@ -172,7 +172,7 @@ $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) );
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php'; ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1 id="edit-site"><?php echo $title; ?></h1>
|
||||
@ -226,4 +226,4 @@ if ( isset( $_GET['enabled'] ) ) {
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
||||
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user