Remove favorite_actions() from h2s. Restore Add New buttons. see #17324
git-svn-id: http://svn.automattic.com/wordpress/trunk@17849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -359,7 +359,12 @@ if ( ! empty($messages) ) {
|
||||
<h2>
|
||||
<?php
|
||||
echo esc_html( $title );
|
||||
favorite_actions( $current_screen );
|
||||
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 } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
|
||||
<a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
|
||||
<?php }
|
||||
|
||||
if ( $usersearch )
|
||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?>
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user