mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Remove favorite_actions() from h2s. Restore Add New buttons. see #17324
git-svn-id: https://develop.svn.wordpress.org/trunk@17849 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -72,14 +72,13 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
?>
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php
|
||||
esc_html_e( 'Users' );
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
favorite_actions( $current_screen );
|
||||
}
|
||||
if ( !empty( $usersearch ) ) {
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
||||
}
|
||||
<h2><?php esc_html_e( 'Users' );
|
||||
if ( current_user_can( 'create_users') ) : ?>
|
||||
<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
|
||||
endif;
|
||||
|
||||
if ( !empty( $usersearch ) )
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
||||
?>
|
||||
</h2>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user