Add cap checks. do the action in php. See #15793

git-svn-id: http://svn.automattic.com/wordpress/trunk@16892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-12-13 12:08:27 +00:00
parent 54d404134c
commit 70baa41126
1 changed files with 3 additions and 3 deletions

View File

@ -215,9 +215,9 @@ endif; ?>
</form>
do_action( 'network_site_users_after_list_table', '' );
<?php do_action( 'network_site_users_after_list_table', '' );?>
<?php if ( apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
<?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
<h3 id="add-existing-user"><?php _e('Add Existing User') ?></h3>
<p><?php _e( 'Enter the username of an existing user on this network.' ) ?></p>
<form action="site-users.php?action=adduser" id="adduser" method="post">
@ -247,7 +247,7 @@ do_action( 'network_site_users_after_list_table', '' );
</form>
<?php endif; ?>
<?php if ( apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
<?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
<h3 id="add-new-user"><?php _e('Create New User') ?></h3>
<p><?php _e( 'Create a brand new user and add it to this site.' ) ?></p>
<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">