Check the current user can create sites before showing the button. See #14435 props PeteMall.
git-svn-id: https://develop.svn.wordpress.org/trunk@16185 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
91e15d98c3
commit
cf37645868
@ -89,7 +89,10 @@ require_once( '../admin-header.php' );
|
||||
<?php screen_icon('ms-admin'); ?>
|
||||
<h2><?php _e('Sites') ?>
|
||||
<?php echo $msg; ?>
|
||||
<a href="<?php echo network_admin_url('site-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'sites' ); ?></a>
|
||||
<?php if ( current_user_can( 'create_sites') ) : ?>
|
||||
<a href="<?php echo network_admin_url('site-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'sites' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) {
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) );
|
||||
} ?>
|
||||
|
Loading…
Reference in New Issue
Block a user