WordPress.org

Make WordPress Core

Changeset 41561


Ignore:
Timestamp:
09/22/17 02:00:33 (4 months ago)
Author:
westonruter
Message:

Plugin Editor: Use include_once instead of include in plugin_sandbox_scrape() to fix unit tests broken with [41560].

See #39766.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r41560 r41561  
    19101910    array_map( 'remove_all_actions', array_keys( $tested_actions ) ); 
    19111911 
    1912     include( WP_PLUGIN_DIR . '/' . $plugin ); 
     1912    include_once( WP_PLUGIN_DIR . '/' . $plugin ); 
    19131913 
    19141914    // Trigger key actions that are done on the plugin editor to cause the relevant plugin hooks to fire and potentially cause errors. 
Note: See TracChangeset for help on using the changeset viewer.