mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Show Add New if user can promote.
git-svn-id: https://develop.svn.wordpress.org/trunk@16330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
53ae0610e6
commit
d653f78616
@ -346,7 +346,7 @@ if ( ! empty($messages) ) {
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title ); if ( current_user_can( 'create_users' ) ) { ?> <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a><?php }
|
||||
<h2><?php echo esc_html( $title ); if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) ) { ?> <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a><?php }
|
||||
if ( $usersearch )
|
||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?>
|
||||
</h2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user