Changeset 47122 for trunk/src/wp-admin/user-edit.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/user-edit.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-edit.php
r46782 r47122 236 236 237 237 <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate" 238 <?php239 /**240 * Fires inside the your-profile form tag on the user editing screen.241 *242 * @since 3.0.0243 */244 do_action( 'user_edit_form_tag' );245 ?>238 <?php 239 /** 240 * Fires inside the your-profile form tag on the user editing screen. 241 * 242 * @since 3.0.0 243 */ 244 do_action( 'user_edit_form_tag' ); 245 ?> 246 246 > 247 247 <?php wp_nonce_field( 'update-user_' . $user_id ); ?> … … 311 311 </td> 312 312 </tr> 313 <?php 314 endif; // $_wp_admin_css_colors 315 if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : 316 ?> 313 <?php endif; // End if count ( $_wp_admin_css_colors ) > 1 ?> 314 315 <?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?> 317 316 <tr class="user-comment-shortcuts-wrap"> 318 317 <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th> … … 412 411 <td><select name="role" id="role"> 413 412 <?php 414 // Compare user role against currently editable roles 413 // Compare user role against currently editable roles. 415 414 $user_roles = array_intersect( array_values( $profileuser->roles ), array_keys( get_editable_roles() ) ); 416 415 $user_role = reset( $user_roles ); 417 416 418 // print the full list of roles with the primary one selected.417 // Print the full list of roles with the primary one selected. 419 418 wp_dropdown_roles( $user_role ); 420 419 421 // print the 'no role' option. Make it selected if the user has no role yet.420 // Print the 'no role' option. Make it selected if the user has no role yet. 422 421 if ( $user_role ) { 423 422 echo '<option value="">' . __( '— No role for this site —' ) . '</option>'; … … 428 427 </select></td></tr> 429 428 <?php 430 endif; //!IS_PROFILE_PAGE 429 endif; // End if ! IS_PROFILE_PAGE. 431 430 432 431 if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && ! isset( $super_admins ) ) { … … 479 478 } 480 479 481 if ( ! in_array( $profileuser->display_name, $public_display ) ) { // Only add this if it isn't duplicated elsewhere 480 if ( ! in_array( $profileuser->display_name, $public_display ) ) { // Only add this if it isn't duplicated elsewhere. 482 481 $public_display = array( 'display_displayname' => $profileuser->display_name ) + $public_display; 483 482 }
Note: See TracChangeset
for help on using the changeset viewer.