WordPress.org

Make WordPress Core

Ticket #15906: 15906.diff

File 15906.diff, 615 bytes (added by wpmuguru, 3 years ago)
  • wp-admin/includes/plugin.php

     
    779779        if ( ! file_exists(WP_PLUGIN_DIR . '/' . $plugin) ) 
    780780                return new WP_Error('plugin_not_found', __('Plugin file does not exist.')); 
    781781 
    782         $installed_plugins = get_plugins(); 
     782        $installed_plugins = apply_filters( 'all_plugins', get_plugins() ); 
    783783        if ( ! isset($installed_plugins[$plugin]) ) 
    784784                return new WP_Error('no_plugin_header', __('The plugin does not have a valid header.')); 
    785785        return 0;