Changeset 25880 for trunk/src/wp-admin/user-new.php
- Timestamp:
- 10/23/2013 02:37:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-new.php
r25868 r25880 117 117 $add_user_errors = $user_details[ 'errors' ]; 118 118 } else { 119 /** 119 /** 120 120 * Filter the user_login, aka the username, before it is added to the site. 121 * 121 * 122 122 * @since 3.0.0 123 * 124 * @param string $_REQUEST['user_login'] The sanitized username. 125 */ 123 * 124 * @param string $_REQUEST['user_login'] The sanitized username. 125 */ 126 126 $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); 127 127 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { … … 189 189 wp_enqueue_script('user-profile'); 190 190 191 /** 191 /** 192 192 * Allows you to enable user auto-complete for non-super admins in multisite. 193 * 193 * 194 194 * @since 3.4.0 195 * 195 * 196 196 * @param bool True or false, based on if you enable auto-complete for non-super admins. Default is false. 197 */ 197 */ 198 198 if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' ) 199 199 && ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) ) … … 282 282 ?> 283 283 <?php 284 /** 284 /** 285 285 * Fires inside the adduser form tag. 286 * 286 * 287 287 * @since 3.0.0 288 */ 288 */ 289 289 ?> 290 290 <form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action('user_new_form_tag');?>> … … 377 377 <td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td> 378 378 </tr> 379 <?php 380 /** 379 <?php 380 /** 381 381 * Filter the display of the password fields. 382 * 382 * 383 383 * @since 1.5.1 384 * 384 * 385 385 * @param bool True or false, based on if you want to show the password fields. Default is true. 386 */ 386 */ 387 387 if ( apply_filters( 'show_password_fields', true ) ) : ?> 388 388 <tr class="form-field form-required">
Note: See TracChangeset
for help on using the changeset viewer.