Make WordPress Core


Ignore:
Timestamp:
03/19/2015 05:26:00 AM (9 years ago)
Author:
jorbin
Message:

Ensure that we target the correct plugin row for update updates

The DOM traversal of the plugins list table was less than ideal. By switching to data attributes, we can better target the DOM elements we want to update.

Props ericlewis
Fixes #31621

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r30679 r31831  
    516516            $class .= ' update';
    517517
    518         echo "<tr id='$id' class='$class'>";
     518        printf( "<tr id='%s' class='%s' data-slug='%s'>",
     519            $id,
     520            $class,
     521            $plugin_data['slug']
     522        );
    519523
    520524        list( $columns, $hidden ) = $this->get_column_info();
Note: See TracChangeset for help on using the changeset viewer.