mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-28 17:24:33 +00:00
Revert [12908]. Update Users cap to use a capability. See #12098. Props nacin
git-svn-id: https://develop.svn.wordpress.org/trunk@12916 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -254,7 +254,7 @@ if ( ! empty($messages) ) {
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title ); if ( !is_multisite() || get_site_option( 'add_new_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' ) ) { ?> <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a><?php }
|
||||
if ( isset($_GET['usersearch']) && $_GET['usersearch'] )
|
||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $_GET['usersearch'] ) ); ?>
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user