Make WordPress Core


Ignore:
Timestamp:
09/10/2015 09:23:17 PM (9 years ago)
Author:
wonderboymusic
Message:

Move plugin_sandbox_scrape() from wp-admin/plugins.php to wp-admin/includes/plugin.php.

See #33813.

File:
1 edited

Legend:

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

    r33983 r34018  
    149149            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    150150            // Go back to "sandbox" scope so we get the same errors as before
    151             /**
    152              * @param string $plugin
    153              */
    154             function plugin_sandbox_scrape( $plugin ) {
    155                 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
    156                 include( WP_PLUGIN_DIR . '/' . $plugin );
    157             }
    158151            plugin_sandbox_scrape( $plugin );
    159152            /** This action is documented in wp-admin/includes/plugin.php */
Note: See TracChangeset for help on using the changeset viewer.