Make WordPress Core


Ignore:
Timestamp:
06/10/2015 01:45:11 AM (11 years ago)
Author:
helen
Message:

List tables:

  • Avoid notices in custom list tables that manually set $_column_headers. Any plugins using this for a specific purpose should update.
  • Restore a special class name in the users list table.

props georgestephanis, stephdau.
see #25408.

File:
1 edited

Legend:

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

    r32694 r32717  
    411411                        if ( $primary === $column_name ) {
    412412                                $classes .= ' has-row-actions column-primary';
     413                        }
     414                        if ( 'posts' === $column_name ) {
     415                                $classes .= ' num'; // Special case for that column
    413416                        }
    414417
    … …  
    438441                                                break;
    439442                                        case 'posts':
    440                                                 $attributes = 'class="posts column-posts num"' . $style;
    441443                                                if ( $numposts > 0 ) {
    442444                                                        $r .= "<a href='edit.php?author=$user_object->ID' class='edit'>";
Note: See TracChangeset for help on using the changeset viewer.