Ticket #18709: 18709.2.patch
File 18709.2.patch, 2.6 KB (added by , 11 years ago) |
---|
-
wp-admin/user-new.php
269 269 <form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action('user_new_form_tag');?>> 270 270 <input name="action" type="hidden" value="adduser" /> 271 271 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 272 272 <?php do_action( 'user_new_form_before' ); ?> 273 273 <table class="form-table"> 274 274 <tr class="form-field form-required"> 275 275 <th scope="row"><label for="adduser-email"><?php echo $label; ?></label></th> … … 289 289 </tr> 290 290 <?php } ?> 291 291 </table> 292 <?php do_action( 'user_new_form_after' ); ?> 292 293 <?php submit_button( __( 'Add Existing User '), 'primary', 'adduser', true, array( 'id' => 'addusersub' ) ); ?> 293 294 </form> 294 295 <?php … … 301 302 <p><?php _e('Create a brand new user and add it to this site.'); ?></p> 302 303 <form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>> 303 304 <input name="action" type="hidden" value="createuser" /> 304 <?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ) ?> 305 <?php 305 <?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?> 306 <?php do_action( 'user_new_form_before' ); 307 306 308 // Load up the passed data, else set to a default. 307 309 foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_name' => 'lastname', 308 310 'email' => 'email', 'url' => 'uri', 'role' => 'role', 'send_password' => 'send_password', 'noconfirmation' => 'ignore_pass' ) as $post_field => $var ) { … … 380 382 <?php } ?> 381 383 </table> 382 384 385 <?php do_action( 'user_new_form_after' ); ?> 386 383 387 <?php submit_button( __( 'Add New User '), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?> 384 388 385 389 </form> -
wp-admin/network/user-new.php
86 86 </div> 87 87 <?php } ?> 88 88 <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post"> 89 <?php do_action( 'user_new_form_before' ); ?> 89 90 <table class="form-table"> 90 91 <tr class="form-field form-required"> 91 92 <th scope="row"><?php _e( 'Username' ) ?></th> … … 99 100 <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td> 100 101 </tr> 101 102 </table> 103 <?php do_action( 'user_new_form_after' ); ?> 102 104 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 103 105 <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?> 104 106 </form>