Make WordPress Core


Ignore:
Timestamp:
11/05/2010 02:34:09 PM (15 years ago)
Author:
scribu
Message:

remove leading <li> from get_views() and add it later. Fixes #15321

File:
1 edited

Legend:

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

    r16182 r16205  
    6464        $class = empty($role) ? ' class="current"' : '';
    6565        $role_links = array();
    66         $role_links['all'] = "<li><a href='users.php'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
     66        $role_links['all'] = "<a href='users.php'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
    6767        foreach ( $wp_roles->get_names() as $this_role => $name ) {
    6868            if ( !isset($avail_roles[$this_role]) )
     
    7979            /* translators: User role name with count */
    8080            $name = sprintf( __('%1$s <span class="count">(%2$s)</span>'), $name, $avail_roles[$this_role] );
    81             $role_links[$this_role] = "<li><a href='users.php?role=$this_role'$class>$name</a>";
     81            $role_links[$this_role] = "<a href='users.php?role=$this_role'$class>$name</a>";
    8282        }
    8383
Note: See TracChangeset for help on using the changeset viewer.