WordPress.org

Make WordPress Core

Changeset 17106


Ignore:
Timestamp:
12/21/10 23:18:10 (5 years ago)
Author:
nacin
Message:

Use a separate variable to fix plugin deletion. props phill_brown, fixes #15940.

File:
1 edited

Legend:

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

    r17038 r17106  
    235235                            } 
    236236                            // Get plugins list from that folder 
    237                             if ( $plugins['folder'] = get_plugins( '/' . dirname($plugin)) ) { 
    238                                 foreach( $plugins['folder'] as $plugin_file => $data ) { 
     237                            if ( $folder_plugins = get_plugins( '/' . dirname($plugin)) ) { 
     238                                foreach( $folder_plugins as $plugin_file => $data ) { 
    239239                                    $plugin_info[ $plugin_file ] = _get_plugin_data_markup_translate( $plugin_file, $data ); 
    240240                                    $plugin_info[ $plugin_file ]['is_uninstallable'] = is_uninstallable_plugin( $plugin ); 
Note: See TracChangeset for help on using the changeset viewer.