Changeset 48326
- Timestamp:
- 07/05/2020 08:30:18 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r48172 r48326 659 659 660 660 ob_start(); 661 662 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { 663 define( 'WP_SANDBOX_SCRAPING', true ); 664 } 665 661 666 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 662 667 $_wp_plugin_file = $plugin; 663 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {664 define( 'WP_SANDBOX_SCRAPING', true );665 }666 668 include_once WP_PLUGIN_DIR . '/' . $plugin; 667 669 $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. … … 1253 1255 1254 1256 define( 'WP_UNINSTALL_PLUGIN', $file ); 1257 1255 1258 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); 1256 include WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php';1259 include_once WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php'; 1257 1260 1258 1261 return true; … … 1266 1269 1267 1270 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); 1268 include WP_PLUGIN_DIR . '/' . $file;1271 include_once WP_PLUGIN_DIR . '/' . $file; 1269 1272 1270 1273 add_action( "uninstall_{$file}", $callable ); … … 2288 2291 define( 'WP_SANDBOX_SCRAPING', true ); 2289 2292 } 2293 2290 2294 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 2291 2295 include WP_PLUGIN_DIR . '/' . $plugin;
Note: See TracChangeset
for help on using the changeset viewer.