Changeset 47198 for trunk/src/wp-admin/plugin-editor.php
- Timestamp:
- 02/06/2020 06:31:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugin-editor.php
r47122 r47198 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() ) { … … 25 25 26 26 if ( empty( $plugins ) ) { 27 include( ABSPATH . 'wp-admin/admin-header.php' );27 require_once ABSPATH . 'wp-admin/admin-header.php'; 28 28 ?> 29 29 <div class="wrap"> … … 32 32 </div> 33 33 <?php 34 include( ABSPATH . 'wp-admin/admin-footer.php' );34 require_once ABSPATH . 'wp-admin/admin-footer.php'; 35 35 exit; 36 36 } … … 152 152 wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'wp.themePluginEditor.themeOrPlugin = "plugin";' ) ); 153 153 154 require_once ( ABSPATH . 'wp-admin/admin-header.php' );154 require_once ABSPATH . 'wp-admin/admin-header.php'; 155 155 156 156 update_recently_edited( WP_PLUGIN_DIR . '/' . $file ); … … 337 337 endif; // Editor warning notice. 338 338 339 include( ABSPATH . 'wp-admin/admin-footer.php' );339 require_once ABSPATH . 'wp-admin/admin-footer.php';
Note: See TracChangeset
for help on using the changeset viewer.