WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/30/2008 06:48:03 AM (12 years ago)
Author:
westi
Message:

Include only valid plugins. Props guillep2k and xknown, fixes #6871 for 2.6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/includes/plugin.php

    r8266 r8500  
    240240    }
    241241
     242    //Invalid is any plugin that is deactivated due to error.
     243    $invalid = array();
     244
    242245    // If a plugin file does not exist, remove it from the list of active
    243246    // plugins.
     
    245248        $result = validate_plugin($check_plugin);
    246249        if ( is_wp_error( $result ) ) {
     250            $invalid[$check_plugin] = $result;
    247251            deactivate_plugins( $check_plugin, true);
    248252        }
    249253    }
     254    return $invalid;
    250255}
    251256
Note: See TracChangeset for help on using the changeset viewer.