WordPress.org

Make WordPress Core

Changeset 32784


Ignore:
Timestamp:
06/15/15 06:25:58 (2 years ago)
Author:
dd32
Message:

Updates: Consistently use the same variable to refer to the plugin, avoids a potential PHP Notice when an external update script adds data without that key.
Props mordauk. Fixes #31784

File:
1 edited

Legend:

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

    r32672 r32784  
    316316 
    317317    if ( is_network_admin() || !is_multisite() ) { 
    318         $active_class = ( is_plugin_active( $plugin_data['plugin'] ) ) ? ' active' : ''; 
     318        $active_class = is_plugin_active( $file ) ? ' active' : ''; 
    319319        echo '<tr class="plugin-update-tr' . $active_class . '" id="' . esc_attr( $r->slug . '-update' ) . '" data-slug="' . esc_attr( $r->slug ) . '" data-plugin="' . esc_attr( $file ) . '"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) . '" class="plugin-update colspanchange"><div class="update-message">'; 
    320320 
Note: See TracChangeset for help on using the changeset viewer.