Multisite: Add a hook to the end of the network's Add New User form.

The `network_user_new_form` action can be used to extend the new user form.

Props ptahdunbar.
Fixes #15389.

Built from https://develop.svn.wordpress.org/trunk@36556


git-svn-id: http://core.svn.wordpress.org/trunk@36523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-02-17 19:15:26 +00:00
parent 39cd3583a4
commit 309ea2f138
2 changed files with 12 additions and 3 deletions

View File

@ -106,8 +106,17 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?>
<td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>
</tr>
</table>
<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?>
<?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
<?php
/**
* Fires at the end of the new user form in network admin.
*
* @since 4.5.0
*/
do_action( 'network_user_new_form' );
wp_nonce_field( 'add-user', '_wpnonce_add-user' );
submit_button( __('Add User'), 'primary', 'add-user' );
?>
</form>
</div>
<?php

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36555';
$wp_version = '4.5-alpha-36556';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.