-
diff --git src/_index.php src/_index.php
index 86334797d6..cc2a532abe 100644
|
|
|
14 | 14 | define( 'WP_USE_THEMES', true ); |
15 | 15 | |
16 | 16 | /** Loads the WordPress Environment and Template */ |
17 | | require( dirname( __FILE__ ) . '/wp-blog-header.php' ); |
| 17 | require __DIR__ . '/wp-blog-header.php'; |
-
diff --git src/index.php src/index.php
index 9e8f9ec856..f6613cb54f 100644
|
|
|
8 | 8 | |
9 | 9 | /** Define ABSPATH as this file's directory */ |
10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
11 | | define( 'ABSPATH', dirname( __FILE__ ) . '/' ); |
| 11 | define( 'ABSPATH', __DIR__ . '/' ); |
12 | 12 | } |
13 | 13 | |
14 | 14 | if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) { |
… |
… |
if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) { |
17 | 17 | } |
18 | 18 | |
19 | 19 | define( 'WPINC', 'wp-includes' ); |
20 | | require_once( ABSPATH . WPINC . '/load.php' ); |
| 20 | require_once ABSPATH . WPINC . '/load.php'; |
21 | 21 | |
22 | 22 | // Standardize $_SERVER variables across setups. |
23 | 23 | wp_fix_server_vars(); |
24 | 24 | |
25 | | require_once( ABSPATH . WPINC . '/functions.php' ); |
| 25 | require_once ABSPATH . WPINC . '/functions.php'; |
26 | 26 | define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); |
27 | | require_once( ABSPATH . WPINC . '/version.php' ); |
| 27 | require_once ABSPATH . WPINC . '/version.php'; |
28 | 28 | |
29 | 29 | wp_check_php_mysql_versions(); |
30 | 30 | wp_load_translations_early(); |
-
diff --git src/js/_enqueues/vendor/tinymce/wp-tinymce.php src/js/_enqueues/vendor/tinymce/wp-tinymce.php
index 3d7b2347f6..fa89ca9272 100644
|
|
|
11 | 11 | */ |
12 | 12 | error_reporting( 0 ); |
13 | 13 | |
14 | | $basepath = dirname( __FILE__ ); |
| 14 | $basepath = __DIR__; |
15 | 15 | |
16 | 16 | function get_file( $path ) { |
17 | 17 | |
-
diff --git src/wp-activate.php src/wp-activate.php
index 0349f3fa37..efd59fe1a9 100644
|
|
|
9 | 9 | define( 'WP_INSTALLING', true ); |
10 | 10 | |
11 | 11 | /** Sets up the WordPress Environment. */ |
12 | | require( dirname( __FILE__ ) . '/wp-load.php' ); |
| 12 | require __DIR__ . '/wp-load.php'; |
13 | 13 | |
14 | | require( dirname( __FILE__ ) . '/wp-blog-header.php' ); |
| 14 | require __DIR__ . '/wp-blog-header.php'; |
15 | 15 | |
16 | 16 | if ( ! is_multisite() ) { |
17 | 17 | wp_redirect( wp_registration_url() ); |
-
diff --git src/wp-admin/_index.php src/wp-admin/_index.php
index 9389409e88..22d9100d0c 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | /** Load WordPress dashboard API */ |
13 | | require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); |
| 13 | require_once ABSPATH . 'wp-admin/includes/dashboard.php'; |
14 | 14 | |
15 | 15 | wp_dashboard_setup(); |
16 | 16 | |
… |
… |
$screen->set_help_sidebar( |
108 | 108 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
109 | 109 | ); |
110 | 110 | |
111 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 111 | include ABSPATH . 'wp-admin/admin-header.php'; |
112 | 112 | ?> |
113 | 113 | |
114 | 114 | <div class="wrap"> |
… |
… |
if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) |
153 | 153 | <?php |
154 | 154 | wp_print_community_events_templates(); |
155 | 155 | |
156 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 156 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/about.php src/wp-admin/about.php
index 3a7865a9fe..d496bff9b7 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | /* translators: Page title of the About WordPress page in the admin. */ |
13 | 13 | $title = _x( 'About', 'page title' ); |
14 | 14 | |
15 | 15 | list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
16 | 16 | |
17 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 17 | include ABSPATH . 'wp-admin/admin-header.php'; |
18 | 18 | ?> |
19 | 19 | <div class="wrap about__container"> |
20 | 20 | |
… |
… |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
202 | 202 | </div> |
203 | 203 | <?php |
204 | 204 | |
205 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 205 | include ABSPATH . 'wp-admin/admin-footer.php'; |
206 | 206 | |
207 | 207 | // These are strings we may use to describe maintenance/security releases, where we aim for no new strings. |
208 | 208 | return; |
-
diff --git src/wp-admin/admin-ajax.php src/wp-admin/admin-ajax.php
index deea44152c..cc5a8db499 100644
|
|
if ( ! defined( 'WP_ADMIN' ) ) { |
19 | 19 | } |
20 | 20 | |
21 | 21 | /** Load WordPress Bootstrap */ |
22 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 22 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
23 | 23 | |
24 | 24 | /** Allow for cross-domain requests (from the front end). */ |
25 | 25 | send_origin_headers(); |
… |
… |
if ( empty( $_REQUEST['action'] ) ) { |
33 | 33 | } |
34 | 34 | |
35 | 35 | /** Load WordPress Administration APIs */ |
36 | | require_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
| 36 | require_once ABSPATH . 'wp-admin/includes/admin.php'; |
37 | 37 | |
38 | 38 | /** Load Ajax Handlers for WordPress Core */ |
39 | | require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); |
| 39 | require_once ABSPATH . 'wp-admin/includes/ajax-actions.php'; |
40 | 40 | |
41 | 41 | send_nosniff_header(); |
42 | 42 | nocache_headers(); |
-
diff --git src/wp-admin/admin-functions.php src/wp-admin/admin-functions.php
index 1185268744..a9ff3f44b9 100644
|
|
|
12 | 12 | _deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' ); |
13 | 13 | |
14 | 14 | /** WordPress Administration API: Includes all Administration functions. */ |
15 | | require_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
| 15 | require_once ABSPATH . 'wp-admin/includes/admin.php'; |
-
diff --git src/wp-admin/admin-header.php src/wp-admin/admin-header.php
index 631bc67ef3..43652039f1 100644
|
|
|
8 | 8 | |
9 | 9 | header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
10 | 10 | if ( ! defined( 'WP_ADMIN' ) ) { |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** |
… |
… |
if ( current_user_can( 'customize' ) ) { |
233 | 233 | ?> |
234 | 234 | |
235 | 235 | <div id="wpwrap"> |
236 | | <?php require( ABSPATH . 'wp-admin/menu-header.php' ); ?> |
| 236 | <?php require ABSPATH . 'wp-admin/menu-header.php'; ?> |
237 | 237 | <div id="wpcontent"> |
238 | 238 | |
239 | 239 | <?php |
… |
… |
if ( is_network_admin() ) { |
289 | 289 | do_action( 'all_admin_notices' ); |
290 | 290 | |
291 | 291 | if ( $parent_file == 'options-general.php' ) { |
292 | | require( ABSPATH . 'wp-admin/options-head.php' ); |
| 292 | require ABSPATH . 'wp-admin/options-head.php'; |
293 | 293 | } |
-
diff --git src/wp-admin/admin-post.php src/wp-admin/admin-post.php
index 48e76feec5..803a00652c 100644
|
|
if ( ! defined( 'WP_ADMIN' ) ) { |
14 | 14 | } |
15 | 15 | |
16 | 16 | if ( defined( 'ABSPATH' ) ) { |
17 | | require_once( ABSPATH . 'wp-load.php' ); |
| 17 | require_once ABSPATH . 'wp-load.php'; |
18 | 18 | } else { |
19 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 19 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
20 | 20 | } |
21 | 21 | |
22 | 22 | /** Allow for cross-domain requests (from the front end). */ |
23 | 23 | send_origin_headers(); |
24 | 24 | |
25 | | require_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
| 25 | require_once ABSPATH . 'wp-admin/includes/admin.php'; |
26 | 26 | |
27 | 27 | nocache_headers(); |
28 | 28 | |
-
diff --git src/wp-admin/admin.php src/wp-admin/admin.php
index 5f8916ed41..029147c867 100644
|
|
if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) { |
31 | 31 | define( 'WP_LOAD_IMPORTERS', true ); |
32 | 32 | } |
33 | 33 | |
34 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 34 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
35 | 35 | |
36 | 36 | nocache_headers(); |
37 | 37 | |
… |
… |
if ( get_option( 'db_upgraded' ) ) { |
73 | 73 | * attempt to do no more than threshold value, with some +/- allowed. |
74 | 74 | */ |
75 | 75 | if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) == 1 ) ) { |
76 | | require_once( ABSPATH . WPINC . '/http.php' ); |
| 76 | require_once ABSPATH . WPINC . '/http.php'; |
77 | 77 | $response = wp_remote_get( |
78 | 78 | admin_url( 'upgrade.php?step=1' ), |
79 | 79 | array( |
… |
… |
if ( get_option( 'db_upgraded' ) ) { |
89 | 89 | } |
90 | 90 | } |
91 | 91 | |
92 | | require_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
| 92 | require_once ABSPATH . 'wp-admin/includes/admin.php'; |
93 | 93 | |
94 | 94 | auth_redirect(); |
95 | 95 | |
… |
… |
if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) |
146 | 146 | } |
147 | 147 | |
148 | 148 | if ( WP_NETWORK_ADMIN ) { |
149 | | require( ABSPATH . 'wp-admin/network/menu.php' ); |
| 149 | require ABSPATH . 'wp-admin/network/menu.php'; |
150 | 150 | } elseif ( WP_USER_ADMIN ) { |
151 | | require( ABSPATH . 'wp-admin/user/menu.php' ); |
| 151 | require ABSPATH . 'wp-admin/user/menu.php'; |
152 | 152 | } else { |
153 | | require( ABSPATH . 'wp-admin/menu.php' ); |
| 153 | require ABSPATH . 'wp-admin/menu.php'; |
154 | 154 | } |
155 | 155 | |
156 | 156 | if ( current_user_can( 'manage_options' ) ) { |
… |
… |
if ( isset( $plugin_page ) ) { |
231 | 231 | */ |
232 | 232 | do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
233 | 233 | if ( ! isset( $_GET['noheader'] ) ) { |
234 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 234 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
235 | 235 | } |
236 | 236 | |
237 | 237 | /** |
… |
… |
if ( isset( $plugin_page ) ) { |
277 | 277 | do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
278 | 278 | |
279 | 279 | if ( ! isset( $_GET['noheader'] ) ) { |
280 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 280 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
281 | 281 | } |
282 | 282 | |
283 | 283 | if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) { |
284 | | include( WPMU_PLUGIN_DIR . "/$plugin_page" ); |
| 284 | include WPMU_PLUGIN_DIR . "/$plugin_page"; |
285 | 285 | } else { |
286 | | include( WP_PLUGIN_DIR . "/$plugin_page" ); |
| 286 | include WP_PLUGIN_DIR . "/$plugin_page"; |
287 | 287 | } |
288 | 288 | } |
289 | 289 | |
290 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 290 | include ABSPATH . 'wp-admin/admin-footer.php'; |
291 | 291 | |
292 | 292 | exit(); |
293 | 293 | } elseif ( isset( $_GET['import'] ) ) { |
… |
… |
if ( isset( $plugin_page ) ) { |
322 | 322 | $title = __( 'Import' ); |
323 | 323 | |
324 | 324 | if ( ! isset( $_GET['noheader'] ) ) { |
325 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 325 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
326 | 326 | } |
327 | 327 | |
328 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| 328 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
329 | 329 | |
330 | 330 | define( 'WP_IMPORTING', true ); |
331 | 331 | |
… |
… |
if ( isset( $plugin_page ) ) { |
345 | 345 | |
346 | 346 | call_user_func( $wp_importers[ $importer ][2] ); |
347 | 347 | |
348 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 348 | include ABSPATH . 'wp-admin/admin-footer.php'; |
349 | 349 | |
350 | 350 | // Make sure rules are flushed |
351 | 351 | flush_rewrite_rules( false ); |
-
diff --git src/wp-admin/async-upload.php src/wp-admin/async-upload.php
index 4d37f7f644..4017e3bbe9 100644
|
|
if ( ! defined( 'WP_ADMIN' ) ) { |
15 | 15 | } |
16 | 16 | |
17 | 17 | if ( defined( 'ABSPATH' ) ) { |
18 | | require_once( ABSPATH . 'wp-load.php' ); |
| 18 | require_once ABSPATH . 'wp-load.php'; |
19 | 19 | } else { |
20 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 20 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
21 | 21 | } |
22 | 22 | |
23 | | require_once( ABSPATH . 'wp-admin/admin.php' ); |
| 23 | require_once ABSPATH . 'wp-admin/admin.php'; |
24 | 24 | |
25 | 25 | header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); |
26 | 26 | |
27 | 27 | if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { |
28 | | include( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); |
| 28 | include ABSPATH . 'wp-admin/includes/ajax-actions.php'; |
29 | 29 | |
30 | 30 | send_nosniff_header(); |
31 | 31 | nocache_headers(); |
-
diff --git src/wp-admin/comment.php src/wp-admin/comment.php
index 145cd7a5ea..a597361d1d 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | $parent_file = 'edit-comments.php'; |
13 | 13 | $submenu_file = 'edit-comments.php'; |
… |
… |
switch ( $action ) { |
58 | 58 | ); |
59 | 59 | |
60 | 60 | wp_enqueue_script( 'comment' ); |
61 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 61 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
62 | 62 | |
63 | 63 | $comment_id = absint( $_GET['c'] ); |
64 | 64 | |
… |
… |
switch ( $action ) { |
77 | 77 | |
78 | 78 | $comment = get_comment_to_edit( $comment_id ); |
79 | 79 | |
80 | | include( ABSPATH . 'wp-admin/edit-form-comment.php' ); |
| 80 | include ABSPATH . 'wp-admin/edit-form-comment.php'; |
81 | 81 | |
82 | 82 | break; |
83 | 83 | |
… |
… |
switch ( $action ) { |
106 | 106 | die(); |
107 | 107 | } |
108 | 108 | |
109 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 109 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
110 | 110 | |
111 | 111 | $formaction = $action . 'comment'; |
112 | 112 | $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_'; |
… |
… |
switch ( $action ) { |
357 | 357 | |
358 | 358 | } // end switch |
359 | 359 | |
360 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 360 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/credits.php src/wp-admin/credits.php
index af4792d2b4..d9b4ad2df7 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
11 | | require_once( dirname( __FILE__ ) . '/includes/credits.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
| 11 | require_once __DIR__ . '/includes/credits.php'; |
12 | 12 | |
13 | 13 | $title = __( 'Credits' ); |
14 | 14 | |
15 | 15 | list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
16 | 16 | |
17 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 17 | include ABSPATH . 'wp-admin/admin-header.php'; |
18 | 18 | |
19 | 19 | $credits = wp_credits(); |
20 | 20 | ?> |
… |
… |
$credits = wp_credits(); |
82 | 82 | <?php |
83 | 83 | if ( ! $credits ) { |
84 | 84 | echo '</div>'; |
85 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 85 | include ABSPATH . 'wp-admin/admin-footer.php'; |
86 | 86 | exit; |
87 | 87 | } |
88 | 88 | ?> |
… |
… |
if ( ! $credits ) { |
129 | 129 | </div> |
130 | 130 | <?php |
131 | 131 | |
132 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 132 | include ABSPATH . 'wp-admin/admin-footer.php'; |
133 | 133 | |
134 | 134 | return; |
135 | 135 | |
-
diff --git src/wp-admin/custom-background.php src/wp-admin/custom-background.php
index e6ff310e72..37b8c3d8b8 100644
|
|
|
12 | 12 | _deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' ); |
13 | 13 | |
14 | 14 | /** Custom_Background class */ |
15 | | require_once( ABSPATH . 'wp-admin/includes/class-custom-background.php' ); |
| 15 | require_once ABSPATH . 'wp-admin/includes/class-custom-background.php'; |
-
diff --git src/wp-admin/custom-header.php src/wp-admin/custom-header.php
index d99f192da8..d89f03bbaa 100644
|
|
|
12 | 12 | _deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' ); |
13 | 13 | |
14 | 14 | /** Custom_Image_Header class */ |
15 | | require_once( ABSPATH . 'wp-admin/includes/class-custom-image-header.php' ); |
| 15 | require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php'; |
-
diff --git src/wp-admin/customize.php src/wp-admin/customize.php
index d0f39a5ba5..4954ca99ba 100644
|
|
|
10 | 10 | define( 'IFRAME_REQUEST', true ); |
11 | 11 | |
12 | 12 | /** Load WordPress Administration Bootstrap */ |
13 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 13 | require_once __DIR__ . '/admin.php'; |
14 | 14 | |
15 | 15 | if ( ! current_user_can( 'customize' ) ) { |
16 | 16 | wp_die( |
-
diff --git src/wp-admin/edit-comments.php src/wp-admin/edit-comments.php
index b159c0a179..3178dd7b67 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | if ( ! current_user_can( 'edit_posts' ) ) { |
12 | 12 | wp_die( |
13 | 13 | '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . |
… |
… |
get_current_screen()->set_screen_reader_content( |
205 | 205 | ) |
206 | 206 | ); |
207 | 207 | |
208 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 208 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
209 | 209 | ?> |
210 | 210 | |
211 | 211 | <div class="wrap"> |
… |
… |
if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $ |
351 | 351 | <?php |
352 | 352 | wp_comment_reply( '-1', true, 'detail' ); |
353 | 353 | wp_comment_trashnotice(); |
354 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 354 | include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/edit-form-advanced.php src/wp-admin/edit-form-advanced.php
index e7127fbcb2..e1dcbd3484 100644
|
|
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql |
264 | 264 | $post_type_object = get_post_type_object( $post_type ); |
265 | 265 | |
266 | 266 | // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). |
267 | | require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); |
| 267 | require_once ABSPATH . 'wp-admin/includes/meta-boxes.php'; |
268 | 268 | |
269 | 269 | register_and_do_post_meta_boxes( $post ); |
270 | 270 | |
… |
… |
if ( 'post' == $post_type ) { |
416 | 416 | ); |
417 | 417 | } |
418 | 418 | |
419 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 419 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
420 | 420 | ?> |
421 | 421 | |
422 | 422 | <div class="wrap"> |
-
diff --git src/wp-admin/edit-form-blocks.php src/wp-admin/edit-form-blocks.php
index dcec9faaab..f2742ccf6b 100644
|
|
wp_enqueue_style( 'wp-format-library' ); |
361 | 361 | do_action( 'enqueue_block_editor_assets' ); |
362 | 362 | |
363 | 363 | // In order to duplicate classic meta box behaviour, we need to run the classic meta box actions. |
364 | | require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); |
| 364 | require_once ABSPATH . 'wp-admin/includes/meta-boxes.php'; |
365 | 365 | register_and_do_post_meta_boxes( $post ); |
366 | 366 | |
367 | 367 | // Check if the Custom Fields meta box has been removed at some point. |
… |
… |
$script = sprintf( |
399 | 399 | ); |
400 | 400 | wp_add_inline_script( 'wp-edit-post', $script ); |
401 | 401 | |
402 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 402 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
403 | 403 | ?> |
404 | 404 | |
405 | 405 | <div class="block-editor"> |
-
diff --git src/wp-admin/edit-link-form.php src/wp-admin/edit-link-form.php
index 05c3751f72..7733d11508 100644
|
|
if ( ! empty( $link_id ) ) { |
25 | 25 | $nonce_action = 'add-bookmark'; |
26 | 26 | } |
27 | 27 | |
28 | | require_once( ABSPATH . 'wp-admin/includes/meta-boxes.php' ); |
| 28 | require_once ABSPATH . 'wp-admin/includes/meta-boxes.php'; |
29 | 29 | |
30 | 30 | add_meta_box( 'linksubmitdiv', __( 'Save' ), 'link_submit_meta_box', null, 'side', 'core' ); |
31 | 31 | add_meta_box( 'linkcategorydiv', __( 'Categories' ), 'link_categories_meta_box', null, 'normal', 'core' ); |
… |
… |
get_current_screen()->set_help_sidebar( |
77 | 77 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
78 | 78 | ); |
79 | 79 | |
80 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 80 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
81 | 81 | ?> |
82 | 82 | |
83 | 83 | <div class="wrap"> |
-
diff --git src/wp-admin/edit-tag-form.php src/wp-admin/edit-tag-form.php
index a56ee93ff7..46f86e6368 100644
|
|
wp_reset_vars( array( 'wp_http_referer' ) ); |
52 | 52 | $wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer ); |
53 | 53 | |
54 | 54 | /** Also used by Edit Tags */ |
55 | | require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' ); |
| 55 | require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php'; |
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Fires before the Edit Term form for all taxonomies. |
-
diff --git src/wp-admin/edit-tags.php src/wp-admin/edit-tags.php
index 580c70dc7a..2e9570b199 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! $taxnow ) { |
13 | 13 | wp_die( __( 'Invalid taxonomy.' ) ); |
… |
… |
if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === |
318 | 318 | unset( $help ); |
319 | 319 | } |
320 | 320 | |
321 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 321 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
322 | 322 | |
323 | 323 | /** Also used by the Edit Tag form */ |
324 | | require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' ); |
| 324 | require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php'; |
325 | 325 | |
326 | 326 | $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; |
327 | 327 | |
… |
… |
endif; |
658 | 658 | |
659 | 659 | $wp_list_table->inline_edit(); |
660 | 660 | |
661 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 661 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/edit.php src/wp-admin/edit.php
index 5c818f4e4c..e57ed194b1 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! $typenow ) { |
13 | 13 | wp_die( __( 'Invalid post type.' ) ); |
… |
… |
$bulk_messages['wp_block'] = array( |
383 | 383 | $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts ); |
384 | 384 | $bulk_counts = array_filter( $bulk_counts ); |
385 | 385 | |
386 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 386 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
387 | 387 | ?> |
388 | 388 | <div class="wrap"> |
389 | 389 | <h1 class="wp-heading-inline"> |
… |
… |
if ( $wp_list_table->has_items() ) { |
461 | 461 | </div> |
462 | 462 | |
463 | 463 | <?php |
464 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 464 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/erase-personal-data.php src/wp-admin/erase-personal-data.php
index dc80022eef..931cafa150 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) ); |
… |
… |
$requests_table->screen->set_screen_reader_content( |
47 | 47 | $requests_table->process_bulk_action(); |
48 | 48 | $requests_table->prepare_items(); |
49 | 49 | |
50 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 50 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
51 | 51 | ?> |
52 | 52 | |
53 | 53 | <div class="wrap nosubsub"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
89 | 89 | </div> |
90 | 90 | |
91 | 91 | <?php |
92 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 92 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/export-personal-data.php src/wp-admin/export-personal-data.php
index a4eef779c2..0a57169e36 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'export_others_personal_data' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to export personal data on this site.' ) ); |
… |
… |
$requests_table->screen->set_screen_reader_content( |
47 | 47 | $requests_table->process_bulk_action(); |
48 | 48 | $requests_table->prepare_items(); |
49 | 49 | |
50 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 50 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
51 | 51 | ?> |
52 | 52 | |
53 | 53 | <div class="wrap nosubsub"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
89 | 89 | </div> |
90 | 90 | |
91 | 91 | <?php |
92 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 92 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/export.php src/wp-admin/export.php
index 759723456e..972d4590dc 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'export' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to export the content of this site.' ) ); |
14 | 14 | } |
15 | 15 | |
16 | 16 | /** Load WordPress export API */ |
17 | | require_once( ABSPATH . 'wp-admin/includes/export.php' ); |
| 17 | require_once ABSPATH . 'wp-admin/includes/export.php'; |
18 | 18 | $title = __( 'Export' ); |
19 | 19 | |
20 | 20 | /** |
… |
… |
if ( isset( $_GET['download'] ) ) { |
122 | 122 | die(); |
123 | 123 | } |
124 | 124 | |
125 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 125 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
126 | 126 | |
127 | 127 | /** |
128 | 128 | * Create the date options fields for exporting a given post type. |
… |
… |
do_action( 'export_filters' ); |
321 | 321 | </form> |
322 | 322 | </div> |
323 | 323 | |
324 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 324 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/freedoms.php src/wp-admin/freedoms.php
index dcb2eeb794..b95e26c62d 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | // This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0. |
13 | 13 | if ( isset( $_GET['privacy-notice'] ) ) { |
… |
… |
$title = __( 'Freedoms' ); |
19 | 19 | |
20 | 20 | list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
21 | 21 | |
22 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 22 | include ABSPATH . 'wp-admin/admin-header.php'; |
23 | 23 | ?> |
24 | 24 | <div class="wrap about__container"> |
25 | 25 | |
… |
… |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
123 | 123 | </div> |
124 | 124 | |
125 | 125 | </div> |
126 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 126 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/import.php src/wp-admin/import.php
index d10f60bde7..8536fb6e80 100644
|
|
|
9 | 9 | define( 'WP_LOAD_IMPORTERS', true ); |
10 | 10 | |
11 | 11 | /** Load WordPress Bootstrap */ |
12 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 12 | require_once __DIR__ . '/admin.php'; |
13 | 13 | |
14 | 14 | if ( ! current_user_can( 'import' ) ) { |
15 | 15 | wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) ); |
… |
… |
add_thickbox(); |
53 | 53 | wp_enqueue_script( 'plugin-install' ); |
54 | 54 | wp_enqueue_script( 'updates' ); |
55 | 55 | |
56 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 56 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
57 | 57 | $parent_file = 'tools.php'; |
58 | 58 | ?> |
59 | 59 | |
… |
… |
if ( current_user_can( 'install_plugins' ) ) { |
237 | 237 | wp_print_request_filesystem_credentials_modal(); |
238 | 238 | wp_print_admin_notice_templates(); |
239 | 239 | |
240 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 240 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/includes/admin.php src/wp-admin/includes/admin.php
index 8c3a3eb156..af828f75e9 100644
|
|
if ( ! defined( 'WP_ADMIN' ) ) { |
17 | 17 | } |
18 | 18 | |
19 | 19 | /** WordPress Administration Hooks */ |
20 | | require_once( ABSPATH . 'wp-admin/includes/admin-filters.php' ); |
| 20 | require_once ABSPATH . 'wp-admin/includes/admin-filters.php'; |
21 | 21 | |
22 | 22 | /** WordPress Bookmark Administration API */ |
23 | | require_once( ABSPATH . 'wp-admin/includes/bookmark.php' ); |
| 23 | require_once ABSPATH . 'wp-admin/includes/bookmark.php'; |
24 | 24 | |
25 | 25 | /** WordPress Comment Administration API */ |
26 | | require_once( ABSPATH . 'wp-admin/includes/comment.php' ); |
| 26 | require_once ABSPATH . 'wp-admin/includes/comment.php'; |
27 | 27 | |
28 | 28 | /** WordPress Administration File API */ |
29 | | require_once( ABSPATH . 'wp-admin/includes/file.php' ); |
| 29 | require_once ABSPATH . 'wp-admin/includes/file.php'; |
30 | 30 | |
31 | 31 | /** WordPress Image Administration API */ |
32 | | require_once( ABSPATH . 'wp-admin/includes/image.php' ); |
| 32 | require_once ABSPATH . 'wp-admin/includes/image.php'; |
33 | 33 | |
34 | 34 | /** WordPress Media Administration API */ |
35 | | require_once( ABSPATH . 'wp-admin/includes/media.php' ); |
| 35 | require_once ABSPATH . 'wp-admin/includes/media.php'; |
36 | 36 | |
37 | 37 | /** WordPress Import Administration API */ |
38 | | require_once( ABSPATH . 'wp-admin/includes/import.php' ); |
| 38 | require_once ABSPATH . 'wp-admin/includes/import.php'; |
39 | 39 | |
40 | 40 | /** WordPress Misc Administration API */ |
41 | | require_once( ABSPATH . 'wp-admin/includes/misc.php' ); |
| 41 | require_once ABSPATH . 'wp-admin/includes/misc.php'; |
42 | 42 | |
43 | 43 | /** WordPress Misc Administration API */ |
44 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' ); |
| 44 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; |
45 | 45 | |
46 | 46 | /** WordPress Options Administration API */ |
47 | | require_once( ABSPATH . 'wp-admin/includes/options.php' ); |
| 47 | require_once ABSPATH . 'wp-admin/includes/options.php'; |
48 | 48 | |
49 | 49 | /** WordPress Plugin Administration API */ |
50 | | require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
| 50 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
51 | 51 | |
52 | 52 | /** WordPress Post Administration API */ |
53 | | require_once( ABSPATH . 'wp-admin/includes/post.php' ); |
| 53 | require_once ABSPATH . 'wp-admin/includes/post.php'; |
54 | 54 | |
55 | 55 | /** WordPress Administration Screen API */ |
56 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' ); |
57 | | require_once( ABSPATH . 'wp-admin/includes/screen.php' ); |
| 56 | require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php'; |
| 57 | require_once ABSPATH . 'wp-admin/includes/screen.php'; |
58 | 58 | |
59 | 59 | /** WordPress Taxonomy Administration API */ |
60 | | require_once( ABSPATH . 'wp-admin/includes/taxonomy.php' ); |
| 60 | require_once ABSPATH . 'wp-admin/includes/taxonomy.php'; |
61 | 61 | |
62 | 62 | /** WordPress Template Administration API */ |
63 | | require_once( ABSPATH . 'wp-admin/includes/template.php' ); |
| 63 | require_once ABSPATH . 'wp-admin/includes/template.php'; |
64 | 64 | |
65 | 65 | /** WordPress List Table Administration API and base class */ |
66 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); |
67 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php' ); |
68 | | require_once( ABSPATH . 'wp-admin/includes/list-table.php' ); |
| 66 | require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; |
| 67 | require_once ABSPATH . 'wp-admin/includes/class-wp-list-table-compat.php'; |
| 68 | require_once ABSPATH . 'wp-admin/includes/list-table.php'; |
69 | 69 | |
70 | 70 | /** WordPress Theme Administration API */ |
71 | | require_once( ABSPATH . 'wp-admin/includes/theme.php' ); |
| 71 | require_once ABSPATH . 'wp-admin/includes/theme.php'; |
72 | 72 | |
73 | 73 | /** WordPress Privacy Functions */ |
74 | | require_once( ABSPATH . 'wp-admin/includes/privacy-tools.php' ); |
| 74 | require_once ABSPATH . 'wp-admin/includes/privacy-tools.php'; |
75 | 75 | |
76 | 76 | /** WordPress Privacy List Table classes. */ |
77 | 77 | // Previously in wp-admin/includes/user.php. Need to be loaded for backwards compatibility. |
78 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' ); |
79 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php' ); |
80 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php' ); |
| 78 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php'; |
| 79 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php'; |
| 80 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php'; |
81 | 81 | |
82 | 82 | /** WordPress User Administration API */ |
83 | | require_once( ABSPATH . 'wp-admin/includes/user.php' ); |
| 83 | require_once ABSPATH . 'wp-admin/includes/user.php'; |
84 | 84 | |
85 | 85 | /** WordPress Site Icon API */ |
86 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' ); |
| 86 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; |
87 | 87 | |
88 | 88 | /** WordPress Update Administration API */ |
89 | | require_once( ABSPATH . 'wp-admin/includes/update.php' ); |
| 89 | require_once ABSPATH . 'wp-admin/includes/update.php'; |
90 | 90 | |
91 | 91 | /** WordPress Deprecated Administration API */ |
92 | | require_once( ABSPATH . 'wp-admin/includes/deprecated.php' ); |
| 92 | require_once ABSPATH . 'wp-admin/includes/deprecated.php'; |
93 | 93 | |
94 | 94 | /** WordPress Multisite support API */ |
95 | 95 | if ( is_multisite() ) { |
96 | | require_once( ABSPATH . 'wp-admin/includes/ms-admin-filters.php' ); |
97 | | require_once( ABSPATH . 'wp-admin/includes/ms.php' ); |
98 | | require_once( ABSPATH . 'wp-admin/includes/ms-deprecated.php' ); |
| 96 | require_once ABSPATH . 'wp-admin/includes/ms-admin-filters.php'; |
| 97 | require_once ABSPATH . 'wp-admin/includes/ms.php'; |
| 98 | require_once ABSPATH . 'wp-admin/includes/ms-deprecated.php'; |
99 | 99 | } |
-
diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index 495693c313..686fc84cd5 100644
|
|
function wp_ajax_imgedit_preview() { |
234 | 234 | |
235 | 235 | check_ajax_referer( "image_editor-$post_id" ); |
236 | 236 | |
237 | | include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); |
| 237 | include_once ABSPATH . 'wp-admin/includes/image-edit.php'; |
238 | 238 | |
239 | 239 | if ( ! stream_preview_image( $post_id ) ) { |
240 | 240 | wp_die( -1 ); |
… |
… |
function wp_ajax_autocomplete_user() { |
336 | 336 | * @since 4.8.0 |
337 | 337 | */ |
338 | 338 | function wp_ajax_get_community_events() { |
339 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-community-events.php' ); |
| 339 | require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php'; |
340 | 340 | |
341 | 341 | check_ajax_referer( 'community_events' ); |
342 | 342 | |
… |
… |
function wp_ajax_replyto_comment( $action ) { |
1342 | 1342 | |
1343 | 1343 | ob_start(); |
1344 | 1344 | if ( isset( $_REQUEST['mode'] ) && 'dashboard' == $_REQUEST['mode'] ) { |
1345 | | require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); |
| 1345 | require_once ABSPATH . 'wp-admin/includes/dashboard.php'; |
1346 | 1346 | _wp_dashboard_recent_comments_row( $comment ); |
1347 | 1347 | } else { |
1348 | 1348 | if ( isset( $_REQUEST['mode'] ) && 'single' == $_REQUEST['mode'] ) { |
… |
… |
function wp_ajax_wp_link_ajax() { |
1851 | 1851 | $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; |
1852 | 1852 | |
1853 | 1853 | if ( ! class_exists( '_WP_Editors', false ) ) { |
1854 | | require( ABSPATH . WPINC . '/class-wp-editor.php' ); |
| 1854 | require ABSPATH . WPINC . '/class-wp-editor.php'; |
1855 | 1855 | } |
1856 | 1856 | |
1857 | 1857 | $results = _WP_Editors::wp_link_query( $args ); |
… |
… |
function wp_ajax_image_editor() { |
2593 | 2593 | } |
2594 | 2594 | |
2595 | 2595 | check_ajax_referer( "image_editor-$attachment_id" ); |
2596 | | include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); |
| 2596 | include_once ABSPATH . 'wp-admin/includes/image-edit.php'; |
2597 | 2597 | |
2598 | 2598 | $msg = false; |
2599 | 2599 | switch ( $_POST['do'] ) { |
… |
… |
function wp_ajax_install_theme() { |
4000 | 4000 | wp_send_json_error( $status ); |
4001 | 4001 | } |
4002 | 4002 | |
4003 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
4004 | | include_once( ABSPATH . 'wp-admin/includes/theme.php' ); |
| 4003 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 4004 | include_once ABSPATH . 'wp-admin/includes/theme.php'; |
4005 | 4005 | |
4006 | 4006 | $api = themes_api( |
4007 | 4007 | 'theme_information', |
… |
… |
function wp_ajax_update_theme() { |
4129 | 4129 | $status['oldVersion'] = $theme->get( 'Version' ); |
4130 | 4130 | } |
4131 | 4131 | |
4132 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 4132 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
4133 | 4133 | |
4134 | 4134 | $current = get_site_transient( 'update_themes' ); |
4135 | 4135 | if ( empty( $current ) ) { |
… |
… |
function wp_ajax_delete_theme() { |
4243 | 4243 | wp_send_json_error( $status ); |
4244 | 4244 | } |
4245 | 4245 | |
4246 | | include_once( ABSPATH . 'wp-admin/includes/theme.php' ); |
| 4246 | include_once ABSPATH . 'wp-admin/includes/theme.php'; |
4247 | 4247 | |
4248 | 4248 | $result = delete_theme( $stylesheet ); |
4249 | 4249 | |
… |
… |
function wp_ajax_install_plugin() { |
4290 | 4290 | wp_send_json_error( $status ); |
4291 | 4291 | } |
4292 | 4292 | |
4293 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
4294 | | include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); |
| 4293 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 4294 | include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; |
4295 | 4295 | |
4296 | 4296 | $api = plugins_api( |
4297 | 4297 | 'plugin_information', |
… |
… |
function wp_ajax_update_plugin() { |
4412 | 4412 | $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); |
4413 | 4413 | } |
4414 | 4414 | |
4415 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 4415 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
4416 | 4416 | |
4417 | 4417 | wp_update_plugins(); |
4418 | 4418 | |
… |
… |
function wp_ajax_health_check_dotorg_communication() { |
5115 | 5115 | } |
5116 | 5116 | |
5117 | 5117 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
5118 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 5118 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
5119 | 5119 | } |
5120 | 5120 | |
5121 | 5121 | $site_health = new WP_Site_Health(); |
… |
… |
function wp_ajax_health_check_is_in_debug_mode() { |
5135 | 5135 | } |
5136 | 5136 | |
5137 | 5137 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
5138 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 5138 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
5139 | 5139 | } |
5140 | 5140 | |
5141 | 5141 | $site_health = new WP_Site_Health(); |
… |
… |
function wp_ajax_health_check_background_updates() { |
5155 | 5155 | } |
5156 | 5156 | |
5157 | 5157 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
5158 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 5158 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
5159 | 5159 | } |
5160 | 5160 | |
5161 | 5161 | $site_health = new WP_Site_Health(); |
… |
… |
function wp_ajax_health_check_loopback_requests() { |
5176 | 5176 | } |
5177 | 5177 | |
5178 | 5178 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
5179 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 5179 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
5180 | 5180 | } |
5181 | 5181 | |
5182 | 5182 | $site_health = new WP_Site_Health(); |
… |
… |
function wp_ajax_health_check_get_sizes() { |
5213 | 5213 | } |
5214 | 5214 | |
5215 | 5215 | if ( ! class_exists( 'WP_Debug_Data' ) ) { |
5216 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' ); |
| 5216 | require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php'; |
5217 | 5217 | } |
5218 | 5218 | |
5219 | 5219 | $sizes_data = WP_Debug_Data::get_sizes(); |
-
diff --git src/wp-admin/includes/class-core-upgrader.php src/wp-admin/includes/class-core-upgrader.php
index dd3f540dda..071908014f 100644
|
|
class Core_Upgrader extends WP_Upgrader { |
62 | 62 | public function upgrade( $current, $args = array() ) { |
63 | 63 | global $wp_filesystem; |
64 | 64 | |
65 | | include( ABSPATH . WPINC . '/version.php' ); // $wp_version; |
| 65 | include ABSPATH . WPINC . '/version.php'; // $wp_version; |
66 | 66 | |
67 | 67 | $start_time = time(); |
68 | 68 | |
… |
… |
class Core_Upgrader extends WP_Upgrader { |
161 | 161 | } |
162 | 162 | $wp_filesystem->chmod( $wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE ); |
163 | 163 | |
164 | | require_once( ABSPATH . 'wp-admin/includes/update-core.php' ); |
| 164 | require_once ABSPATH . 'wp-admin/includes/update-core.php'; |
165 | 165 | |
166 | 166 | if ( ! function_exists( 'update_core' ) ) { |
167 | 167 | WP_Upgrader::release_lock( 'core_updater' ); |
… |
… |
class Core_Upgrader extends WP_Upgrader { |
270 | 270 | * @return bool True if we should update to the offered version, otherwise false. |
271 | 271 | */ |
272 | 272 | public static function should_update_to_version( $offered_ver ) { |
273 | | include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z |
| 273 | include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z |
274 | 274 | |
275 | 275 | $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y |
276 | 276 | $new_branch = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y |
-
diff --git src/wp-admin/includes/class-ftp.php src/wp-admin/includes/class-ftp.php
index a377640c65..8e2624cedc 100644
|
|
if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) { |
903 | 903 | $mod_sockets = extension_loaded( 'sockets' ); |
904 | 904 | } |
905 | 905 | |
906 | | require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; |
| 906 | require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; |
907 | 907 | |
908 | 908 | if ( $mod_sockets ) { |
909 | 909 | class ftp extends ftp_sockets {} |
-
diff --git src/wp-admin/includes/class-wp-community-events.php src/wp-admin/includes/class-wp-community-events.php
index 776d72f2f2..b2c9d01a78 100644
|
|
class WP_Community_Events { |
93 | 93 | } |
94 | 94 | |
95 | 95 | // include an unmodified $wp_version |
96 | | include( ABSPATH . WPINC . '/version.php' ); |
| 96 | include ABSPATH . WPINC . '/version.php'; |
97 | 97 | |
98 | 98 | $api_url = 'http://api.wordpress.org/events/1.0/'; |
99 | 99 | $request_args = $this->get_request_args( $location_search, $timezone ); |
-
diff --git src/wp-admin/includes/class-wp-plugin-install-list-table.php src/wp-admin/includes/class-wp-plugin-install-list-table.php
index acea5c4b28..48ffcfe9f3 100644
|
|
class WP_Plugin_Install_List_Table extends WP_List_Table { |
85 | 85 | * @global string $term |
86 | 86 | */ |
87 | 87 | public function prepare_items() { |
88 | | include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); |
| 88 | include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; |
89 | 89 | |
90 | 90 | global $tabs, $tab, $paged, $type, $term; |
91 | 91 | |
-
diff --git src/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php src/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php
index 683ea69697..880af8cd04 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) { |
11 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' ); |
| 11 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php'; |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** |
-
diff --git src/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php src/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php
index 8e2efa0379..b894865064 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | if ( ! class_exists( 'WP_Privacy_Requests_Table' ) ) { |
11 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php' ); |
| 11 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-requests-table.php'; |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** |
-
diff --git src/wp-admin/includes/class-wp-site-health-auto-updates.php src/wp-admin/includes/class-wp-site-health-auto-updates.php
index 05fbba9085..2d7c64e050 100644
|
|
class WP_Site_Health_Auto_Updates { |
166 | 166 | */ |
167 | 167 | public function test_wp_automatic_updates_disabled() { |
168 | 168 | if ( ! class_exists( 'WP_Automatic_Updater' ) ) { |
169 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php' ); |
| 169 | require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updates.php'; |
170 | 170 | } |
171 | 171 | |
172 | 172 | $auto_updates = new WP_Automatic_Updater(); |
-
diff --git src/wp-admin/includes/class-wp-site-health.php src/wp-admin/includes/class-wp-site-health.php
index 0da1f9e607..8f52c87ee2 100644
|
|
class WP_Site_Health { |
1632 | 1632 | ); |
1633 | 1633 | |
1634 | 1634 | if ( ! class_exists( 'WP_Site_Health_Auto_Updates' ) ) { |
1635 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php' ); |
| 1635 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php'; |
1636 | 1636 | } |
1637 | 1637 | |
1638 | 1638 | // Run the auto-update tests in a separate class, |
… |
… |
class WP_Site_Health { |
2223 | 2223 | */ |
2224 | 2224 | public function wp_cron_scheduled_check() { |
2225 | 2225 | // Bootstrap wp-admin, as WP_Cron doesn't do this for us. |
2226 | | require_once( trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php' ); |
| 2226 | require_once trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php'; |
2227 | 2227 | |
2228 | 2228 | $tests = WP_Site_Health::get_tests(); |
2229 | 2229 | |
-
diff --git src/wp-admin/includes/class-wp-theme-install-list-table.php src/wp-admin/includes/class-wp-theme-install-list-table.php
index 637785f392..4105d0ab74 100644
|
|
class WP_Theme_Install_List_Table extends WP_Themes_List_Table { |
34 | 34 | * @global array $theme_field_defaults |
35 | 35 | */ |
36 | 36 | public function prepare_items() { |
37 | | include( ABSPATH . 'wp-admin/includes/theme-install.php' ); |
| 37 | include ABSPATH . 'wp-admin/includes/theme-install.php'; |
38 | 38 | |
39 | 39 | global $tabs, $tab, $paged, $type, $theme_field_defaults; |
40 | 40 | wp_reset_vars( array( 'tab' ) ); |
-
diff --git src/wp-admin/includes/comment.php src/wp-admin/includes/comment.php
index e99f8a6a50..e0ff389abe 100644
|
|
function enqueue_comment_hotkeys_js() { |
208 | 208 | */ |
209 | 209 | function comment_footer_die( $msg ) { |
210 | 210 | echo "<div class='wrap'><p>$msg</p></div>"; |
211 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 211 | include ABSPATH . 'wp-admin/admin-footer.php'; |
212 | 212 | die; |
213 | 213 | } |
-
diff --git src/wp-admin/includes/credits.php src/wp-admin/includes/credits.php
index 3289c18e4a..885e499be1 100644
|
|
|
16 | 16 | */ |
17 | 17 | function wp_credits() { |
18 | 18 | // include an unmodified $wp_version |
19 | | include( ABSPATH . WPINC . '/version.php' ); |
| 19 | include ABSPATH . WPINC . '/version.php'; |
20 | 20 | |
21 | 21 | $locale = get_user_locale(); |
22 | 22 | |
-
diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
index 6ecc49f8f1..de9f664f27 100644
|
|
function wp_dashboard_setup() { |
45 | 45 | // Site Health. |
46 | 46 | if ( current_user_can( 'view_site_health_checks' ) ) { |
47 | 47 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
48 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 48 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
49 | 49 | } |
50 | 50 | |
51 | 51 | WP_Site_Health::initialize(); |
… |
… |
function wp_check_browser_version() { |
1665 | 1665 | $response = get_site_transient( 'browser_' . $key ); |
1666 | 1666 | if ( false === $response ) { |
1667 | 1667 | // Include an unmodified $wp_version. |
1668 | | include( ABSPATH . WPINC . '/version.php' ); |
| 1668 | include ABSPATH . WPINC . '/version.php'; |
1669 | 1669 | |
1670 | 1670 | $url = 'http://api.wordpress.org/core/browse-happy/1.1/'; |
1671 | 1671 | $options = array( |
-
diff --git src/wp-admin/includes/deprecated.php src/wp-admin/includes/deprecated.php
index a16f0e98c7..521be4544a 100644
|
|
function wp_tiny_mce( $teeny = false, $settings = false ) { |
762 | 762 | static $num = 1; |
763 | 763 | |
764 | 764 | if ( ! class_exists( '_WP_Editors', false ) ) |
765 | | require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); |
| 765 | require_once ABSPATH . WPINC . '/class-wp-editor.php'; |
766 | 766 | |
767 | 767 | $editor_id = 'content' . $num++; |
768 | 768 | |
… |
… |
function wp_update_core($current, $feedback = '') { |
1156 | 1156 | if ( !empty($feedback) ) |
1157 | 1157 | add_filter('update_feedback', $feedback); |
1158 | 1158 | |
1159 | | include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 1159 | include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
1160 | 1160 | $upgrader = new Core_Upgrader(); |
1161 | 1161 | return $upgrader->upgrade($current); |
1162 | 1162 | |
… |
… |
function wp_update_plugin($plugin, $feedback = '') { |
1179 | 1179 | if ( !empty($feedback) ) |
1180 | 1180 | add_filter('update_feedback', $feedback); |
1181 | 1181 | |
1182 | | include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 1182 | include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
1183 | 1183 | $upgrader = new Plugin_Upgrader(); |
1184 | 1184 | return $upgrader->upgrade($plugin); |
1185 | 1185 | } |
… |
… |
function wp_update_theme($theme, $feedback = '') { |
1201 | 1201 | if ( !empty($feedback) ) |
1202 | 1202 | add_filter('update_feedback', $feedback); |
1203 | 1203 | |
1204 | | include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 1204 | include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
1205 | 1205 | $upgrader = new Theme_Upgrader(); |
1206 | 1206 | return $upgrader->upgrade($theme); |
1207 | 1207 | } |
-
diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
index 0c65f2c6e3..b2a939b81a 100644
|
|
function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) { |
1597 | 1597 | |
1598 | 1598 | mbstring_binary_safe_encoding(); |
1599 | 1599 | |
1600 | | require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' ); |
| 1600 | require_once ABSPATH . 'wp-admin/includes/class-pclzip.php'; |
1601 | 1601 | |
1602 | 1602 | $archive = new PclZip( $file ); |
1603 | 1603 | |
… |
… |
function copy_dir( $from, $to, $skip_list = array() ) { |
1769 | 1769 | function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid |
1770 | 1770 | global $wp_filesystem; |
1771 | 1771 | |
1772 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php' ); |
| 1772 | require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php'; |
1773 | 1773 | |
1774 | 1774 | $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership ); |
1775 | 1775 | |
… |
… |
function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own |
1795 | 1795 | return; |
1796 | 1796 | } |
1797 | 1797 | |
1798 | | require_once( $abstraction_file ); |
| 1798 | require_once $abstraction_file; |
1799 | 1799 | } |
1800 | 1800 | $method = "WP_Filesystem_$method"; |
1801 | 1801 | |
-
diff --git src/wp-admin/includes/import.php src/wp-admin/includes/import.php
index 52b623a447..c23fce6274 100644
|
|
function wp_import_handle_upload() { |
136 | 136 | * @return array Importers with metadata for each. |
137 | 137 | */ |
138 | 138 | function wp_get_popular_importers() { |
139 | | include( ABSPATH . WPINC . '/version.php' ); // Include an unmodified $wp_version. |
| 139 | include ABSPATH . WPINC . '/version.php'; // Include an unmodified $wp_version. |
140 | 140 | |
141 | 141 | $locale = get_user_locale(); |
142 | 142 | $cache_key = 'popular_importers_' . md5( $locale . $wp_version ); |
-
diff --git src/wp-admin/includes/list-table.php src/wp-admin/includes/list-table.php
index 881bb37388..dce5eef702 100644
|
|
function _get_list_table( $class, $args = array() ) { |
46 | 46 | |
47 | 47 | if ( isset( $core_classes[ $class ] ) ) { |
48 | 48 | foreach ( (array) $core_classes[ $class ] as $required ) { |
49 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' ); |
| 49 | require_once ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php'; |
50 | 50 | } |
51 | 51 | |
52 | 52 | if ( isset( $args['screen'] ) ) { |
-
diff --git src/wp-admin/includes/media.php src/wp-admin/includes/media.php
index f52e9a4704..17b8345cdf 100644
|
|
function wp_read_video_metadata( $file ) { |
3458 | 3458 | } |
3459 | 3459 | |
3460 | 3460 | if ( ! class_exists( 'getID3', false ) ) { |
3461 | | require( ABSPATH . WPINC . '/ID3/getid3.php' ); |
| 3461 | require ABSPATH . WPINC . '/ID3/getid3.php'; |
3462 | 3462 | } |
3463 | 3463 | |
3464 | 3464 | $id3 = new getID3(); |
… |
… |
function wp_read_audio_metadata( $file ) { |
3569 | 3569 | } |
3570 | 3570 | |
3571 | 3571 | if ( ! class_exists( 'getID3', false ) ) { |
3572 | | require( ABSPATH . WPINC . '/ID3/getid3.php' ); |
| 3572 | require ABSPATH . WPINC . '/ID3/getid3.php'; |
3573 | 3573 | } |
3574 | 3574 | |
3575 | 3575 | $id3 = new getID3(); |
-
diff --git src/wp-admin/includes/misc.php src/wp-admin/includes/misc.php
index 8903a280ed..64b4d3c2a2 100644
|
|
function save_mod_rewrite_rules() { |
254 | 254 | global $wp_rewrite; |
255 | 255 | |
256 | 256 | // Ensure get_home_path() is declared. |
257 | | require_once( ABSPATH . 'wp-admin/includes/file.php' ); |
| 257 | require_once ABSPATH . 'wp-admin/includes/file.php'; |
258 | 258 | |
259 | 259 | $home_path = get_home_path(); |
260 | 260 | $htaccess_file = $home_path . '.htaccess'; |
… |
… |
function iis7_save_url_rewrite_rules() { |
291 | 291 | global $wp_rewrite; |
292 | 292 | |
293 | 293 | // Ensure get_home_path() is declared. |
294 | | require_once( ABSPATH . 'wp-admin/includes/file.php' ); |
| 294 | require_once ABSPATH . 'wp-admin/includes/file.php'; |
295 | 295 | |
296 | 296 | $home_path = get_home_path(); |
297 | 297 | $web_config_file = $home_path . 'web.config'; |
-
diff --git src/wp-admin/includes/nav-menu.php src/wp-admin/includes/nav-menu.php
index 9b321ff4f3..b5d0bad956 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Walker_Nav_Menu_Edit class */ |
11 | | require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' ); |
| 11 | require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php'; |
12 | 12 | |
13 | 13 | /** Walker_Nav_Menu_Checklist class */ |
14 | | require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' ); |
| 14 | require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php'; |
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Prints the appropriate response to a menu quick search. |
-
diff --git src/wp-admin/includes/network.php src/wp-admin/includes/network.php
index b814adcf2c..c29ba514d4 100644
|
|
function network_step1( $errors = false ) { |
116 | 116 | '<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>' |
117 | 117 | ) . '</p></div>'; |
118 | 118 | echo '</div>'; |
119 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 119 | include ABSPATH . 'wp-admin/admin-footer.php'; |
120 | 120 | die(); |
121 | 121 | } |
122 | 122 | |
… |
… |
function network_step1( $errors = false ) { |
129 | 129 | ) . '</p></div>'; |
130 | 130 | echo '<p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>'; |
131 | 131 | echo '</div>'; |
132 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 132 | include ABSPATH . 'wp-admin/admin-footer.php'; |
133 | 133 | die(); |
134 | 134 | } |
135 | 135 | |
… |
… |
function network_step1( $errors = false ) { |
144 | 144 | ) . '</p>'; |
145 | 145 | echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>'; |
146 | 146 | echo '</div>'; |
147 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 147 | include ABSPATH . 'wp-admin/admin-footer.php'; |
148 | 148 | die(); |
149 | 149 | } |
150 | 150 | |
-
diff --git src/wp-admin/includes/plugin-install.php src/wp-admin/includes/plugin-install.php
index 6e56b33669..9a80b417d6 100644
|
|
|
101 | 101 | */ |
102 | 102 | function plugins_api( $action, $args = array() ) { |
103 | 103 | // include an unmodified $wp_version |
104 | | include( ABSPATH . WPINC . '/version.php' ); |
| 104 | include ABSPATH . WPINC . '/version.php'; |
105 | 105 | |
106 | 106 | if ( is_array( $args ) ) { |
107 | 107 | $args = (object) $args; |
-
diff --git src/wp-admin/includes/plugin.php src/wp-admin/includes/plugin.php
index ff87539798..75eff7b7d3 100644
|
|
function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen |
647 | 647 | if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { |
648 | 648 | define( 'WP_SANDBOX_SCRAPING', true ); |
649 | 649 | } |
650 | | include_once( WP_PLUGIN_DIR . '/' . $plugin ); |
| 650 | include_once WP_PLUGIN_DIR . '/' . $plugin; |
651 | 651 | $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. |
652 | 652 | |
653 | 653 | if ( ! $silent ) { |
… |
… |
function delete_plugins( $plugins, $deprecated = '' ) { |
898 | 898 | |
899 | 899 | if ( false === $credentials ) { |
900 | 900 | if ( ! empty( $data ) ) { |
901 | | include_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 901 | include_once ABSPATH . 'wp-admin/admin-header.php'; |
902 | 902 | echo $data; |
903 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 903 | include ABSPATH . 'wp-admin/admin-footer.php'; |
904 | 904 | exit; |
905 | 905 | } |
906 | 906 | return; |
… |
… |
function delete_plugins( $plugins, $deprecated = '' ) { |
912 | 912 | $data = ob_get_clean(); |
913 | 913 | |
914 | 914 | if ( ! empty( $data ) ) { |
915 | | include_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 915 | include_once ABSPATH . 'wp-admin/admin-header.php'; |
916 | 916 | echo $data; |
917 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 917 | include ABSPATH . 'wp-admin/admin-footer.php'; |
918 | 918 | exit; |
919 | 919 | } |
920 | 920 | return; |
… |
… |
function uninstall_plugin( $plugin ) { |
1208 | 1208 | |
1209 | 1209 | define( 'WP_UNINSTALL_PLUGIN', $file ); |
1210 | 1210 | wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); |
1211 | | include( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ); |
| 1211 | include WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php'; |
1212 | 1212 | |
1213 | 1213 | return true; |
1214 | 1214 | } |
… |
… |
function uninstall_plugin( $plugin ) { |
1220 | 1220 | unset( $uninstallable_plugins ); |
1221 | 1221 | |
1222 | 1222 | wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); |
1223 | | include( WP_PLUGIN_DIR . '/' . $file ); |
| 1223 | include WP_PLUGIN_DIR . '/' . $file; |
1224 | 1224 | |
1225 | 1225 | add_action( "uninstall_{$file}", $callable ); |
1226 | 1226 | |
… |
… |
function plugin_sandbox_scrape( $plugin ) { |
2241 | 2241 | define( 'WP_SANDBOX_SCRAPING', true ); |
2242 | 2242 | } |
2243 | 2243 | wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); |
2244 | | include( WP_PLUGIN_DIR . '/' . $plugin ); |
| 2244 | include WP_PLUGIN_DIR . '/' . $plugin; |
2245 | 2245 | } |
2246 | 2246 | |
2247 | 2247 | /** |
… |
… |
function wp_add_privacy_policy_content( $plugin_name, $policy_text ) { |
2291 | 2291 | } |
2292 | 2292 | |
2293 | 2293 | if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { |
2294 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' ); |
| 2294 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; |
2295 | 2295 | } |
2296 | 2296 | |
2297 | 2297 | WP_Privacy_Policy_Content::add( $plugin_name, $policy_text ); |
-
diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
index 3ed611d0c4..e2aa398cdc 100644
|
|
|
9 | 9 | */ |
10 | 10 | |
11 | 11 | /** Walker_Category_Checklist class */ |
12 | | require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' ); |
| 12 | require_once ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php'; |
13 | 13 | |
14 | 14 | /** WP_Internal_Pointers class */ |
15 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' ); |
| 15 | require_once ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php'; |
16 | 16 | |
17 | 17 | // |
18 | 18 | // Category Checklists |
-
diff --git src/wp-admin/includes/theme.php src/wp-admin/includes/theme.php
index 2e8e0172d4..31e172b9ff 100644
|
|
function delete_theme( $stylesheet, $redirect = '' ) { |
35 | 35 | |
36 | 36 | if ( false === $credentials ) { |
37 | 37 | if ( ! empty( $data ) ) { |
38 | | include_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 38 | include_once ABSPATH . 'wp-admin/admin-header.php'; |
39 | 39 | echo $data; |
40 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 40 | include ABSPATH . 'wp-admin/admin-footer.php'; |
41 | 41 | exit; |
42 | 42 | } |
43 | 43 | return; |
… |
… |
function delete_theme( $stylesheet, $redirect = '' ) { |
49 | 49 | $data = ob_get_clean(); |
50 | 50 | |
51 | 51 | if ( ! empty( $data ) ) { |
52 | | include_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 52 | include_once ABSPATH . 'wp-admin/admin-header.php'; |
53 | 53 | echo $data; |
54 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 54 | include ABSPATH . 'wp-admin/admin-footer.php'; |
55 | 55 | exit; |
56 | 56 | } |
57 | 57 | return; |
… |
… |
function get_theme_feature_list( $api = true ) { |
434 | 434 | */ |
435 | 435 | function themes_api( $action, $args = array() ) { |
436 | 436 | // include an unmodified $wp_version |
437 | | include( ABSPATH . WPINC . '/version.php' ); |
| 437 | include ABSPATH . WPINC . '/version.php'; |
438 | 438 | |
439 | 439 | if ( is_array( $args ) ) { |
440 | 440 | $args = (object) $args; |
-
diff --git src/wp-admin/includes/translation-install.php src/wp-admin/includes/translation-install.php
index 6296f07c74..1336eb87a3 100644
|
|
|
17 | 17 | * @return object|WP_Error On success an object of translations, WP_Error on failure. |
18 | 18 | */ |
19 | 19 | function translations_api( $type, $args = null ) { |
20 | | include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version |
| 20 | include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version |
21 | 21 | |
22 | 22 | if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) { |
23 | 23 | return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) ); |
… |
… |
function wp_get_available_translations() { |
126 | 126 | } |
127 | 127 | } |
128 | 128 | |
129 | | include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version |
| 129 | include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version |
130 | 130 | |
131 | 131 | $api = translations_api( 'core', array( 'version' => $wp_version ) ); |
132 | 132 | |
-
diff --git src/wp-admin/includes/update-core.php src/wp-admin/includes/update-core.php
index 48e3e1277b..6bf368a17f 100644
|
|
function update_core( $from, $to ) { |
933 | 933 | } |
934 | 934 | |
935 | 935 | $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE ); |
936 | | require( WP_CONTENT_DIR . '/upgrade/version-current.php' ); |
| 936 | require WP_CONTENT_DIR . '/upgrade/version-current.php'; |
937 | 937 | $wp_filesystem->delete( $versions_file ); |
938 | 938 | |
939 | 939 | $php_version = phpversion(); |
… |
… |
window.location = 'about.php?updated'; |
1424 | 1424 | <?php |
1425 | 1425 | |
1426 | 1426 | // Include admin-footer.php and exit. |
1427 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 1427 | include ABSPATH . 'wp-admin/admin-footer.php'; |
1428 | 1428 | exit(); |
1429 | 1429 | } |
1430 | 1430 | |
-
diff --git src/wp-admin/includes/update.php src/wp-admin/includes/update.php
index 0caa04a963..997a63ef0c 100644
|
|
function find_core_auto_update() { |
90 | 90 | return false; |
91 | 91 | } |
92 | 92 | |
93 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 93 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
94 | 94 | |
95 | 95 | $auto_update = false; |
96 | 96 | $upgrader = new WP_Automatic_Updater; |
… |
… |
function wp_theme_update_row( $theme_key, $theme ) { |
723 | 723 | * @return void|false |
724 | 724 | */ |
725 | 725 | function maintenance_nag() { |
726 | | include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version |
| 726 | include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version |
727 | 727 | global $upgrading; |
728 | 728 | $nag = isset( $upgrading ); |
729 | 729 | if ( ! $nag ) { |
-
diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
index 505b0aad17..cd5acbf70d 100644
|
|
|
10 | 10 | |
11 | 11 | /** Include user installation customization script. */ |
12 | 12 | if ( file_exists( WP_CONTENT_DIR . '/install.php' ) ) { |
13 | | require( WP_CONTENT_DIR . '/install.php' ); |
| 13 | require WP_CONTENT_DIR . '/install.php'; |
14 | 14 | } |
15 | 15 | |
16 | 16 | /** WordPress Administration API */ |
17 | | require_once( ABSPATH . 'wp-admin/includes/admin.php' ); |
| 17 | require_once ABSPATH . 'wp-admin/includes/admin.php'; |
18 | 18 | |
19 | 19 | /** WordPress Schema API */ |
20 | | require_once( ABSPATH . 'wp-admin/includes/schema.php' ); |
| 20 | require_once ABSPATH . 'wp-admin/includes/schema.php'; |
21 | 21 | |
22 | 22 | if ( ! function_exists( 'wp_install' ) ) : |
23 | 23 | /** |
… |
… |
Commenter avatars come from <a href="https://gravatar.com">Gravatar</a>.' |
358 | 358 | $privacy_policy_content = get_site_option( 'default_privacy_policy_content' ); |
359 | 359 | } else { |
360 | 360 | if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { |
361 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' ); |
| 361 | include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; |
362 | 362 | } |
363 | 363 | |
364 | 364 | $privacy_policy_content = WP_Privacy_Policy_Content::get_default_content(); |
-
diff --git src/wp-admin/index.php src/wp-admin/index.php
index 6db93a9df4..50b7f4046f 100644
|
|
|
6 | 6 | * please refer to wp-admin/_index.php. |
7 | 7 | */ |
8 | 8 | |
9 | | if ( file_exists( dirname( __FILE__ ) . '/../wp-includes/js/dist/edit-post.js' ) ) { |
10 | | require_once dirname( __FILE__ ) . '/_index.php'; |
| 9 | if ( file_exists( __DIR__ . '/../wp-includes/js/dist/edit-post.js' ) ) { |
| 10 | require_once __DIR__ . '/_index.php'; |
11 | 11 | return; |
12 | 12 | } |
13 | 13 | |
14 | | require_once dirname( dirname( __FILE__ ) ) . '/index.php'; |
| 14 | require_once dirname( __DIR__ ) . '/index.php'; |
-
diff --git src/wp-admin/install-helper.php src/wp-admin/install-helper.php
index 432a4a9fa5..1c545759b0 100644
|
|
|
35 | 35 | */ |
36 | 36 | |
37 | 37 | /** Load WordPress Bootstrap */ |
38 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 38 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
39 | 39 | |
40 | 40 | if ( ! function_exists( 'maybe_create_table' ) ) : |
41 | 41 | /** |
-
diff --git src/wp-admin/install.php src/wp-admin/install.php
index 68408c9c41..d0214c30e8 100644
|
|
if ( false ) { |
33 | 33 | define( 'WP_INSTALLING', true ); |
34 | 34 | |
35 | 35 | /** Load WordPress Bootstrap */ |
36 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 36 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
37 | 37 | |
38 | 38 | /** Load WordPress Administration Upgrade API */ |
39 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| 39 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
40 | 40 | |
41 | 41 | /** Load WordPress Translation Install API */ |
42 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| 42 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
43 | 43 | |
44 | 44 | /** Load wpdb */ |
45 | | require_once( ABSPATH . WPINC . '/wp-db.php' ); |
| 45 | require_once ABSPATH . WPINC . '/wp-db.php'; |
46 | 46 | |
47 | 47 | nocache_headers(); |
48 | 48 | |
-
diff --git src/wp-admin/link-add.php src/wp-admin/link-add.php
index ff617d5777..83cf4036f3 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_links' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) ); |
… |
… |
if ( wp_is_mobile() ) { |
26 | 26 | } |
27 | 27 | |
28 | 28 | $link = get_default_link_to_edit(); |
29 | | include( ABSPATH . 'wp-admin/edit-link-form.php' ); |
| 29 | include ABSPATH . 'wp-admin/edit-link-form.php'; |
30 | 30 | |
31 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 31 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/link-manager.php src/wp-admin/link-manager.php
index 1ca9bf64b3..21158367fc 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | if ( ! current_user_can( 'manage_links' ) ) { |
12 | 12 | wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); |
13 | 13 | } |
… |
… |
get_current_screen()->set_screen_reader_content( |
85 | 85 | ) |
86 | 86 | ); |
87 | 87 | |
88 | | include_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 88 | include_once ABSPATH . 'wp-admin/admin-header.php'; |
89 | 89 | |
90 | 90 | if ( ! current_user_can( 'manage_links' ) ) { |
91 | 91 | wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); |
… |
… |
if ( isset( $_REQUEST['deleted'] ) ) { |
134 | 134 | </div> |
135 | 135 | |
136 | 136 | <?php |
137 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 137 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/link.php src/wp-admin/link.php
index ef5b26a515..32d38a11ad 100644
|
|
|
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** Load WordPress Administration Bootstrap */ |
13 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 13 | require_once __DIR__ . '/admin.php'; |
14 | 14 | |
15 | 15 | wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) ); |
16 | 16 | |
… |
… |
switch ( $action ) { |
117 | 117 | wp_die( __( 'Link not found.' ) ); |
118 | 118 | } |
119 | 119 | |
120 | | include( ABSPATH . 'wp-admin/edit-link-form.php' ); |
121 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 120 | include ABSPATH . 'wp-admin/edit-link-form.php'; |
| 121 | include ABSPATH . 'wp-admin/admin-footer.php'; |
122 | 122 | break; |
123 | 123 | |
124 | 124 | default: |
-
diff --git src/wp-admin/load-scripts.php src/wp-admin/load-scripts.php
index bdb5fa5cec..b47ab04f8b 100644
|
|
error_reporting( 0 ); |
9 | 9 | |
10 | 10 | /** Set ABSPATH for execution */ |
11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
12 | | define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' ); |
| 12 | define( 'ABSPATH', dirname( __DIR__ ) . '/' ); |
13 | 13 | } |
14 | 14 | |
15 | 15 | define( 'WPINC', 'wp-includes' ); |
… |
… |
if ( empty( $load ) ) { |
33 | 33 | exit; |
34 | 34 | } |
35 | 35 | |
36 | | require( ABSPATH . 'wp-admin/includes/noop.php' ); |
37 | | require( ABSPATH . WPINC . '/script-loader.php' ); |
38 | | require( ABSPATH . WPINC . '/version.php' ); |
| 36 | require ABSPATH . 'wp-admin/includes/noop.php'; |
| 37 | require ABSPATH . WPINC . '/script-loader.php'; |
| 38 | require ABSPATH . WPINC . '/version.php'; |
39 | 39 | |
40 | 40 | $expires_offset = 31536000; // 1 year |
41 | 41 | $out = ''; |
-
diff --git src/wp-admin/load-styles.php src/wp-admin/load-styles.php
index 8b3cc0d75f..138846698d 100644
|
|
error_reporting( 0 ); |
9 | 9 | |
10 | 10 | /** Set ABSPATH for execution */ |
11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
12 | | define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' ); |
| 12 | define( 'ABSPATH', dirname( __DIR__ ) . '/' ); |
13 | 13 | } |
14 | 14 | |
15 | 15 | define( 'WPINC', 'wp-includes' ); |
16 | 16 | |
17 | | require( ABSPATH . 'wp-admin/includes/noop.php' ); |
18 | | require( ABSPATH . WPINC . '/script-loader.php' ); |
19 | | require( ABSPATH . WPINC . '/version.php' ); |
| 17 | require ABSPATH . 'wp-admin/includes/noop.php'; |
| 18 | require ABSPATH . WPINC . '/script-loader.php'; |
| 19 | require ABSPATH . WPINC . '/version.php'; |
20 | 20 | |
21 | 21 | $protocol = $_SERVER['SERVER_PROTOCOL']; |
22 | 22 | if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) { |
-
diff --git src/wp-admin/maint/repair.php src/wp-admin/maint/repair.php
index 070a91b118..e6bc2418da 100644
|
|
|
7 | 7 | */ |
8 | 8 | define( 'WP_REPAIRING', true ); |
9 | 9 | |
10 | | require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' ); |
| 10 | require_once dirname( dirname( __DIR__ ) ) . '/wp-load.php'; |
11 | 11 | |
12 | 12 | header( 'Content-Type: text/html; charset=utf-8' ); |
13 | 13 | ?> |
-
diff --git src/wp-admin/media-new.php src/wp-admin/media-new.php
index 0cc82a5fd4..c13df43c8f 100644
|
|
|
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** Load WordPress Administration Bootstrap */ |
13 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 13 | require_once __DIR__ . '/admin.php'; |
14 | 14 | |
15 | 15 | if ( ! current_user_can( 'upload_files' ) ) { |
16 | 16 | wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
61 | 61 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
62 | 62 | ); |
63 | 63 | |
64 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 64 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
65 | 65 | |
66 | 66 | $form_class = 'media-upload-form type-form validate'; |
67 | 67 | |
… |
… |
if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) { |
86 | 86 | </div> |
87 | 87 | |
88 | 88 | <?php |
89 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 89 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/media-upload.php src/wp-admin/media-upload.php
index 2354cf629d..12ceabf44a 100644
|
|
if ( ! isset( $_GET['inline'] ) ) { |
14 | 14 | } |
15 | 15 | |
16 | 16 | /** Load WordPress Administration Bootstrap */ |
17 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 17 | require_once __DIR__ . '/admin.php'; |
18 | 18 | |
19 | 19 | if ( ! current_user_can( 'upload_files' ) ) { |
20 | 20 | wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 ); |
-
diff --git src/wp-admin/media.php src/wp-admin/media.php
index 1e09eda2f8..a1836d2b72 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | $parent_file = 'upload.php'; |
13 | 13 | $submenu_file = 'upload.php'; |
… |
… |
switch ( $action ) { |
97 | 97 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
98 | 98 | ); |
99 | 99 | |
100 | | require( ABSPATH . 'wp-admin/admin-header.php' ); |
| 100 | require ABSPATH . 'wp-admin/admin-header.php'; |
101 | 101 | |
102 | 102 | $parent_file = 'upload.php'; |
103 | 103 | $message = ''; |
… |
… |
switch ( $action ) { |
166 | 166 | |
167 | 167 | <?php |
168 | 168 | |
169 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 169 | require ABSPATH . 'wp-admin/admin-footer.php'; |
170 | 170 | |
171 | 171 | exit; |
172 | 172 | |
-
diff --git src/wp-admin/menu.php src/wp-admin/menu.php
index 7aec19663d..50dd4664aa 100644
|
|
$compat = array( |
323 | 323 | 'themes' => 'appearance', |
324 | 324 | ); |
325 | 325 | |
326 | | require_once( ABSPATH . 'wp-admin/includes/menu.php' ); |
| 326 | require_once ABSPATH . 'wp-admin/includes/menu.php'; |
-
diff --git src/wp-admin/moderation.php src/wp-admin/moderation.php
index ae375df3e7..f52ff79475 100644
|
|
|
7 | 7 | * @package WordPress |
8 | 8 | * @subpackage Administration |
9 | 9 | */ |
10 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 10 | require_once dirname( __DIR__ ) . '/wp-load.php'; |
11 | 11 | wp_redirect( admin_url( 'edit-comments.php?comment_status=moderated' ) ); |
12 | 12 | exit; |
-
diff --git src/wp-admin/ms-admin.php src/wp-admin/ms-admin.php
index 35e21e971a..24339eca28 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url() ); |
13 | 13 | exit; |
-
diff --git src/wp-admin/ms-delete-site.php src/wp-admin/ms-delete-site.php
index 3cb1574356..bd06703c08 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! is_multisite() ) { |
13 | 13 | wp_die( __( 'Multisite support is not enabled.' ) ); |
… |
… |
$user = wp_get_current_user(); |
37 | 37 | |
38 | 38 | $title = __( 'Delete Site' ); |
39 | 39 | $parent_file = 'tools.php'; |
40 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 40 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
41 | 41 | |
42 | 42 | echo '<div class="wrap">'; |
43 | 43 | echo '<h1>' . esc_html( $title ) . '</h1>'; |
… |
… |
Webmaster |
133 | 133 | } |
134 | 134 | echo '</div>'; |
135 | 135 | |
136 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 136 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/ms-edit.php src/wp-admin/ms-edit.php
index 5c405e6f73..c9503b358d 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url() ); |
13 | 13 | exit; |
-
diff --git src/wp-admin/ms-options.php src/wp-admin/ms-options.php
index 6bf5eb6b1b..ebc8529624 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url( 'settings.php' ) ); |
-
diff --git src/wp-admin/ms-sites.php src/wp-admin/ms-sites.php
index 79602cb07f..f1f8fdcb58 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url( 'sites.php' ) ); |
13 | 13 | exit; |
-
diff --git src/wp-admin/ms-themes.php src/wp-admin/ms-themes.php
index 4b86ac9684..f3d8a38352 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url( 'themes.php' ) ); |
13 | 13 | exit; |
-
diff --git src/wp-admin/ms-upgrade-network.php src/wp-admin/ms-upgrade-network.php
index 892ab964c7..25c604631b 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url( 'upgrade.php' ) ); |
13 | 13 | exit; |
-
diff --git src/wp-admin/ms-users.php src/wp-admin/ms-users.php
index 1b00514ec3..6771807157 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_redirect( network_admin_url( 'users.php' ) ); |
13 | 13 | exit; |
-
diff --git src/wp-admin/my-sites.php src/wp-admin/my-sites.php
index a733cf25ed..e2d8699135 100644
|
|
|
7 | 7 | * @since 3.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! is_multisite() ) { |
13 | 13 | wp_die( __( 'Multisite support is not enabled.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
52 | 52 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
53 | 53 | ); |
54 | 54 | |
55 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 55 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
56 | 56 | |
57 | 57 | if ( $updated ) { ?> |
58 | 58 | <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> |
… |
… |
else : |
157 | 157 | <?php endif; ?> |
158 | 158 | </div> |
159 | 159 | <?php |
160 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 160 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/nav-menus.php src/wp-admin/nav-menus.php
index d707e49cbf..08e2bcf9e2 100644
|
|
|
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** Load WordPress Administration Bootstrap */ |
13 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 13 | require_once __DIR__ . '/admin.php'; |
14 | 14 | |
15 | 15 | // Load all the nav menu interface functions |
16 | | require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); |
| 16 | require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; |
17 | 17 | |
18 | 18 | if ( ! current_theme_supports( 'menus' ) && ! current_theme_supports( 'widgets' ) ) { |
19 | 19 | wp_die( __( 'Your theme does not support navigation menus or widgets.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
606 | 606 | ); |
607 | 607 | |
608 | 608 | // Get the admin header. |
609 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 609 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
610 | 610 | ?> |
611 | 611 | <div class="wrap"> |
612 | 612 | <h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
1035 | 1035 | </div><!-- /#nav-menus-frame --> |
1036 | 1036 | <?php endif; ?> |
1037 | 1037 | </div><!-- /.wrap--> |
1038 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 1038 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/network.php src/wp-admin/network.php
index a3409622a0..a52f07d08b 100644
|
|
|
13 | 13 | define( 'WP_INSTALLING_NETWORK', true ); |
14 | 14 | |
15 | 15 | /** WordPress Administration Bootstrap */ |
16 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 16 | require_once __DIR__ . '/admin.php'; |
17 | 17 | |
18 | 18 | if ( ! current_user_can( 'setup_network' ) ) { |
19 | 19 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
if ( is_multisite() ) { |
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | | require_once( dirname( __FILE__ ) . '/includes/network.php' ); |
| 33 | require_once __DIR__ . '/includes/network.php'; |
34 | 34 | |
35 | 35 | // We need to create references to ms global tables to enable Network. |
36 | 36 | foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) { |
… |
… |
get_current_screen()->set_help_sidebar( |
81 | 81 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
82 | 82 | ); |
83 | 83 | |
84 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 84 | include ABSPATH . 'wp-admin/admin-header.php'; |
85 | 85 | ?> |
86 | 86 | <div class="wrap"> |
87 | 87 | <h1><?php echo esc_html( $title ); ?></h1> |
… |
… |
if ( $_POST ) { |
91 | 91 | |
92 | 92 | check_admin_referer( 'install-network-1' ); |
93 | 93 | |
94 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| 94 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
95 | 95 | // Create network tables. |
96 | 96 | install_network(); |
97 | 97 | $base = parse_url( trailingslashit( get_option( 'home' ) ), PHP_URL_PATH ); |
… |
… |
if ( $_POST ) { |
118 | 118 | ?> |
119 | 119 | </div> |
120 | 120 | |
121 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 121 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/network/about.php src/wp-admin/network/about.php
index 829fa1beef..35fde6858f 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/about.php' ); |
| 13 | require ABSPATH . 'wp-admin/about.php'; |
-
diff --git src/wp-admin/network/admin.php src/wp-admin/network/admin.php
index 693fa5aa11..5c2ce2e858 100644
|
|
|
10 | 10 | define( 'WP_NETWORK_ADMIN', true ); |
11 | 11 | |
12 | 12 | /** Load WordPress Administration Bootstrap */ |
13 | | require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' ); |
| 13 | require_once dirname( __DIR__ ) . '/admin.php'; |
14 | 14 | |
15 | 15 | // Do not remove this check. It is required by individual network admin pages. |
16 | 16 | if ( ! is_multisite() ) { |
-
diff --git src/wp-admin/network/credits.php src/wp-admin/network/credits.php
index 75ee6e7337..6e6a0a9961 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/credits.php' ); |
| 13 | require ABSPATH . 'wp-admin/credits.php'; |
-
diff --git src/wp-admin/network/edit.php src/wp-admin/network/edit.php
index 51381e40bf..e33792debf 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : ''; |
14 | 14 | |
-
diff --git src/wp-admin/network/freedoms.php src/wp-admin/network/freedoms.php
index 9afbe82f34..b6319df607 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/freedoms.php' ); |
| 13 | require ABSPATH . 'wp-admin/freedoms.php'; |
-
diff --git src/wp-admin/network/index.php src/wp-admin/network/index.php
index fbc169bd21..840ae4d473 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | /** Load WordPress dashboard API */ |
14 | | require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); |
| 14 | require_once ABSPATH . 'wp-admin/includes/dashboard.php'; |
15 | 15 | |
16 | 16 | if ( ! current_user_can( 'manage_network' ) ) { |
17 | 17 | wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); |
… |
… |
wp_enqueue_script( 'dashboard' ); |
62 | 62 | wp_enqueue_script( 'plugin-install' ); |
63 | 63 | add_thickbox(); |
64 | 64 | |
65 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 65 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
66 | 66 | |
67 | 67 | ?> |
68 | 68 | |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
80 | 80 | |
81 | 81 | <?php |
82 | 82 | wp_print_community_events_templates(); |
83 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 83 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/menu.php src/wp-admin/network/menu.php
index 03a2edf954..28509b1769 100644
|
|
unset( $update_data ); |
115 | 115 | |
116 | 116 | $menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' ); |
117 | 117 | |
118 | | require_once( ABSPATH . 'wp-admin/includes/menu.php' ); |
| 118 | require_once ABSPATH . 'wp-admin/includes/menu.php'; |
-
diff --git src/wp-admin/network/plugin-editor.php src/wp-admin/network/plugin-editor.php
index 7171e7252c..e807caee4a 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/plugin-editor.php' ); |
| 13 | require ABSPATH . 'wp-admin/plugin-editor.php'; |
-
diff --git src/wp-admin/network/plugin-install.php src/wp-admin/network/plugin-install.php
index f771f63a88..f34ed8346d 100644
|
|
if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) { |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** Load WordPress Administration Bootstrap */ |
15 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 15 | require_once __DIR__ . '/admin.php'; |
16 | 16 | |
17 | | require( ABSPATH . 'wp-admin/plugin-install.php' ); |
| 17 | require ABSPATH . 'wp-admin/plugin-install.php'; |
-
diff --git src/wp-admin/network/plugins.php src/wp-admin/network/plugins.php
index 56c3debd01..21139ada11 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/plugins.php' ); |
| 13 | require ABSPATH . 'wp-admin/plugins.php'; |
-
diff --git src/wp-admin/network/privacy.php src/wp-admin/network/privacy.php
index 5cba05d37d..57842b7b8a 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/privacy.php' ); |
| 13 | require ABSPATH . 'wp-admin/privacy.php'; |
-
diff --git src/wp-admin/network/profile.php src/wp-admin/network/profile.php
index 240ef980a4..6a27557292 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/profile.php' ); |
| 13 | require ABSPATH . 'wp-admin/profile.php'; |
-
diff --git src/wp-admin/network/settings.php src/wp-admin/network/settings.php
index c100a665f3..f33c7c20cf 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | /** WordPress Translation Installation API */ |
14 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| 14 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
15 | 15 | |
16 | 16 | if ( ! current_user_can( 'manage_network_options' ) ) { |
17 | 17 | wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); |
… |
… |
if ( $_POST ) { |
135 | 135 | exit(); |
136 | 136 | } |
137 | 137 | |
138 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 138 | include ABSPATH . 'wp-admin/admin-header.php'; |
139 | 139 | |
140 | 140 | if ( isset( $_GET['updated'] ) ) { |
141 | 141 | ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div> |
… |
… |
if ( isset( $_GET['updated'] ) ) { |
486 | 486 | </form> |
487 | 487 | </div> |
488 | 488 | |
489 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 489 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/network/setup.php src/wp-admin/network/setup.php
index 9a642bbb92..4b1f5b1e59 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/network.php' ); |
| 13 | require ABSPATH . 'wp-admin/network.php'; |
-
diff --git src/wp-admin/network/site-info.php src/wp-admin/network/site-info.php
index 2bcc1c58a3..f224031502 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_sites' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); |
… |
… |
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); |
127 | 127 | $parent_file = 'sites.php'; |
128 | 128 | $submenu_file = 'sites.php'; |
129 | 129 | |
130 | | require( ABSPATH . 'wp-admin/admin-header.php' ); |
| 130 | require ABSPATH . 'wp-admin/admin-header.php'; |
131 | 131 | |
132 | 132 | ?> |
133 | 133 | |
… |
… |
if ( ! empty( $messages ) ) { |
206 | 206 | |
207 | 207 | </div> |
208 | 208 | <?php |
209 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 209 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php
index d86058e0f4..e0b742b9f4 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | /** WordPress Translation Installation API */ |
14 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| 14 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
15 | 15 | |
16 | 16 | if ( ! current_user_can( 'create_sites' ) ) { |
17 | 17 | wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) ); |
… |
… |
$parent_file = 'sites.php'; |
202 | 202 | |
203 | 203 | wp_enqueue_script( 'user-suggest' ); |
204 | 204 | |
205 | | require( ABSPATH . 'wp-admin/admin-header.php' ); |
| 205 | require ABSPATH . 'wp-admin/admin-header.php'; |
206 | 206 | |
207 | 207 | ?> |
208 | 208 | |
… |
… |
printf( |
300 | 300 | </form> |
301 | 301 | </div> |
302 | 302 | <?php |
303 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 303 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/site-settings.php src/wp-admin/network/site-settings.php
index 7c3cae7200..4700aa78d3 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_sites' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); |
… |
… |
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); |
85 | 85 | $parent_file = 'sites.php'; |
86 | 86 | $submenu_file = 'sites.php'; |
87 | 87 | |
88 | | require( ABSPATH . 'wp-admin/admin-header.php' ); |
| 88 | require ABSPATH . 'wp-admin/admin-header.php'; |
89 | 89 | |
90 | 90 | ?> |
91 | 91 | |
… |
… |
if ( ! empty( $messages ) ) { |
173 | 173 | |
174 | 174 | </div> |
175 | 175 | <?php |
176 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 176 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/site-themes.php src/wp-admin/network/site-themes.php
index fc1a79805f..fdd6a29b95 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_sites' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) ); |
… |
… |
$title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); |
172 | 172 | $parent_file = 'sites.php'; |
173 | 173 | $submenu_file = 'sites.php'; |
174 | 174 | |
175 | | require( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
| 175 | require ABSPATH . 'wp-admin/admin-header.php'; ?> |
176 | 176 | |
177 | 177 | <div class="wrap"> |
178 | 178 | <h1 id="edit-site"><?php echo $title; ?></h1> |
… |
… |
if ( isset( $_GET['enabled'] ) ) { |
226 | 226 | </form> |
227 | 227 | |
228 | 228 | </div> |
229 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 229 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/network/site-users.php src/wp-admin/network/site-users.php
index 5113025776..6bfc4b170d 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_sites' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to edit this site.' ), 403 ); |
… |
… |
if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users |
214 | 214 | wp_enqueue_script( 'user-suggest' ); |
215 | 215 | } |
216 | 216 | |
217 | | require( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
| 217 | require ABSPATH . 'wp-admin/admin-header.php'; ?> |
218 | 218 | |
219 | 219 | <script type="text/javascript"> |
220 | 220 | var current_site_id = <?php echo $id; ?>; |
… |
… |
if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use |
363 | 363 | <?php endif; ?> |
364 | 364 | </div> |
365 | 365 | <?php |
366 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 366 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/sites.php src/wp-admin/network/sites.php
index 554e260509..a4a7a2beb3 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_sites' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
108 | 108 | $site_details = get_site( $id ); |
109 | 109 | $site_address = untrailingslashit( $site_details->domain . $site_details->path ); |
110 | 110 | |
111 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 111 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
112 | 112 | ?> |
113 | 113 | <div class="wrap"> |
114 | 114 | <h1><?php _e( 'Confirm your action' ); ?></h1> |
… |
… |
if ( isset( $_GET['action'] ) ) { |
122 | 122 | </form> |
123 | 123 | </div> |
124 | 124 | <?php |
125 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 125 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
126 | 126 | exit(); |
127 | 127 | } elseif ( array_key_exists( $_GET['action'], $manage_actions ) ) { |
128 | 128 | $action = $_GET['action']; |
… |
… |
if ( isset( $_GET['action'] ) ) { |
184 | 184 | if ( $val != '0' && $val != get_network()->site_id ) { |
185 | 185 | switch ( $doaction ) { |
186 | 186 | case 'delete': |
187 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 187 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
188 | 188 | ?> |
189 | 189 | <div class="wrap"> |
190 | 190 | <h1><?php _e( 'Confirm your action' ); ?></h1> |
… |
… |
if ( isset( $_GET['action'] ) ) { |
209 | 209 | </form> |
210 | 210 | </div> |
211 | 211 | <?php |
212 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 212 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
213 | 213 | exit(); |
214 | 214 | break; |
215 | 215 | |
… |
… |
if ( isset( $_GET['updated'] ) ) { |
354 | 354 | |
355 | 355 | $wp_list_table->prepare_items(); |
356 | 356 | |
357 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 357 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
358 | 358 | ?> |
359 | 359 | |
360 | 360 | <div class="wrap"> |
… |
… |
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { |
388 | 388 | </div> |
389 | 389 | <?php |
390 | 390 | |
391 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 391 | require_once ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/network/theme-editor.php src/wp-admin/network/theme-editor.php
index c28c9675cc..e503efa9d5 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/theme-editor.php' ); |
| 13 | require ABSPATH . 'wp-admin/theme-editor.php'; |
-
diff --git src/wp-admin/network/theme-install.php src/wp-admin/network/theme-install.php
index 486c74780b..93695d5a8a 100644
|
|
if ( isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) ) { |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** Load WordPress Administration Bootstrap */ |
15 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 15 | require_once __DIR__ . '/admin.php'; |
16 | 16 | |
17 | | require( ABSPATH . 'wp-admin/theme-install.php' ); |
| 17 | require ABSPATH . 'wp-admin/theme-install.php'; |
-
diff --git src/wp-admin/network/themes.php src/wp-admin/network/themes.php
index f7711f034d..92c9675273 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_network_themes' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) ); |
… |
… |
if ( $action ) { |
76 | 76 | $title = __( 'Update Themes' ); |
77 | 77 | $parent_file = 'themes.php'; |
78 | 78 | |
79 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 79 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
80 | 80 | |
81 | 81 | echo '<div class="wrap">'; |
82 | 82 | echo '<h1>' . esc_html( $title ) . '</h1>'; |
… |
… |
if ( $action ) { |
86 | 86 | |
87 | 87 | echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>"; |
88 | 88 | echo '</div>'; |
89 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 89 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
90 | 90 | exit; |
91 | 91 | case 'delete-selected': |
92 | 92 | if ( ! current_user_can( 'delete_themes' ) ) { |
… |
… |
if ( $action ) { |
114 | 114 | $theme_info[ $theme ] = wp_get_theme( $theme ); |
115 | 115 | } |
116 | 116 | |
117 | | include( ABSPATH . 'wp-admin/update.php' ); |
| 117 | include ABSPATH . 'wp-admin/update.php'; |
118 | 118 | |
119 | 119 | $parent_file = 'themes.php'; |
120 | 120 | |
121 | 121 | if ( ! isset( $_REQUEST['verify-delete'] ) ) { |
122 | 122 | wp_enqueue_script( 'jquery' ); |
123 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 123 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
124 | 124 | $themes_to_delete = count( $themes ); |
125 | 125 | ?> |
126 | 126 | <div class="wrap"> |
… |
… |
if ( $action ) { |
175 | 175 | </form> |
176 | 176 | </div> |
177 | 177 | <?php |
178 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 178 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
179 | 179 | exit; |
180 | 180 | } // Endif verify-delete |
181 | 181 | |
… |
… |
$parent_file = 'themes.php'; |
261 | 261 | wp_enqueue_script( 'updates' ); |
262 | 262 | wp_enqueue_script( 'theme-preview' ); |
263 | 263 | |
264 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 264 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
265 | 265 | |
266 | 266 | ?> |
267 | 267 | |
… |
… |
wp_print_request_filesystem_credentials_modal(); |
343 | 343 | wp_print_admin_notice_templates(); |
344 | 344 | wp_print_update_row_templates(); |
345 | 345 | |
346 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 346 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/update-core.php src/wp-admin/network/update-core.php
index 55f2aca32a..1997b36ed5 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/update-core.php' ); |
| 13 | require ABSPATH . 'wp-admin/update-core.php'; |
-
diff --git src/wp-admin/network/update.php src/wp-admin/network/update.php
index 62dc7a96e7..2a8bccc709 100644
|
|
if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'update-selec |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** Load WordPress Administration Bootstrap */ |
15 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 15 | require_once __DIR__ . '/admin.php'; |
16 | 16 | |
17 | | require( ABSPATH . 'wp-admin/update.php' ); |
| 17 | require ABSPATH . 'wp-admin/update.php'; |
-
diff --git src/wp-admin/network/upgrade.php src/wp-admin/network/upgrade.php
index e594a17555..307b8c1806 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require_once( ABSPATH . WPINC . '/http.php' ); |
| 13 | require_once ABSPATH . WPINC . '/http.php'; |
14 | 14 | |
15 | 15 | $title = __( 'Upgrade Network' ); |
16 | 16 | $parent_file = 'upgrade.php'; |
… |
… |
get_current_screen()->set_help_sidebar( |
32 | 32 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
33 | 33 | ); |
34 | 34 | |
35 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 35 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
36 | 36 | |
37 | 37 | if ( ! current_user_can( 'upgrade_network' ) ) { |
38 | 38 | wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); |
… |
… |
switch ( $action ) { |
152 | 152 | ?> |
153 | 153 | </div> |
154 | 154 | |
155 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 155 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/network/user-edit.php src/wp-admin/network/user-edit.php
index ef3c2720f1..7b908fd8b6 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/user-edit.php' ); |
| 13 | require ABSPATH . 'wp-admin/user-edit.php'; |
-
diff --git src/wp-admin/network/user-new.php src/wp-admin/network/user-new.php
index 2bb2de1ed7..61f108701c 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'create_users' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to add users to this network.' ) ); |
… |
… |
if ( isset( $_GET['update'] ) ) { |
99 | 99 | $title = __( 'Add New User' ); |
100 | 100 | $parent_file = 'users.php'; |
101 | 101 | |
102 | | require( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
| 102 | require ABSPATH . 'wp-admin/admin-header.php'; ?> |
103 | 103 | |
104 | 104 | <div class="wrap"> |
105 | 105 | <h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1> |
… |
… |
if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { |
148 | 148 | </form> |
149 | 149 | </div> |
150 | 150 | <?php |
151 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 151 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/network/users.php src/wp-admin/network/users.php
index 9c5bcc0ca4..3cb2d3bf39 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'manage_network_users' ) ) { |
14 | 14 | wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
31 | 31 | $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays |
32 | 32 | $title = __( 'Users' ); |
33 | 33 | $parent_file = 'users.php'; |
34 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 34 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
35 | 35 | echo '<div class="wrap">'; |
36 | 36 | confirm_delete_users( $_POST['allusers'] ); |
37 | 37 | echo '</div>'; |
38 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 38 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
39 | 39 | } else { |
40 | 40 | wp_redirect( network_admin_url( 'users.php' ) ); |
41 | 41 | } |
… |
… |
if ( isset( $_GET['action'] ) ) { |
61 | 61 | } |
62 | 62 | $title = __( 'Users' ); |
63 | 63 | $parent_file = 'users.php'; |
64 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 64 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
65 | 65 | echo '<div class="wrap">'; |
66 | 66 | confirm_delete_users( $_POST['allusers'] ); |
67 | 67 | echo '</div>'; |
68 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 68 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
69 | 69 | exit(); |
70 | 70 | |
71 | 71 | case 'spam': |
… |
… |
get_current_screen()->set_screen_reader_content( |
237 | 237 | ) |
238 | 238 | ); |
239 | 239 | |
240 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 240 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
241 | 241 | |
242 | 242 | if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) { |
243 | 243 | ?> |
… |
… |
if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( |
294 | 294 | </form> |
295 | 295 | </div> |
296 | 296 | |
297 | | <?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 297 | <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options-discussion.php src/wp-admin/options-discussion.php
index a61a5f6f8e..5c5aaf7536 100644
|
|
|
6 | 6 | * @subpackage Administration |
7 | 7 | */ |
8 | 8 | /** WordPress Administration Bootstrap */ |
9 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 9 | require_once __DIR__ . '/admin.php'; |
10 | 10 | |
11 | 11 | if ( ! current_user_can( 'manage_options' ) ) { |
12 | 12 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
32 | 32 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
33 | 33 | ); |
34 | 34 | |
35 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 35 | include ABSPATH . 'wp-admin/admin-header.php'; |
36 | 36 | ?> |
37 | 37 | |
38 | 38 | <div class="wrap"> |
… |
… |
echo apply_filters( 'default_avatar_select', $avatar_list ); |
328 | 328 | </form> |
329 | 329 | </div> |
330 | 330 | |
331 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 331 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
index 13aa9c8114..8682189327 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | /** WordPress Translation Installation API */ |
13 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| 13 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
14 | 14 | |
15 | 15 | if ( ! current_user_can( 'manage_options' ) ) { |
16 | 16 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
49 | 49 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
50 | 50 | ); |
51 | 51 | |
52 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 52 | include ABSPATH . 'wp-admin/admin-header.php'; |
53 | 53 | ?> |
54 | 54 | |
55 | 55 | <div class="wrap"> |
… |
… |
endfor; |
405 | 405 | |
406 | 406 | </div> |
407 | 407 | |
408 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 408 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options-media.php src/wp-admin/options-media.php
index 4cc5e4c5ef..76c89265ac 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_options' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
38 | 38 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
39 | 39 | ); |
40 | 40 | |
41 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 41 | include ABSPATH . 'wp-admin/admin-header.php'; |
42 | 42 | |
43 | 43 | ?> |
44 | 44 | |
… |
… |
if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : |
153 | 153 | |
154 | 154 | </div> |
155 | 155 | |
156 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 156 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options-permalink.php src/wp-admin/options-permalink.php
index b9a69678ff..b20bb98ac5 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_options' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) |
183 | 183 | |
184 | 184 | flush_rewrite_rules(); |
185 | 185 | |
186 | | require( ABSPATH . 'wp-admin/admin-header.php' ); |
| 186 | require ABSPATH . 'wp-admin/admin-header.php'; |
187 | 187 | ?> |
188 | 188 | <div class="wrap"> |
189 | 189 | <h1><?php echo esc_html( $title ); ?></h1> |
… |
… |
else : |
423 | 423 | |
424 | 424 | </div> |
425 | 425 | |
426 | | <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 426 | <?php require ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options-privacy.php src/wp-admin/options-privacy.php
index 95492b326f..6d531b5aa8 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_privacy_options' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) ); |
… |
… |
if ( ! empty( $action ) ) { |
49 | 49 | } elseif ( 'create-privacy-page' === $action ) { |
50 | 50 | |
51 | 51 | if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { |
52 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' ); |
| 52 | require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; |
53 | 53 | } |
54 | 54 | |
55 | 55 | $privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content(); |
… |
… |
if ( ! empty( $privacy_policy_page_id ) ) { |
115 | 115 | $title = __( 'Privacy Settings' ); |
116 | 116 | $parent_file = 'options-general.php'; |
117 | 117 | |
118 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 118 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
119 | 119 | |
120 | 120 | ?> |
121 | 121 | <div class="wrap"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
252 | 252 | </div> |
253 | 253 | <?php |
254 | 254 | |
255 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 255 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/options-reading.php src/wp-admin/options-reading.php
index 662954ea24..dfe3742e97 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_options' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
52 | 52 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
53 | 53 | ); |
54 | 54 | |
55 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 55 | include ABSPATH . 'wp-admin/admin-header.php'; |
56 | 56 | ?> |
57 | 57 | |
58 | 58 | <div class="wrap"> |
… |
… |
else : |
215 | 215 | <?php submit_button(); ?> |
216 | 216 | </form> |
217 | 217 | </div> |
218 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 218 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options-writing.php src/wp-admin/options-writing.php
index 1ea19cd129..581ce08563 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_options' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
… |
… |
get_current_screen()->set_help_sidebar( |
53 | 53 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
54 | 54 | ); |
55 | 55 | |
56 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 56 | include ABSPATH . 'wp-admin/admin-header.php'; |
57 | 57 | ?> |
58 | 58 | |
59 | 59 | <div class="wrap"> |
… |
… |
if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
236 | 236 | </form> |
237 | 237 | </div> |
238 | 238 | |
239 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 239 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/options.php src/wp-admin/options.php
index 1aaad130b4..1ff1aadd3b 100644
|
|
|
16 | 16 | */ |
17 | 17 | |
18 | 18 | /** WordPress Administration Bootstrap */ |
19 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 19 | require_once __DIR__ . '/admin.php'; |
20 | 20 | |
21 | 21 | $title = __( 'Settings' ); |
22 | 22 | $this_file = 'options.php'; |
… |
… |
if ( 'update' == $action ) { |
246 | 246 | |
247 | 247 | // Handle translation installation. |
248 | 248 | if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) ) { |
249 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| 249 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
250 | 250 | |
251 | 251 | if ( wp_can_install_language_pack() ) { |
252 | 252 | $language = wp_download_language_pack( $_POST['WPLANG'] ); |
… |
… |
if ( 'update' == $action ) { |
314 | 314 | exit; |
315 | 315 | } |
316 | 316 | |
317 | | include( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
| 317 | include ABSPATH . 'wp-admin/admin-header.php'; ?> |
318 | 318 | |
319 | 319 | <div class="wrap"> |
320 | 320 | <h1><?php esc_html_e( 'All Settings' ); ?></h1> |
… |
… |
foreach ( (array) $options as $option ) : |
374 | 374 | </div> |
375 | 375 | |
376 | 376 | <?php |
377 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 377 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/plugin-editor.php src/wp-admin/plugin-editor.php
index 0b44fbb499..e617b44240 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( is_multisite() && ! is_network_admin() ) { |
13 | 13 | wp_redirect( network_admin_url( 'plugin-editor.php' ) ); |
… |
… |
$parent_file = 'plugins.php'; |
24 | 24 | $plugins = get_plugins(); |
25 | 25 | |
26 | 26 | if ( empty( $plugins ) ) { |
27 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 27 | include ABSPATH . 'wp-admin/admin-header.php'; |
28 | 28 | ?> |
29 | 29 | <div class="wrap"> |
30 | 30 | <h1><?php echo esc_html( $title ); ?></h1> |
31 | 31 | <div id="message" class="error"><p><?php _e( 'You do not appear to have any plugins available at this time.' ); ?></p></div> |
32 | 32 | </div> |
33 | 33 | <?php |
34 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 34 | include ABSPATH . 'wp-admin/admin-footer.php'; |
35 | 35 | exit; |
36 | 36 | } |
37 | 37 | |
… |
… |
if ( ! is_file( $real_file ) ) { |
150 | 150 | wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings ) ) ); |
151 | 151 | wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'wp.themePluginEditor.themeOrPlugin = "plugin";' ) ); |
152 | 152 | |
153 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 153 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
154 | 154 | |
155 | 155 | update_recently_edited( WP_PLUGIN_DIR . '/' . $file ); |
156 | 156 | |
… |
… |
if ( ! in_array( 'plugin_editor_notice', $dismissed_pointers, true ) ) : |
326 | 326 | <?php |
327 | 327 | endif; // Editor warning notice. |
328 | 328 | |
329 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 329 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/plugin-install.php src/wp-admin/plugin-install.php
index 52dd791684..2780426c70 100644
|
|
if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informa |
13 | 13 | /** |
14 | 14 | * WordPress Administration Bootstrap. |
15 | 15 | */ |
16 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 16 | require_once __DIR__ . '/admin.php'; |
17 | 17 | |
18 | 18 | if ( ! current_user_can( 'install_plugins' ) ) { |
19 | 19 | wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); |
… |
… |
get_current_screen()->set_screen_reader_content( |
121 | 121 | /** |
122 | 122 | * WordPress Administration Template Header. |
123 | 123 | */ |
124 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 124 | include ABSPATH . 'wp-admin/admin-header.php'; |
125 | 125 | ?> |
126 | 126 | <div class="wrap <?php echo esc_attr( "plugin-install-tab-$tab" ); ?>"> |
127 | 127 | <h1 class="wp-heading-inline"> |
… |
… |
wp_print_admin_notice_templates(); |
184 | 184 | /** |
185 | 185 | * WordPress Administration Template Footer. |
186 | 186 | */ |
187 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 187 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/plugins.php src/wp-admin/plugins.php
index 459a2f82f6..afce3c4357 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'activate_plugins' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) ); |
… |
… |
if ( $action ) { |
141 | 141 | $parent_file = 'plugins.php'; |
142 | 142 | |
143 | 143 | wp_enqueue_script( 'updates' ); |
144 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 144 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
145 | 145 | |
146 | 146 | echo '<div class="wrap">'; |
147 | 147 | echo '<h1>' . esc_html( $title ) . '</h1>'; |
… |
… |
if ( $action ) { |
151 | 151 | |
152 | 152 | echo "<iframe src='$url' style='width: 100%; height:100%; min-height:850px;'></iframe>"; |
153 | 153 | echo '</div>'; |
154 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 154 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
155 | 155 | exit; |
156 | 156 | |
157 | 157 | case 'error_scrape': |
… |
… |
if ( $action ) { |
275 | 275 | exit; |
276 | 276 | } |
277 | 277 | |
278 | | include( ABSPATH . 'wp-admin/update.php' ); |
| 278 | include ABSPATH . 'wp-admin/update.php'; |
279 | 279 | |
280 | 280 | $parent_file = 'plugins.php'; |
281 | 281 | |
282 | 282 | if ( ! isset( $_REQUEST['verify-delete'] ) ) { |
283 | 283 | wp_enqueue_script( 'jquery' ); |
284 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 284 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
285 | 285 | ?> |
286 | 286 | <div class="wrap"> |
287 | 287 | <?php |
… |
… |
if ( $action ) { |
371 | 371 | </form> |
372 | 372 | </div> |
373 | 373 | <?php |
374 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 374 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
375 | 375 | exit; |
376 | 376 | } else { |
377 | 377 | $plugins_to_delete = count( $plugins ); |
… |
… |
get_current_screen()->set_screen_reader_content( |
480 | 480 | $title = __( 'Plugins' ); |
481 | 481 | $parent_file = 'plugins.php'; |
482 | 482 | |
483 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 483 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
484 | 484 | |
485 | 485 | $invalid = validate_active_plugins(); |
486 | 486 | if ( ! empty( $invalid ) ) { |
… |
… |
wp_print_request_filesystem_credentials_modal(); |
642 | 642 | wp_print_admin_notice_templates(); |
643 | 643 | wp_print_update_row_templates(); |
644 | 644 | |
645 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 645 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/post-new.php src/wp-admin/post-new.php
index a93a11bffe..0f6992e809 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** Load WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | /** |
13 | 13 | * @global string $post_type |
… |
… |
$post_ID = $post->ID; |
69 | 69 | /** This filter is documented in wp-admin/post.php */ |
70 | 70 | if ( apply_filters( 'replace_editor', false, $post ) !== true ) { |
71 | 71 | if ( use_block_editor_for_post( $post ) ) { |
72 | | include( ABSPATH . 'wp-admin/edit-form-blocks.php' ); |
| 72 | include ABSPATH . 'wp-admin/edit-form-blocks.php'; |
73 | 73 | } else { |
74 | 74 | wp_enqueue_script( 'autosave' ); |
75 | | include( ABSPATH . 'wp-admin/edit-form-advanced.php' ); |
| 75 | include ABSPATH . 'wp-admin/edit-form-advanced.php'; |
76 | 76 | } |
77 | 77 | } else { |
78 | 78 | // Flag that we're not loading the block editor. |
… |
… |
if ( apply_filters( 'replace_editor', false, $post ) !== true ) { |
80 | 80 | $current_screen->is_block_editor( false ); |
81 | 81 | } |
82 | 82 | |
83 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 83 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/post.php src/wp-admin/post.php
index ef3e73a829..02268cb0c7 100644
|
|
|
9 | 9 | */ |
10 | 10 | |
11 | 11 | /** WordPress Administration Bootstrap */ |
12 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 12 | require_once __DIR__ . '/admin.php'; |
13 | 13 | |
14 | 14 | $parent_file = 'edit.php'; |
15 | 15 | $submenu_file = 'edit.php'; |
… |
… |
switch ( $action ) { |
176 | 176 | } |
177 | 177 | |
178 | 178 | if ( use_block_editor_for_post( $post ) ) { |
179 | | include( ABSPATH . 'wp-admin/edit-form-blocks.php' ); |
| 179 | include ABSPATH . 'wp-admin/edit-form-blocks.php'; |
180 | 180 | break; |
181 | 181 | } |
182 | 182 | |
… |
… |
switch ( $action ) { |
195 | 195 | enqueue_comment_hotkeys_js(); |
196 | 196 | } |
197 | 197 | |
198 | | include( ABSPATH . 'wp-admin/edit-form-advanced.php' ); |
| 198 | include ABSPATH . 'wp-admin/edit-form-advanced.php'; |
199 | 199 | |
200 | 200 | break; |
201 | 201 | |
… |
… |
switch ( $action ) { |
350 | 350 | wp_redirect( admin_url( 'edit.php' ) ); |
351 | 351 | exit(); |
352 | 352 | } // end switch |
353 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 353 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/press-this.php src/wp-admin/press-this.php
index 0f00dee40b..ebe7502f54 100644
|
|
|
9 | 9 | define( 'IFRAME_REQUEST', true ); |
10 | 10 | |
11 | 11 | /** WordPress Administration Bootstrap */ |
12 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 12 | require_once __DIR__ . '/admin.php'; |
13 | 13 | |
14 | 14 | function wp_load_press_this() { |
15 | 15 | $plugin_slug = 'press-this'; |
… |
… |
function wp_load_press_this() { |
22 | 22 | 403 |
23 | 23 | ); |
24 | 24 | } elseif ( is_plugin_active( $plugin_file ) ) { |
25 | | include( WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php' ); |
| 25 | include WP_PLUGIN_DIR . '/press-this/class-wp-press-this-plugin.php'; |
26 | 26 | $wp_press_this = new WP_Press_This_Plugin(); |
27 | 27 | $wp_press_this->html(); |
28 | 28 | } elseif ( current_user_can( 'activate_plugins' ) ) { |
-
diff --git src/wp-admin/privacy-policy-guide.php src/wp-admin/privacy-policy-guide.php
index f3d8703f88..98cebbd99c 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'manage_privacy_options' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) ); |
14 | 14 | } |
15 | 15 | |
16 | 16 | if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { |
17 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' ); |
| 17 | include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; |
18 | 18 | } |
19 | 19 | |
20 | 20 | $title = __( 'Privacy Policy Guide' ); |
21 | 21 | |
22 | 22 | wp_enqueue_script( 'privacy-tools' ); |
23 | 23 | |
24 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 24 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
25 | 25 | |
26 | 26 | ?> |
27 | 27 | <div class="wrap"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
33 | 33 | </div> |
34 | 34 | <?php |
35 | 35 | |
36 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 36 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/privacy.php src/wp-admin/privacy.php
index 25dc75e00b..f407962da3 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | $title = __( 'Privacy' ); |
13 | 13 | |
14 | 14 | list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
15 | 15 | |
16 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 16 | include ABSPATH . 'wp-admin/admin-header.php'; |
17 | 17 | ?> |
18 | 18 | <div class="wrap about__container"> |
19 | 19 | |
… |
… |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
76 | 76 | </div> |
77 | 77 | |
78 | 78 | </div> |
79 | | <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |
| 79 | <?php include ABSPATH . 'wp-admin/admin-footer.php'; ?> |
-
diff --git src/wp-admin/profile.php src/wp-admin/profile.php
index 577925aba7..18fb60069b 100644
|
|
|
15 | 15 | define( 'IS_PROFILE_PAGE', true ); |
16 | 16 | |
17 | 17 | /** Load User Editing Page */ |
18 | | require_once( dirname( __FILE__ ) . '/user-edit.php' ); |
| 18 | require_once __DIR__ . '/user-edit.php'; |
-
diff --git src/wp-admin/revision.php src/wp-admin/revision.php
index 2d435a6c34..55cbd9363f 100644
|
|
|
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** WordPress Administration Bootstrap */ |
13 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 13 | require_once __DIR__ . '/admin.php'; |
14 | 14 | |
15 | 15 | require ABSPATH . 'wp-admin/includes/revision.php'; |
16 | 16 | |
… |
… |
$revisions_sidebar .= '<p>' . __( '<a href="https://wordpress.org/support/">Supp |
147 | 147 | |
148 | 148 | get_current_screen()->set_help_sidebar( $revisions_sidebar ); |
149 | 149 | |
150 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 150 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
151 | 151 | |
152 | 152 | ?> |
153 | 153 | |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
158 | 158 | <?php |
159 | 159 | wp_print_revision_templates(); |
160 | 160 | |
161 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 161 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/setup-config.php src/wp-admin/setup-config.php
index f9be50f05a..dec1733d5b 100644
|
|
define( 'WP_SETUP_CONFIG', true ); |
27 | 27 | error_reporting( 0 ); |
28 | 28 | |
29 | 29 | if ( ! defined( 'ABSPATH' ) ) { |
30 | | define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' ); |
| 30 | define( 'ABSPATH', dirname( __DIR__ ) . '/' ); |
31 | 31 | } |
32 | 32 | |
33 | | require( ABSPATH . 'wp-settings.php' ); |
| 33 | require ABSPATH . 'wp-settings.php'; |
34 | 34 | |
35 | 35 | /** Load WordPress Administration Upgrade API */ |
36 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| 36 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
37 | 37 | |
38 | 38 | /** Load WordPress Translation Installation API */ |
39 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| 39 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
40 | 40 | |
41 | 41 | nocache_headers(); |
42 | 42 | |
-
diff --git src/wp-admin/site-health-info.php src/wp-admin/site-health-info.php
index 34471a0968..2923d36741 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | $title = __( 'Site Health Info' ); |
13 | 13 | |
… |
… |
wp_enqueue_style( 'site-health' ); |
19 | 19 | wp_enqueue_script( 'site-health' ); |
20 | 20 | |
21 | 21 | if ( ! class_exists( 'WP_Debug_Data' ) ) { |
22 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' ); |
| 22 | require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php'; |
23 | 23 | } |
24 | 24 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
25 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 25 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
26 | 26 | } |
27 | 27 | |
28 | 28 | $health_check_site_status = new WP_Site_Health(); |
29 | 29 | |
30 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 30 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
31 | 31 | ?> |
32 | 32 | <div class="health-check-header"> |
33 | 33 | <div class="health-check-title-section"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
181 | 181 | </div> |
182 | 182 | |
183 | 183 | <?php |
184 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 184 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/site-health.php src/wp-admin/site-health.php
index 52ff845289..555962fc1b 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) { |
10 | | require_once( dirname( __FILE__ ) . '/site-health-info.php' ); |
| 10 | require_once __DIR__ . '/site-health-info.php'; |
11 | 11 | return; |
12 | 12 | } |
13 | 13 | |
14 | 14 | /** WordPress Administration Bootstrap */ |
15 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 15 | require_once __DIR__ . '/admin.php'; |
16 | 16 | |
17 | 17 | $title = __( 'Site Health Status' ); |
18 | 18 | |
… |
… |
wp_enqueue_style( 'site-health' ); |
24 | 24 | wp_enqueue_script( 'site-health' ); |
25 | 25 | |
26 | 26 | if ( ! class_exists( 'WP_Site_Health' ) ) { |
27 | | require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' ); |
| 27 | require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; |
28 | 28 | } |
29 | 29 | |
30 | 30 | $health_check_site_status = new WP_Site_Health(); |
… |
… |
$health_check_site_status = new WP_Site_Health(); |
32 | 32 | // Start by checking if this is a special request checking for the existence of certain filters. |
33 | 33 | $health_check_site_status->check_wp_version_check_exists(); |
34 | 34 | |
35 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 35 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
36 | 36 | ?> |
37 | 37 | <div class="health-check-header"> |
38 | 38 | <div class="health-check-title-section"> |
… |
… |
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
157 | 157 | </script> |
158 | 158 | |
159 | 159 | <?php |
160 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 160 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/term.php src/wp-admin/term.php
index fd7d276bb3..68523f1271 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( empty( $_REQUEST['tag_ID'] ) ) { |
14 | 14 | $sendback = admin_url( 'edit-tags.php' ); |
… |
… |
get_current_screen()->set_screen_reader_content( |
70 | 70 | ) |
71 | 71 | ); |
72 | 72 | wp_enqueue_script( 'admin-tags' ); |
73 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
74 | | include( ABSPATH . 'wp-admin/edit-tag-form.php' ); |
75 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 73 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 74 | include ABSPATH . 'wp-admin/edit-tag-form.php'; |
| 75 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php
index c958353e1f..038eacec0d 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( is_multisite() && ! is_network_admin() ) { |
13 | 13 | wp_redirect( network_admin_url( 'theme-editor.php' ) ); |
… |
… |
if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) { |
146 | 146 | wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings ) ) ); |
147 | 147 | wp_add_inline_script( 'wp-theme-plugin-editor', 'wp.themePluginEditor.themeOrPlugin = "theme";' ); |
148 | 148 | |
149 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 149 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
150 | 150 | |
151 | 151 | update_recently_edited( $file ); |
152 | 152 | |
… |
… |
if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) : |
378 | 378 | <?php |
379 | 379 | endif; // editor warning notice |
380 | 380 | |
381 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 381 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/theme-install.php src/wp-admin/theme-install.php
index b77e85054a..e7f271df68 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
11 | | require( ABSPATH . 'wp-admin/includes/theme-install.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
| 11 | require ABSPATH . 'wp-admin/includes/theme-install.php'; |
12 | 12 | |
13 | 13 | wp_reset_vars( array( 'tab' ) ); |
14 | 14 | |
… |
… |
get_current_screen()->set_help_sidebar( |
131 | 131 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
132 | 132 | ); |
133 | 133 | |
134 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 134 | include ABSPATH . 'wp-admin/admin-header.php'; |
135 | 135 | |
136 | 136 | ?> |
137 | 137 | <div class="wrap"> |
… |
… |
if ( $tab ) { |
372 | 372 | wp_print_request_filesystem_credentials_modal(); |
373 | 373 | wp_print_admin_notice_templates(); |
374 | 374 | |
375 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 375 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/themes.php src/wp-admin/themes.php
index 244f573ce6..dbf055881e 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { |
13 | 13 | wp_die( |
… |
… |
add_thickbox(); |
182 | 182 | wp_enqueue_script( 'theme' ); |
183 | 183 | wp_enqueue_script( 'updates' ); |
184 | 184 | |
185 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 185 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
186 | 186 | ?> |
187 | 187 | |
188 | 188 | <div class="wrap"> |
… |
… |
wp_localize_script( |
622 | 622 | ) |
623 | 623 | ); |
624 | 624 | |
625 | | require( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 625 | require ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/tools.php src/wp-admin/tools.php
index 447d6738ac..6ea85ca459 100644
|
|
if ( isset( $_GET['page'] ) && ! empty( $_POST ) ) { |
10 | 10 | // Ensure POST-ing to `tools.php?page=export_personal_data` and `tools.php?page=remove_personal_data` |
11 | 11 | // continues to work after creating the new files for exporting and erasing of personal data. |
12 | 12 | if ( $_GET['page'] === 'export_personal_data' ) { |
13 | | require_once( ABSPATH . 'wp-admin/export-personal-data.php' ); |
| 13 | require_once ABSPATH . 'wp-admin/export-personal-data.php'; |
14 | 14 | return; |
15 | 15 | } elseif ( $_GET['page'] === 'remove_personal_data' ) { |
16 | | require_once( ABSPATH . 'wp-admin/erase-personal-data.php' ); |
| 16 | require_once ABSPATH . 'wp-admin/erase-personal-data.php'; |
17 | 17 | return; |
18 | 18 | } |
19 | 19 | } |
20 | 20 | |
21 | 21 | /** WordPress Administration Bootstrap */ |
22 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 22 | require_once __DIR__ . '/admin.php'; |
23 | 23 | |
24 | 24 | // The privacy policy guide used to be outputted from here. Since WP 5.3 it is in wp-admin/privacy-policy-guide.php. |
25 | 25 | if ( isset( $_GET['wp-privacy-policy-guide'] ) ) { |
… |
… |
get_current_screen()->set_help_sidebar( |
53 | 53 | '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
54 | 54 | ); |
55 | 55 | |
56 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 56 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
57 | 57 | |
58 | 58 | ?> |
59 | 59 | <div class="wrap"> |
… |
… |
do_action( 'tool_box' ); |
92 | 92 | </div> |
93 | 93 | <?php |
94 | 94 | |
95 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 95 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/update-core.php src/wp-admin/update-core.php
index 2093201149..951d93d7aa 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_enqueue_style( 'plugin-install' ); |
13 | 13 | wp_enqueue_script( 'plugin-install' ); |
… |
… |
function list_plugin_updates() { |
297 | 297 | $wp_version = get_bloginfo( 'version' ); |
298 | 298 | $cur_wp_version = preg_replace( '/-.*$/', '', $wp_version ); |
299 | 299 | |
300 | | require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); |
| 300 | require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; |
301 | 301 | $plugins = get_plugin_updates(); |
302 | 302 | if ( empty( $plugins ) ) { |
303 | 303 | echo '<h2>' . __( 'Plugins' ) . '</h2>'; |
… |
… |
function list_translation_updates() { |
559 | 559 | function do_core_upgrade( $reinstall = false ) { |
560 | 560 | global $wp_filesystem; |
561 | 561 | |
562 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 562 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
563 | 563 | |
564 | 564 | if ( $reinstall ) { |
565 | 565 | $url = 'update-core.php?action=do-core-reinstall'; |
… |
… |
if ( 'upgrade-core' == $action ) { |
736 | 736 | $force_check = ! empty( $_GET['force-check'] ); |
737 | 737 | wp_version_check( array(), $force_check ); |
738 | 738 | |
739 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 739 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
740 | 740 | ?> |
741 | 741 | <div class="wrap"> |
742 | 742 | <h1><?php _e( 'WordPress Updates' ); ?></h1> |
… |
… |
if ( 'upgrade-core' == $action ) { |
793 | 793 | ) |
794 | 794 | ); |
795 | 795 | |
796 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 796 | include ABSPATH . 'wp-admin/admin-footer.php'; |
797 | 797 | |
798 | 798 | } elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) { |
799 | 799 | |
… |
… |
if ( 'upgrade-core' == $action ) { |
810 | 810 | do_undismiss_core_update(); |
811 | 811 | } |
812 | 812 | |
813 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 813 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
814 | 814 | if ( 'do-core-reinstall' == $action ) { |
815 | 815 | $reinstall = true; |
816 | 816 | } else { |
… |
… |
if ( 'upgrade-core' == $action ) { |
829 | 829 | ) |
830 | 830 | ); |
831 | 831 | |
832 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 832 | include ABSPATH . 'wp-admin/admin-footer.php'; |
833 | 833 | |
834 | 834 | } elseif ( 'do-plugin-upgrade' == $action ) { |
835 | 835 | |
… |
… |
if ( 'upgrade-core' == $action ) { |
853 | 853 | |
854 | 854 | $title = __( 'Update Plugins' ); |
855 | 855 | |
856 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 856 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
857 | 857 | echo '<div class="wrap">'; |
858 | 858 | echo '<h1>' . __( 'Update Plugins' ) . '</h1>'; |
859 | 859 | echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0" title="' . esc_attr__( 'Update progress' ) . '"></iframe>'; |
… |
… |
if ( 'upgrade-core' == $action ) { |
867 | 867 | ) |
868 | 868 | ); |
869 | 869 | |
870 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 870 | include ABSPATH . 'wp-admin/admin-footer.php'; |
871 | 871 | |
872 | 872 | } elseif ( 'do-theme-upgrade' == $action ) { |
873 | 873 | |
… |
… |
if ( 'upgrade-core' == $action ) { |
891 | 891 | |
892 | 892 | $title = __( 'Update Themes' ); |
893 | 893 | |
894 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 894 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
895 | 895 | ?> |
896 | 896 | <div class="wrap"> |
897 | 897 | <h1><?php _e( 'Update Themes' ); ?></h1> |
… |
… |
if ( 'upgrade-core' == $action ) { |
907 | 907 | ) |
908 | 908 | ); |
909 | 909 | |
910 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 910 | include ABSPATH . 'wp-admin/admin-footer.php'; |
911 | 911 | |
912 | 912 | } elseif ( 'do-translation-upgrade' == $action ) { |
913 | 913 | |
… |
… |
if ( 'upgrade-core' == $action ) { |
917 | 917 | |
918 | 918 | check_admin_referer( 'upgrade-translations' ); |
919 | 919 | |
920 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
921 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 920 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 921 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
922 | 922 | |
923 | 923 | $url = 'update-core.php?action=do-translation-upgrade'; |
924 | 924 | $nonce = 'upgrade-translations'; |
… |
… |
if ( 'upgrade-core' == $action ) { |
936 | 936 | ) |
937 | 937 | ); |
938 | 938 | |
939 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 939 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
940 | 940 | |
941 | 941 | } else { |
942 | 942 | /** |
-
diff --git src/wp-admin/update.php src/wp-admin/update.php
index 5a70aa87d9..18313a4b90 100644
|
|
if ( ! defined( 'IFRAME_REQUEST' ) && isset( $_GET['action'] ) && in_array( $_GE |
11 | 11 | } |
12 | 12 | |
13 | 13 | /** WordPress Administration Bootstrap */ |
14 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 14 | require_once __DIR__ . '/admin.php'; |
15 | 15 | |
16 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| 16 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
17 | 17 | |
18 | 18 | if ( isset( $_GET['action'] ) ) { |
19 | 19 | $plugin = isset( $_REQUEST['plugin'] ) ? trim( $_REQUEST['plugin'] ) : ''; |
… |
… |
if ( isset( $_GET['action'] ) ) { |
60 | 60 | $submenu_file = 'plugins.php'; |
61 | 61 | |
62 | 62 | wp_enqueue_script( 'updates' ); |
63 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 63 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
64 | 64 | |
65 | 65 | $nonce = 'upgrade-plugin_' . $plugin; |
66 | 66 | $url = 'update.php?action=upgrade-plugin&plugin=' . urlencode( $plugin ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
68 | 68 | $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'plugin' ) ) ); |
69 | 69 | $upgrader->upgrade( $plugin ); |
70 | 70 | |
71 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 71 | include ABSPATH . 'wp-admin/admin-footer.php'; |
72 | 72 | |
73 | 73 | } elseif ( 'activate-plugin' == $action ) { |
74 | 74 | if ( ! current_user_can( 'update_plugins' ) ) { |
… |
… |
if ( isset( $_GET['action'] ) ) { |
93 | 93 | 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 ); |
94 | 94 | ini_set( 'display_errors', true ); //Ensure that Fatal errors are displayed. |
95 | 95 | wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); |
96 | | include( WP_PLUGIN_DIR . '/' . $plugin ); |
| 96 | include WP_PLUGIN_DIR . '/' . $plugin; |
97 | 97 | } |
98 | 98 | iframe_footer(); |
99 | 99 | } elseif ( 'install-plugin' == $action ) { |
… |
… |
if ( isset( $_GET['action'] ) ) { |
102 | 102 | wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); |
103 | 103 | } |
104 | 104 | |
105 | | include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api.. |
| 105 | include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api.. |
106 | 106 | |
107 | 107 | check_admin_referer( 'install-plugin_' . $plugin ); |
108 | 108 | $api = plugins_api( |
… |
… |
if ( isset( $_GET['action'] ) ) { |
122 | 122 | $title = __( 'Plugin Installation' ); |
123 | 123 | $parent_file = 'plugins.php'; |
124 | 124 | $submenu_file = 'plugin-install.php'; |
125 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 125 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
126 | 126 | |
127 | 127 | /* translators: %s: Plugin name and version. */ |
128 | 128 | $title = sprintf( __( 'Installing Plugin: %s' ), $api->name . ' ' . $api->version ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
137 | 137 | $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); |
138 | 138 | $upgrader->install( $api->download_link ); |
139 | 139 | |
140 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 140 | include ABSPATH . 'wp-admin/admin-footer.php'; |
141 | 141 | |
142 | 142 | } elseif ( 'upload-plugin' == $action ) { |
143 | 143 | |
… |
… |
if ( isset( $_GET['action'] ) ) { |
152 | 152 | $title = __( 'Upload Plugin' ); |
153 | 153 | $parent_file = 'plugins.php'; |
154 | 154 | $submenu_file = 'plugin-install.php'; |
155 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 155 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
156 | 156 | |
157 | 157 | /* translators: %s: File name. */ |
158 | 158 | $title = sprintf( __( 'Installing Plugin from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
167 | 167 | $file_upload->cleanup(); |
168 | 168 | } |
169 | 169 | |
170 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 170 | include ABSPATH . 'wp-admin/admin-footer.php'; |
171 | 171 | |
172 | 172 | } elseif ( 'upgrade-theme' == $action ) { |
173 | 173 | |
… |
… |
if ( isset( $_GET['action'] ) ) { |
182 | 182 | $title = __( 'Update Theme' ); |
183 | 183 | $parent_file = 'themes.php'; |
184 | 184 | $submenu_file = 'themes.php'; |
185 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 185 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
186 | 186 | |
187 | 187 | $nonce = 'upgrade-theme_' . $theme; |
188 | 188 | $url = 'update.php?action=upgrade-theme&theme=' . urlencode( $theme ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
190 | 190 | $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'theme' ) ) ); |
191 | 191 | $upgrader->upgrade( $theme ); |
192 | 192 | |
193 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 193 | include ABSPATH . 'wp-admin/admin-footer.php'; |
194 | 194 | } elseif ( 'update-selected-themes' == $action ) { |
195 | 195 | if ( ! current_user_can( 'update_themes' ) ) { |
196 | 196 | wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
224 | 224 | wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); |
225 | 225 | } |
226 | 226 | |
227 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api.. |
| 227 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; //for themes_api.. |
228 | 228 | |
229 | 229 | check_admin_referer( 'install-theme_' . $theme ); |
230 | 230 | $api = themes_api( |
… |
… |
if ( isset( $_GET['action'] ) ) { |
245 | 245 | $title = __( 'Install Themes' ); |
246 | 246 | $parent_file = 'themes.php'; |
247 | 247 | $submenu_file = 'themes.php'; |
248 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 248 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
249 | 249 | |
250 | 250 | /* translators: %s: Theme name and version. */ |
251 | 251 | $title = sprintf( __( 'Installing Theme: %s' ), $api->name . ' ' . $api->version ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
256 | 256 | $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); |
257 | 257 | $upgrader->install( $api->download_link ); |
258 | 258 | |
259 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 259 | include ABSPATH . 'wp-admin/admin-footer.php'; |
260 | 260 | |
261 | 261 | } elseif ( 'upload-theme' == $action ) { |
262 | 262 | |
… |
… |
if ( isset( $_GET['action'] ) ) { |
272 | 272 | $parent_file = 'themes.php'; |
273 | 273 | $submenu_file = 'theme-install.php'; |
274 | 274 | |
275 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 275 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
276 | 276 | |
277 | 277 | /* translators: %s: File name. */ |
278 | 278 | $title = sprintf( __( 'Installing Theme from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) ); |
… |
… |
if ( isset( $_GET['action'] ) ) { |
287 | 287 | $file_upload->cleanup(); |
288 | 288 | } |
289 | 289 | |
290 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 290 | include ABSPATH . 'wp-admin/admin-footer.php'; |
291 | 291 | |
292 | 292 | } else { |
293 | 293 | /** |
-
diff --git src/wp-admin/upgrade-functions.php src/wp-admin/upgrade-functions.php
index 0669ead7b0..0d1f499a00 100644
|
|
|
9 | 9 | */ |
10 | 10 | |
11 | 11 | _deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/upgrade.php' ); |
12 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| 12 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
-
diff --git src/wp-admin/upgrade.php src/wp-admin/upgrade.php
index 67555f4fe9..88388ea60d 100644
|
|
|
15 | 15 | define( 'WP_INSTALLING', true ); |
16 | 16 | |
17 | 17 | /** Load WordPress Bootstrap */ |
18 | | require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| 18 | require dirname( __DIR__ ) . '/wp-load.php'; |
19 | 19 | |
20 | 20 | nocache_headers(); |
21 | 21 | |
22 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| 22 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
23 | 23 | |
24 | 24 | delete_site_transient( 'update_core' ); |
25 | 25 | |
-
diff --git src/wp-admin/upload.php src/wp-admin/upload.php
index a5a5d21612..0b9611f477 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'upload_files' ) ) { |
13 | 13 | wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); |
… |
… |
if ( 'grid' === $mode ) { |
79 | 79 | $title = __( 'Media Library' ); |
80 | 80 | $parent_file = 'upload.php'; |
81 | 81 | |
82 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 82 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
83 | 83 | ?> |
84 | 84 | <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query(); ?>"> |
85 | 85 | <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> |
… |
… |
if ( 'grid' === $mode ) { |
107 | 107 | </div> |
108 | 108 | </div> |
109 | 109 | <?php |
110 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 110 | include ABSPATH . 'wp-admin/admin-footer.php'; |
111 | 111 | exit; |
112 | 112 | } |
113 | 113 | |
… |
… |
get_current_screen()->set_screen_reader_content( |
261 | 261 | ) |
262 | 262 | ); |
263 | 263 | |
264 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 264 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
265 | 265 | ?> |
266 | 266 | |
267 | 267 | <div class="wrap"> |
… |
… |
if ( ! empty( $message ) ) { |
378 | 378 | </div> |
379 | 379 | |
380 | 380 | <?php |
381 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 381 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
index 10e39e8b27..5411c7a910 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) ); |
13 | 13 | |
… |
… |
switch ( $action ) { |
184 | 184 | $title = sprintf( $title, $profileuser->display_name ); |
185 | 185 | $sessions = WP_Session_Tokens::get_instance( $profileuser->ID ); |
186 | 186 | |
187 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 187 | include ABSPATH . 'wp-admin/admin-header.php'; |
188 | 188 | ?> |
189 | 189 | |
190 | 190 | <?php if ( ! IS_PROFILE_PAGE && is_super_admin( $profileuser->ID ) && current_user_can( 'manage_network_options' ) ) { ?> |
… |
… |
endif; //!IS_PROFILE_PAGE |
789 | 789 | } |
790 | 790 | </script> |
791 | 791 | <?php |
792 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 792 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/user-new.php src/wp-admin/user-new.php
index 2abd094519..09fb50a5d7 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | if ( is_multisite() ) { |
13 | 13 | if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) { |
… |
… |
if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_netw |
285 | 285 | wp_enqueue_script( 'user-suggest' ); |
286 | 286 | } |
287 | 287 | |
288 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 288 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
289 | 289 | |
290 | 290 | if ( isset( $_GET['update'] ) ) { |
291 | 291 | $messages = array(); |
… |
… |
if ( current_user_can( 'create_users' ) ) { |
582 | 582 | <?php } // current_user_can('create_users') ?> |
583 | 583 | </div> |
584 | 584 | <?php |
585 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 585 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/user/about.php src/wp-admin/user/about.php
index b7943550e9..af06c62222 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/about.php' ); |
| 13 | require ABSPATH . 'wp-admin/about.php'; |
-
diff --git src/wp-admin/user/admin.php src/wp-admin/user/admin.php
index 9df8f2029e..d1ca849315 100644
|
|
|
9 | 9 | |
10 | 10 | define( 'WP_USER_ADMIN', true ); |
11 | 11 | |
12 | | require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' ); |
| 12 | require_once dirname( __DIR__ ) . '/admin.php'; |
13 | 13 | |
14 | 14 | if ( ! is_multisite() ) { |
15 | 15 | wp_redirect( admin_url() ); |
-
diff --git src/wp-admin/user/credits.php src/wp-admin/user/credits.php
index 2b4021acb9..b28461cdb2 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/credits.php' ); |
| 13 | require ABSPATH . 'wp-admin/credits.php'; |
-
diff --git src/wp-admin/user/freedoms.php src/wp-admin/user/freedoms.php
index d2b77b5615..9e2ebb009b 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/freedoms.php' ); |
| 13 | require ABSPATH . 'wp-admin/freedoms.php'; |
-
diff --git src/wp-admin/user/index.php src/wp-admin/user/index.php
index 7cff6a7053..58906ce4f0 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/index.php' ); |
| 13 | require ABSPATH . 'wp-admin/index.php'; |
-
diff --git src/wp-admin/user/menu.php src/wp-admin/user/menu.php
index 47ef784208..23e81a892c 100644
|
|
$_wp_real_parent_file['users.php'] = 'profile.php'; |
19 | 19 | $compat = array(); |
20 | 20 | $submenu = array(); |
21 | 21 | |
22 | | require_once( ABSPATH . 'wp-admin/includes/menu.php' ); |
| 22 | require_once ABSPATH . 'wp-admin/includes/menu.php'; |
-
diff --git src/wp-admin/user/privacy.php src/wp-admin/user/privacy.php
index 8b28eea618..207f29df20 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/privacy.php' ); |
| 13 | require ABSPATH . 'wp-admin/privacy.php'; |
-
diff --git src/wp-admin/user/profile.php src/wp-admin/user/profile.php
index 2f70709906..f9bd631268 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/profile.php' ); |
| 13 | require ABSPATH . 'wp-admin/profile.php'; |
-
diff --git src/wp-admin/user/user-edit.php src/wp-admin/user/user-edit.php
index 0819573f6f..4cc64efb14 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** Load WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | | require( ABSPATH . 'wp-admin/user-edit.php' ); |
| 13 | require ABSPATH . 'wp-admin/user-edit.php'; |
-
diff --git src/wp-admin/users.php src/wp-admin/users.php
index 48e169d69c..5b435c014b 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** WordPress Administration Bootstrap */ |
11 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 11 | require_once __DIR__ . '/admin.php'; |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'list_users' ) ) { |
14 | 14 | wp_die( |
… |
… |
switch ( $wp_list_table->current_action() ) { |
263 | 263 | add_action( 'admin_head', 'delete_users_add_js' ); |
264 | 264 | } |
265 | 265 | |
266 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 266 | include ABSPATH . 'wp-admin/admin-header.php'; |
267 | 267 | ?> |
268 | 268 | <form method="post" name="updateusers" id="updateusers"> |
269 | 269 | <?php wp_nonce_field( 'delete-users' ); ?> |
… |
… |
switch ( $wp_list_table->current_action() ) { |
405 | 405 | $userids = $_REQUEST['users']; |
406 | 406 | } |
407 | 407 | |
408 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 408 | include ABSPATH . 'wp-admin/admin-header.php'; |
409 | 409 | ?> |
410 | 410 | <form method="post" name="updateusers" id="updateusers"> |
411 | 411 | <?php wp_nonce_field( 'remove-users' ); ?> |
… |
… |
switch ( $wp_list_table->current_action() ) { |
474 | 474 | exit; |
475 | 475 | } |
476 | 476 | |
477 | | include( ABSPATH . 'wp-admin/admin-header.php' ); |
| 477 | include ABSPATH . 'wp-admin/admin-header.php'; |
478 | 478 | |
479 | 479 | $messages = array(); |
480 | 480 | if ( isset( $_GET['update'] ) ) : |
… |
… |
if ( strlen( $usersearch ) ) { |
596 | 596 | |
597 | 597 | } // end of the $doaction switch |
598 | 598 | |
599 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 599 | include ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-admin/widgets.php src/wp-admin/widgets.php
index ada2bdd790..8e954cf077 100644
|
|
|
7 | 7 | */ |
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| 10 | require_once __DIR__ . '/admin.php'; |
11 | 11 | |
12 | 12 | /** WordPress Administration Widgets API */ |
13 | | require_once( ABSPATH . 'wp-admin/includes/widgets.php' ); |
| 13 | require_once ABSPATH . 'wp-admin/includes/widgets.php'; |
14 | 14 | |
15 | 15 | if ( ! current_user_can( 'edit_theme_options' ) ) { |
16 | 16 | wp_die( |
… |
… |
if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) { |
288 | 288 | $width = ' style="width:' . max( $control['width'], 350 ) . 'px"'; |
289 | 289 | $key = isset( $_GET['key'] ) ? (int) $_GET['key'] : 0; |
290 | 290 | |
291 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
| 291 | require_once ABSPATH . 'wp-admin/admin-header.php'; ?> |
292 | 292 | <div class="wrap"> |
293 | 293 | <h1><?php echo esc_html( $title ); ?></h1> |
294 | 294 | <div class="editwidget"<?php echo $width; ?>> |
… |
… |
if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) { |
366 | 366 | </div> |
367 | 367 | </div> |
368 | 368 | <?php |
369 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 369 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
370 | 370 | exit; |
371 | 371 | } |
372 | 372 | |
… |
… |
$errors = array( |
379 | 379 | __( 'Error in displaying the widget settings form.' ), |
380 | 380 | ); |
381 | 381 | |
382 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 382 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
383 | 383 | ?> |
384 | 384 | |
385 | 385 | <div class="wrap"> |
… |
… |
foreach ( $theme_sidebars as $sidebar => $registered_sidebar ) { |
572 | 572 | * @since 2.2.0 |
573 | 573 | */ |
574 | 574 | do_action( 'sidebar_admin_page' ); |
575 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| 575 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
-
diff --git src/wp-blog-header.php src/wp-blog-header.php
index a8b1efc7b5..91e3b9daf4 100644
|
|
if ( ! isset( $wp_did_header ) ) { |
10 | 10 | $wp_did_header = true; |
11 | 11 | |
12 | 12 | // Load the WordPress library. |
13 | | require_once( dirname( __FILE__ ) . '/wp-load.php' ); |
| 13 | require_once __DIR__ . '/wp-load.php'; |
14 | 14 | |
15 | 15 | // Set up the WordPress query. |
16 | 16 | wp(); |
17 | 17 | |
18 | 18 | // Load the theme template. |
19 | | require_once( ABSPATH . WPINC . '/template-loader.php' ); |
| 19 | require_once ABSPATH . WPINC . '/template-loader.php'; |
20 | 20 | |
21 | 21 | } |
-
diff --git src/wp-comments-post.php src/wp-comments-post.php
index 86c758cc0a..ebf658603d 100644
|
|
if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) { |
18 | 18 | } |
19 | 19 | |
20 | 20 | /** Sets up the WordPress Environment. */ |
21 | | require( dirname( __FILE__ ) . '/wp-load.php' ); |
| 21 | require __DIR__ . '/wp-load.php'; |
22 | 22 | |
23 | 23 | nocache_headers(); |
24 | 24 | |
-
diff --git src/wp-content/themes/twentyeleven/functions.php src/wp-content/themes/twentyeleven/functions.php
index d1d7d69bde..4bc6c16ae4 100644
|
|
if ( ! function_exists( 'twentyeleven_setup' ) ) : |
132 | 132 | ); |
133 | 133 | |
134 | 134 | // Load up our theme options page and related code. |
135 | | require( get_template_directory() . '/inc/theme-options.php' ); |
| 135 | require get_template_directory() . '/inc/theme-options.php'; |
136 | 136 | |
137 | 137 | // Grab Twenty Eleven's Ephemera widget. |
138 | | require( get_template_directory() . '/inc/widgets.php' ); |
| 138 | require get_template_directory() . '/inc/widgets.php'; |
139 | 139 | |
140 | 140 | // Add default posts and comments RSS feed links to <head>. |
141 | 141 | add_theme_support( 'automatic-feed-links' ); |
-
diff --git src/wp-content/themes/twentyseventeen/functions.php src/wp-content/themes/twentyseventeen/functions.php
index 7e5cb84c0b..1ef1b570a7 100644
|
|
function twentyseventeen_colors_css_wrap() { |
425 | 425 | return; |
426 | 426 | } |
427 | 427 | |
428 | | require_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) ); |
| 428 | require_once get_parent_theme_file_path( '/inc/color-patterns.php' ); |
429 | 429 | $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) ); |
430 | 430 | |
431 | 431 | $customize_preview_data_hue = ''; |
-
diff --git src/wp-content/themes/twentyseventeen/inc/icon-functions.php src/wp-content/themes/twentyseventeen/inc/icon-functions.php
index c906762b58..11a1b0be16 100644
|
|
function twentyseventeen_include_svg_icons() { |
16 | 16 | |
17 | 17 | // If it exists, include it. |
18 | 18 | if ( file_exists( $svg_icons ) ) { |
19 | | require_once( $svg_icons ); |
| 19 | require_once $svg_icons; |
20 | 20 | } |
21 | 21 | } |
22 | 22 | add_action( 'wp_footer', 'twentyseventeen_include_svg_icons', 9999 ); |
-
diff --git src/wp-content/themes/twentytwelve/functions.php src/wp-content/themes/twentytwelve/functions.php
index 04da105b06..018d1c36fd 100644
|
|
add_action( 'after_setup_theme', 'twentytwelve_setup' ); |
130 | 130 | /** |
131 | 131 | * Add support for a custom header image. |
132 | 132 | */ |
133 | | require( get_template_directory() . '/inc/custom-header.php' ); |
| 133 | require get_template_directory() . '/inc/custom-header.php'; |
134 | 134 | |
135 | 135 | /** |
136 | 136 | * Return the Google font stylesheet URL if available. |
-
diff --git src/wp-cron.php src/wp-cron.php
index 561ae96559..333625c069 100644
|
|
define( 'DOING_CRON', true ); |
41 | 41 | |
42 | 42 | if ( ! defined( 'ABSPATH' ) ) { |
43 | 43 | /** Set up WordPress environment */ |
44 | | require_once( dirname( __FILE__ ) . '/wp-load.php' ); |
| 44 | require_once __DIR__ . '/wp-load.php'; |
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
-
diff --git src/wp-includes/admin-bar.php src/wp-includes/admin-bar.php
index 77ab5848ee..90d7e8ca03 100644
|
|
function _wp_admin_bar_init() { |
28 | 28 | } |
29 | 29 | |
30 | 30 | /* Load the admin bar class code ready for instantiation */ |
31 | | require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' ); |
| 31 | require_once ABSPATH . WPINC . '/class-wp-admin-bar.php'; |
32 | 32 | |
33 | 33 | /* Instantiate the admin bar */ |
34 | 34 | |
-
diff --git src/wp-includes/blocks/rss.php src/wp-includes/blocks/rss.php
index 0315cfc013..0300585de2 100644
|
|
function render_block_core_rss( $attributes ) { |
20 | 20 | } |
21 | 21 | |
22 | 22 | if ( ! $rss->get_item_quantity() ) { |
| 23 | // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks. |
| 24 | $rss->__destruct(); |
| 25 | unset( $rss ); |
| 26 | |
23 | 27 | return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '</div></div>'; |
24 | 28 | } |
25 | 29 | |
… |
… |
function render_block_core_rss( $attributes ) { |
92 | 96 | $class .= ' ' . $attributes['className']; |
93 | 97 | } |
94 | 98 | |
95 | | return "<ul class='{$class}'>{$list_items}</ul>"; |
| 99 | $list_items_markup = "<ul class='{$class}'>{$list_items}</ul>"; |
| 100 | |
| 101 | // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks. |
| 102 | $rss->__destruct(); |
| 103 | unset( $rss ); |
| 104 | |
| 105 | return $list_items_markup; |
96 | 106 | } |
97 | 107 | |
98 | 108 | /** |
-
diff --git src/wp-includes/blocks/search.php src/wp-includes/blocks/search.php
index 67bc90ff35..6cd909fc6f 100644
|
|
function render_block_core_search( $attributes ) { |
25 | 25 | $input_id, |
26 | 26 | $attributes['label'] |
27 | 27 | ); |
28 | | } else { |
29 | | $label_markup = sprintf( |
30 | | '<label for="%s" class="wp-block-search__label screen-reader-text">%s</label>', |
31 | | $input_id, |
32 | | __( 'Search' ) |
33 | | ); |
34 | 28 | } |
35 | 29 | |
36 | 30 | $input_markup = sprintf( |
… |
… |
function render_block_core_search( $attributes ) { |
51 | 45 | if ( isset( $attributes['className'] ) ) { |
52 | 46 | $class .= ' ' . $attributes['className']; |
53 | 47 | } |
| 48 | |
54 | 49 | if ( isset( $attributes['align'] ) ) { |
55 | 50 | $class .= ' align' . $attributes['align']; |
56 | 51 | } |
-
diff --git src/wp-includes/class-IXR.php src/wp-includes/class-IXR.php
index 706e5e320a..0cd72df20e 100644
|
|
|
39 | 39 | * @license http://www.opensource.org/licenses/bsd-license.php BSD |
40 | 40 | */ |
41 | 41 | |
42 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-server.php' ); |
| 42 | require_once ABSPATH . WPINC . '/IXR/class-IXR-server.php'; |
43 | 43 | |
44 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-base64.php' ); |
| 44 | require_once ABSPATH . WPINC . '/IXR/class-IXR-base64.php'; |
45 | 45 | |
46 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-client.php' ); |
| 46 | require_once ABSPATH . WPINC . '/IXR/class-IXR-client.php'; |
47 | 47 | |
48 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php' ); |
| 48 | require_once ABSPATH . WPINC . '/IXR/class-IXR-clientmulticall.php'; |
49 | 49 | |
50 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-date.php' ); |
| 50 | require_once ABSPATH . WPINC . '/IXR/class-IXR-date.php'; |
51 | 51 | |
52 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-error.php' ); |
| 52 | require_once ABSPATH . WPINC . '/IXR/class-IXR-error.php'; |
53 | 53 | |
54 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php' ); |
| 54 | require_once ABSPATH . WPINC . '/IXR/class-IXR-introspectionserver.php'; |
55 | 55 | |
56 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-message.php' ); |
| 56 | require_once ABSPATH . WPINC . '/IXR/class-IXR-message.php'; |
57 | 57 | |
58 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-request.php' ); |
| 58 | require_once ABSPATH . WPINC . '/IXR/class-IXR-request.php'; |
59 | 59 | |
60 | | require_once( ABSPATH . WPINC . '/IXR/class-IXR-value.php' ); |
61 | | No newline at end of file |
| 60 | require_once ABSPATH . WPINC . '/IXR/class-IXR-value.php'; |
| 61 | No newline at end of file |
-
diff --git src/wp-includes/class-feed.php src/wp-includes/class-feed.php
index 5236170450..9a4772dc75 100644
|
|
|
10 | 10 | _deprecated_file( basename( __FILE__ ), '4.7.0', 'fetch_feed()' ); |
11 | 11 | |
12 | 12 | if ( ! class_exists( 'SimplePie', false ) ) { |
13 | | require_once( ABSPATH . WPINC . '/class-simplepie.php' ); |
| 13 | require_once ABSPATH . WPINC . '/class-simplepie.php'; |
14 | 14 | } |
15 | 15 | |
16 | | require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' ); |
17 | | require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' ); |
18 | | require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' ); |
19 | | require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' ); |
| 16 | require_once ABSPATH . WPINC . '/class-wp-feed-cache.php'; |
| 17 | require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php'; |
| 18 | require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php'; |
| 19 | require_once ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php'; |
-
diff --git src/wp-includes/class-http.php src/wp-includes/class-http.php
index 9e18811c28..70496645d8 100644
|
|
|
8 | 8 | */ |
9 | 9 | |
10 | 10 | if ( ! class_exists( 'Requests' ) ) { |
11 | | require( ABSPATH . WPINC . '/class-requests.php' ); |
| 11 | require ABSPATH . WPINC . '/class-requests.php'; |
12 | 12 | |
13 | 13 | Requests::register_autoloader(); |
14 | 14 | Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' ); |
-
diff --git src/wp-includes/class-oembed.php src/wp-includes/class-oembed.php
index 3b39e97df8..747fffa77a 100644
|
|
|
12 | 12 | _deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-includes/class-wp-oembed.php' ); |
13 | 13 | |
14 | 14 | /** WP_oEmbed class */ |
15 | | require_once( ABSPATH . 'wp-includes/class-wp-oembed.php' ); |
| 15 | require_once ABSPATH . 'wp-includes/class-wp-oembed.php'; |
-
diff --git src/wp-includes/class-phpmailer.php src/wp-includes/class-phpmailer.php
index 7aaa850532..30754a4e6c 100644
|
|
class PHPMailer |
1534 | 1534 | public function getSMTPInstance() |
1535 | 1535 | { |
1536 | 1536 | if (!is_object($this->smtp)) { |
1537 | | require_once( 'class-smtp.php' ); |
| 1537 | require_once 'class-smtp.php'; |
1538 | 1538 | $this->smtp = new SMTP; |
1539 | 1539 | } |
1540 | 1540 | return $this->smtp; |
-
diff --git src/wp-includes/class-simplepie.php src/wp-includes/class-simplepie.php
index 6110413767..348657f5d9 100644
|
|
function wp_simplepie_autoload( $class ) { |
26 | 26 | return; |
27 | 27 | |
28 | 28 | $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; |
29 | | include( $file ); |
| 29 | include $file; |
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
-
diff --git src/wp-includes/class-wp-customize-control.php src/wp-includes/class-wp-customize-control.php
index 994ff90805..ca088cd422 100644
|
|
class WP_Customize_Control { |
693 | 693 | /** |
694 | 694 | * WP_Customize_Color_Control class. |
695 | 695 | */ |
696 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' ); |
| 696 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php'; |
697 | 697 | |
698 | 698 | /** |
699 | 699 | * WP_Customize_Media_Control class. |
700 | 700 | */ |
701 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' ); |
| 701 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php'; |
702 | 702 | |
703 | 703 | /** |
704 | 704 | * WP_Customize_Upload_Control class. |
705 | 705 | */ |
706 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' ); |
| 706 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php'; |
707 | 707 | |
708 | 708 | /** |
709 | 709 | * WP_Customize_Image_Control class. |
710 | 710 | */ |
711 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' ); |
| 711 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php'; |
712 | 712 | |
713 | 713 | /** |
714 | 714 | * WP_Customize_Background_Image_Control class. |
715 | 715 | */ |
716 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' ); |
| 716 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php'; |
717 | 717 | |
718 | 718 | /** |
719 | 719 | * WP_Customize_Background_Position_Control class. |
720 | 720 | */ |
721 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' ); |
| 721 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php'; |
722 | 722 | |
723 | 723 | /** |
724 | 724 | * WP_Customize_Cropped_Image_Control class. |
725 | 725 | */ |
726 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' ); |
| 726 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php'; |
727 | 727 | |
728 | 728 | /** |
729 | 729 | * WP_Customize_Site_Icon_Control class. |
730 | 730 | */ |
731 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' ); |
| 731 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php'; |
732 | 732 | |
733 | 733 | /** |
734 | 734 | * WP_Customize_Header_Image_Control class. |
735 | 735 | */ |
736 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' ); |
| 736 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php'; |
737 | 737 | |
738 | 738 | /** |
739 | 739 | * WP_Customize_Theme_Control class. |
740 | 740 | */ |
741 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' ); |
| 741 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php'; |
742 | 742 | |
743 | 743 | /** |
744 | 744 | * WP_Widget_Area_Customize_Control class. |
745 | 745 | */ |
746 | | require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' ); |
| 746 | require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php'; |
747 | 747 | |
748 | 748 | /** |
749 | 749 | * WP_Widget_Form_Customize_Control class. |
750 | 750 | */ |
751 | | require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' ); |
| 751 | require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php'; |
752 | 752 | |
753 | 753 | /** |
754 | 754 | * WP_Customize_Nav_Menu_Control class. |
755 | 755 | */ |
756 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' ); |
| 756 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php'; |
757 | 757 | |
758 | 758 | /** |
759 | 759 | * WP_Customize_Nav_Menu_Item_Control class. |
760 | 760 | */ |
761 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' ); |
| 761 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php'; |
762 | 762 | |
763 | 763 | /** |
764 | 764 | * WP_Customize_Nav_Menu_Location_Control class. |
765 | 765 | */ |
766 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' ); |
| 766 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php'; |
767 | 767 | |
768 | 768 | /** |
769 | 769 | * WP_Customize_Nav_Menu_Name_Control class. |
… |
… |
require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location |
774 | 774 | * |
775 | 775 | * @deprecated 4.9.0 This file is no longer used due to new menu creation UX. |
776 | 776 | */ |
777 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' ); |
| 777 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php'; |
778 | 778 | |
779 | 779 | /** |
780 | 780 | * WP_Customize_Nav_Menu_Locations_Control class. |
781 | 781 | */ |
782 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' ); |
| 782 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php'; |
783 | 783 | |
784 | 784 | /** |
785 | 785 | * WP_Customize_Nav_Menu_Auto_Add_Control class. |
786 | 786 | */ |
787 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' ); |
| 787 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php'; |
788 | 788 | |
789 | 789 | /** |
790 | 790 | * WP_Customize_Date_Time_Control class. |
791 | 791 | */ |
792 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php' ); |
| 792 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php'; |
-
diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index d65f82ad42..412282b44a 100644
|
|
final class WP_Customize_Manager { |
293 | 293 | } |
294 | 294 | } |
295 | 295 | |
296 | | require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' ); |
297 | | require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' ); |
298 | | require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' ); |
299 | | require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' ); |
300 | | |
301 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' ); |
302 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' ); |
303 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' ); |
304 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' ); |
305 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' ); |
306 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' ); |
307 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' ); |
308 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' ); |
309 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' ); |
310 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' ); |
311 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-code-editor-control.php' ); |
312 | | require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' ); |
313 | | require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' ); |
314 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' ); |
315 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' ); |
316 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' ); |
317 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' ); |
318 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' ); |
319 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' ); |
320 | | |
321 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' ); |
322 | | |
323 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-panel.php' ); |
324 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' ); |
325 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' ); |
326 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' ); |
327 | | |
328 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php' ); |
329 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' ); |
330 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' ); |
331 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' ); |
332 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' ); |
333 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' ); |
| 296 | require_once ABSPATH . WPINC . '/class-wp-customize-setting.php'; |
| 297 | require_once ABSPATH . WPINC . '/class-wp-customize-panel.php'; |
| 298 | require_once ABSPATH . WPINC . '/class-wp-customize-section.php'; |
| 299 | require_once ABSPATH . WPINC . '/class-wp-customize-control.php'; |
| 300 | |
| 301 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php'; |
| 302 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php'; |
| 303 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php'; |
| 304 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php'; |
| 305 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php'; |
| 306 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php'; |
| 307 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php'; |
| 308 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php'; |
| 309 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php'; |
| 310 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php'; |
| 311 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-code-editor-control.php'; |
| 312 | require_once ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php'; |
| 313 | require_once ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php'; |
| 314 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php'; |
| 315 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php'; |
| 316 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php'; |
| 317 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php'; |
| 318 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php'; |
| 319 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php'; |
| 320 | |
| 321 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php'; |
| 322 | |
| 323 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-panel.php'; |
| 324 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php'; |
| 325 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php'; |
| 326 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php'; |
| 327 | |
| 328 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php'; |
| 329 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php'; |
| 330 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php'; |
| 331 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php'; |
| 332 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php'; |
| 333 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php'; |
334 | 334 | |
335 | 335 | /** |
336 | 336 | * Filters the core Customizer components to load. |
… |
… |
final class WP_Customize_Manager { |
349 | 349 | */ |
350 | 350 | $components = apply_filters( 'customize_loaded_components', $this->components, $this ); |
351 | 351 | |
352 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' ); |
| 352 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php'; |
353 | 353 | $this->selective_refresh = new WP_Customize_Selective_Refresh( $this ); |
354 | 354 | |
355 | 355 | if ( in_array( 'widgets', $components, true ) ) { |
356 | | require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' ); |
| 356 | require_once ABSPATH . WPINC . '/class-wp-customize-widgets.php'; |
357 | 357 | $this->widgets = new WP_Customize_Widgets( $this ); |
358 | 358 | } |
359 | 359 | |
360 | 360 | if ( in_array( 'nav_menus', $components, true ) ) { |
361 | | require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' ); |
| 361 | require_once ABSPATH . WPINC . '/class-wp-customize-nav-menus.php'; |
362 | 362 | $this->nav_menus = new WP_Customize_Nav_Menus( $this ); |
363 | 363 | } |
364 | 364 | |
… |
… |
final class WP_Customize_Manager { |
1639 | 1639 | } |
1640 | 1640 | |
1641 | 1641 | // Such is The WordPress Way. |
1642 | | require_once( ABSPATH . 'wp-admin/includes/file.php' ); |
1643 | | require_once( ABSPATH . 'wp-admin/includes/media.php' ); |
1644 | | require_once( ABSPATH . 'wp-admin/includes/image.php' ); |
| 1642 | require_once ABSPATH . 'wp-admin/includes/file.php'; |
| 1643 | require_once ABSPATH . 'wp-admin/includes/media.php'; |
| 1644 | require_once ABSPATH . 'wp-admin/includes/image.php'; |
1645 | 1645 | |
1646 | 1646 | foreach ( $attachments as $symbol => $attachment ) { |
1647 | 1647 | |
-
diff --git src/wp-includes/class-wp-customize-panel.php src/wp-includes/class-wp-customize-panel.php
index 82eda3a0f6..185908bea8 100644
|
|
class WP_Customize_Panel { |
379 | 379 | } |
380 | 380 | |
381 | 381 | /** WP_Customize_Nav_Menus_Panel class */ |
382 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' ); |
| 382 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php'; |
-
diff --git src/wp-includes/class-wp-customize-section.php src/wp-includes/class-wp-customize-section.php
index 57cc8d3bff..47ff0910ba 100644
|
|
class WP_Customize_Section { |
376 | 376 | } |
377 | 377 | |
378 | 378 | /** WP_Customize_Themes_Section class */ |
379 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' ); |
| 379 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php'; |
380 | 380 | |
381 | 381 | /** WP_Customize_Sidebar_Section class */ |
382 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' ); |
| 382 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php'; |
383 | 383 | |
384 | 384 | /** WP_Customize_Nav_Menu_Section class */ |
385 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' ); |
| 385 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php'; |
-
diff --git src/wp-includes/class-wp-customize-setting.php src/wp-includes/class-wp-customize-setting.php
index c5efd0a7ee..1e6a165021 100644
|
|
class WP_Customize_Setting { |
943 | 943 | /** |
944 | 944 | * WP_Customize_Filter_Setting class. |
945 | 945 | */ |
946 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' ); |
| 946 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php'; |
947 | 947 | |
948 | 948 | /** |
949 | 949 | * WP_Customize_Header_Image_Setting class. |
950 | 950 | */ |
951 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' ); |
| 951 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php'; |
952 | 952 | |
953 | 953 | /** |
954 | 954 | * WP_Customize_Background_Image_Setting class. |
955 | 955 | */ |
956 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' ); |
| 956 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php'; |
957 | 957 | |
958 | 958 | /** |
959 | 959 | * WP_Customize_Nav_Menu_Item_Setting class. |
960 | 960 | */ |
961 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' ); |
| 961 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php'; |
962 | 962 | |
963 | 963 | /** |
964 | 964 | * WP_Customize_Nav_Menu_Setting class. |
965 | 965 | */ |
966 | | require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' ); |
| 966 | require_once ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php'; |
-
diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
index 26824dfa9b..8a2439fe7e 100644
|
|
final class _WP_Editors { |
225 | 225 | self::$has_medialib = true; |
226 | 226 | |
227 | 227 | if ( ! function_exists( 'media_buttons' ) ) { |
228 | | include( ABSPATH . 'wp-admin/includes/media.php' ); |
| 228 | include ABSPATH . 'wp-admin/includes/media.php'; |
229 | 229 | } |
230 | 230 | |
231 | 231 | echo '<div id="wp-' . $editor_id_attr . '-media-buttons" class="wp-media-buttons">'; |
… |
… |
final class _WP_Editors { |
496 | 496 | if ( ! empty( $mce_external_languages ) ) { |
497 | 497 | foreach ( $mce_external_languages as $name => $path ) { |
498 | 498 | if ( @is_file( $path ) && @is_readable( $path ) ) { |
499 | | include_once( $path ); |
| 499 | include_once $path; |
500 | 500 | $ext_plugins .= $strings . "\n"; |
501 | 501 | $loaded_langs[] = $name; |
502 | 502 | } |
-
diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
index a031c9a88c..22ab515501 100644
|
|
function comments_template( $file = '/comments.php', $separate_comments = false |
1506 | 1506 | */ |
1507 | 1507 | $include = apply_filters( 'comments_template', $theme_template ); |
1508 | 1508 | if ( file_exists( $include ) ) { |
1509 | | require( $include ); |
| 1509 | require $include; |
1510 | 1510 | } elseif ( file_exists( TEMPLATEPATH . $file ) ) { |
1511 | | require( TEMPLATEPATH . $file ); |
| 1511 | require TEMPLATEPATH . $file; |
1512 | 1512 | } else { // Backward compat code will be removed in a future release |
1513 | | require( ABSPATH . WPINC . '/theme-compat/comments.php' ); |
| 1513 | require ABSPATH . WPINC . '/theme-compat/comments.php'; |
1514 | 1514 | } |
1515 | 1515 | } |
1516 | 1516 | |
-
diff --git src/wp-includes/comment.php src/wp-includes/comment.php
index fca5ab9db4..73e82cf4ec 100644
|
|
function generic_ping( $post_id = 0 ) { |
2801 | 2801 | * @param int|WP_Post $post_id Post Object or ID. |
2802 | 2802 | */ |
2803 | 2803 | function pingback( $content, $post_id ) { |
2804 | | include_once( ABSPATH . WPINC . '/class-IXR.php' ); |
2805 | | include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' ); |
| 2804 | include_once ABSPATH . WPINC . '/class-IXR.php'; |
| 2805 | include_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php'; |
2806 | 2806 | |
2807 | 2807 | // original code by Mort (http://mort.mine.nu:8080) |
2808 | 2808 | $post_links = array(); |
… |
… |
function trackback( $trackback_url, $title, $excerpt, $ID ) { |
2957 | 2957 | * @param string $path Path to send the ping. |