Changeset 45114 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 04/05/2019 03:19:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r45085 r45114 632 632 wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-activation-error_' . $plugin ), $redirect ) ); // we'll override this later if the plugin can be included without fatal error 633 633 } 634 634 635 ob_start(); 635 636 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 636 637 $_wp_plugin_file = $plugin; 638 define( 'WP_SANDBOX_SCRAPING', true ); 637 639 include_once( WP_PLUGIN_DIR . '/' . $plugin ); 638 640 $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. … … 2126 2128 */ 2127 2129 function plugin_sandbox_scrape( $plugin ) { 2130 define( 'WP_SANDBOX_SCRAPING', true ); 2128 2131 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 2129 2132 include( WP_PLUGIN_DIR . '/' . $plugin );
Note: See TracChangeset
for help on using the changeset viewer.