Changeset 50787
- Timestamp:
- 04/24/2021 06:02:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r50522 r50787 662 662 ob_start(); 663 663 664 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { 665 define( 'WP_SANDBOX_SCRAPING', true ); 666 } 667 668 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 669 $_wp_plugin_file = $plugin; 670 include_once WP_PLUGIN_DIR . '/' . $plugin; 671 $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. 664 // Load the plugin to test whether it throws any errors. 665 plugin_sandbox_scrape( $plugin ); 672 666 673 667 if ( ! $silent ) { … … 733 727 return new WP_Error( 'unexpected_output', __( 'The plugin generated unexpected output.' ), $output ); 734 728 } 729 735 730 ob_end_clean(); 736 731 }
Note: See TracChangeset
for help on using the changeset viewer.