Make WordPress Core

Changeset 34018


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

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

See #33813.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r33734 r34018  
    19491949    wp_cache_delete( 'plugins', 'plugins' );
    19501950}
     1951
     1952/**
     1953 * @param string $plugin
     1954 */
     1955function plugin_sandbox_scrape( $plugin ) {
     1956    wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
     1957    include( WP_PLUGIN_DIR . '/' . $plugin );
     1958}
  • 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.