Add some filters and an action to make this more flexible for plugin extension / modification. See #15793.

git-svn-id: https://develop.svn.wordpress.org/trunk@16891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-12-13 11:58:49 +00:00
parent 223dfd3468
commit f76d96c609

View File

@ -215,6 +215,9 @@ endif; ?>
</form>
do_action( 'network_site_users_after_list_table', '' );
<?php if ( 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">
@ -242,7 +245,9 @@ endif; ?>
</table>
<?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
</form>
<?php endif; ?>
<?php if ( 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">
@ -278,5 +283,6 @@ endif; ?>
<?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
</form>
</div>
<?php endif; ?>
<?php
require('../admin-footer.php');