WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/20/2010 10:35:21 PM (11 years ago)
Author:
ryan
Message:

Screen icons for site admin pages. Using temp icon until new ones are done. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-users.php

    r12760 r12781  
    5555    }
    5656
    57     if ( !isset($_GET['sortby']) ) {
     57    if ( !isset($_GET['sortby']) )
    5858        $_GET['sortby'] = 'id';
    59     }
    60 
    61     if ( $_GET['sortby'] == 'email' ) {
     59
     60    if ( $_GET['sortby'] == 'email' )
    6261        $query .= ' ORDER BY user_email ';
    63     } elseif ( $_GET['sortby'] == 'id' ) {
     62    elseif ( $_GET['sortby'] == 'id' )
    6463        $query .= ' ORDER BY ID ';
    65     } elseif ( $_GET['sortby'] == 'login' ) {
     64    elseif ( $_GET['sortby'] == 'login' )
    6665        $query .= ' ORDER BY user_login ';
    67     } elseif ( $_GET['sortby'] == 'name' ) {
     66    elseif ( $_GET['sortby'] == 'name' )
    6867        $query .= ' ORDER BY display_name ';
    69     } elseif ( $_GET['sortby'] == 'registered' ) {
     68    elseif ( $_GET['sortby'] == 'registered' )
    7069        $query .= ' ORDER BY user_registered ';
    71     }
    7270
    7371    $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC';
    7472
    75     if ( !empty( $s )) {
     73    if ( !empty( $s ) )
    7674        $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(ID)', $query) );
    77     } else {
     75    else
    7876        $total = $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->users}");
    79     }
    8077
    8178    $query .= " LIMIT " . intval( ( $apage - 1 ) * $num) . ", " . intval( $num );
     
    10299    ?>
    103100    <div class="wrap">
    104     <h2><?php _e( $current_site->site_name ); ?> <?php _e("Users"); ?></h2>
     101    <?php screen_icon(); ?>
     102    <h2><?php esc_html_e("Users"); ?></h2>
    105103    <form action="ms-users.php" method="get" class="search-form">
    106104        <p class="search-box">
Note: See TracChangeset for help on using the changeset viewer.