Plugin Editor: Use include_once
instead of include
in plugin_sandbox_scrape()
to fix unit tests broken with [41560].
See #39766. git-svn-id: https://develop.svn.wordpress.org/trunk@41561 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f07591d1fd
commit
8412ff1f44
@ -1909,7 +1909,7 @@ function plugin_sandbox_scrape( $plugin ) {
|
||||
$old_wp_actions = $wp_actions;
|
||||
array_map( 'remove_all_actions', array_keys( $tested_actions ) );
|
||||
|
||||
include( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
include_once( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
|
||||
// Trigger key actions that are done on the plugin editor to cause the relevant plugin hooks to fire and potentially cause errors.
|
||||
foreach ( $tested_actions as $action => $args ) {
|
||||
|
Loading…
Reference in New Issue
Block a user