Make WordPress Core


Ignore:
Timestamp:
05/10/2011 07:18:16 PM (14 years ago)
Author:
ryan
Message:

Remove favorite_actions() from h2s. Restore Add New buttons. see #17324

File:
1 edited

Legend:

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

    r17800 r17849  
    7373<div class="wrap">
    7474    <?php screen_icon(); ?>
    75     <h2><?php
    76     esc_html_e( 'Users' );
    77     if ( current_user_can( 'create_users' ) ) {
    78         favorite_actions( $current_screen );
    79     }
    80     if ( !empty( $usersearch ) ) {
    81         printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
    82     }
     75    <h2><?php esc_html_e( 'Users' );
     76    if ( current_user_can( 'create_users') ) : ?>
     77        <a href="<?php echo network_admin_url('user-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
     78    endif;
     79   
     80    if ( !empty( $usersearch ) )
     81    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
    8382    ?>
    8483    </h2>
Note: See TracChangeset for help on using the changeset viewer.