Changeset 47198 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 02/06/2020 06:31:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r47119 r47198 657 657 define( 'WP_SANDBOX_SCRAPING', true ); 658 658 } 659 include_once ( WP_PLUGIN_DIR . '/' . $plugin );659 include_once WP_PLUGIN_DIR . '/' . $plugin; 660 660 $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. 661 661 … … 908 908 if ( false === $credentials ) { 909 909 if ( ! empty( $data ) ) { 910 include_once( ABSPATH . 'wp-admin/admin-header.php' );910 require_once ABSPATH . 'wp-admin/admin-header.php'; 911 911 echo $data; 912 include( ABSPATH . 'wp-admin/admin-footer.php' );912 require_once ABSPATH . 'wp-admin/admin-footer.php'; 913 913 exit; 914 914 } … … 923 923 924 924 if ( ! empty( $data ) ) { 925 include_once( ABSPATH . 'wp-admin/admin-header.php' );925 require_once ABSPATH . 'wp-admin/admin-header.php'; 926 926 echo $data; 927 include( ABSPATH . 'wp-admin/admin-footer.php' );927 require_once ABSPATH . 'wp-admin/admin-footer.php'; 928 928 exit; 929 929 } … … 1220 1220 define( 'WP_UNINSTALL_PLUGIN', $file ); 1221 1221 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); 1222 include ( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' );1222 include WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php'; 1223 1223 1224 1224 return true; … … 1232 1232 1233 1233 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); 1234 include ( WP_PLUGIN_DIR . '/' . $file );1234 include WP_PLUGIN_DIR . '/' . $file; 1235 1235 1236 1236 add_action( "uninstall_{$file}", $callable ); … … 2253 2253 } 2254 2254 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 2255 include ( WP_PLUGIN_DIR . '/' . $plugin );2255 include WP_PLUGIN_DIR . '/' . $plugin; 2256 2256 } 2257 2257 … … 2308 2308 2309 2309 if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { 2310 require_once ( ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php' );2310 require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; 2311 2311 } 2312 2312
Note: See TracChangeset
for help on using the changeset viewer.