Make WordPress Core

Changeset 28644


Ignore:
Timestamp:
05/30/2014 10:07:43 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Avoid stomping of the $plugin variable in activate_plugin().

fixes #28102.

File:
1 edited

Legend:

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

    r28479 r28644  
    539539        ob_start();
    540540        wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
     541        $_wp_plugin_file = $plugin;
    541542        include_once( WP_PLUGIN_DIR . '/' . $plugin );
     543        $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin.
    542544
    543545        if ( ! $silent ) {
Note: See TracChangeset for help on using the changeset viewer.