WordPress.org

Make WordPress Core

Ticket #37200: #37200.diff

File #37200.diff, 2.3 KB (added by TeemuSuoranta, 3 years ago)

My patch. I created it with SourceTree from Git mirror, I hope it's okay.

  • wp-admin/user-edit.php

    diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php
    index 46ac066..8d13f9b 100644
    a b if ( ! IS_PROFILE_PAGE ) { 
    225225<input type="hidden" name="checkuser_id" value="<?php echo get_current_user_id(); ?>" />
    226226</p>
    227227
     228<div id="user-personal-options-section">
    228229<h2><?php _e( 'Personal Options' ); ?></h2>
    229230
    230231<table class="form-table">
    do_action( 'personal_options', $profileuser ); 
    281282?>
    282283
    283284</table>
     285</div>
    284286<?php
    285287        if ( IS_PROFILE_PAGE ) {
    286288                /**
    do_action( 'personal_options', $profileuser ); 
    296298        }
    297299?>
    298300
     301<div id="user-name-section">
    299302<h2><?php _e( 'Name' ); ?></h2>
    300303
    301304<table class="form-table">
    if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c 
    386389        </td>
    387390</tr>
    388391</table>
     392</div>
    389393
     394<div id="user-contact-info-section">
    390395<h2><?php _e( 'Contact Info' ); ?></h2>
    391396
    392397<table class="form-table">
    if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c 
    444449        }
    445450?>
    446451</table>
     452</div>
    447453
     454<div id="user-about-the-user-section">
    448455<h2><?php IS_PROFILE_PAGE ? _e( 'About Yourself' ) : _e( 'About the user' ); ?></h2>
    449456
    450457<table class="form-table">
    if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c 
    496503if ( $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ) ) :
    497504?>
    498505</table>
     506</div>
    499507
     508<div id="user-account-management-section">
    500509<h2><?php _e( 'Account Management' ); ?></h2>
    501510<table class="form-table">
    502511<tr id="password" class="user-pass1-wrap">
    if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?> 
    574583<?php endif; ?>
    575584
    576585</table>
     586</div>
    577587
    578588<?php
    579589        if ( IS_PROFILE_PAGE ) {
    if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?> 
    615625if ( count( $profileuser->caps ) > count( $profileuser->roles )
    616626        && apply_filters( 'additional_capabilities_display', true, $profileuser )
    617627) : ?>
     628<div id="user-additional-capabilities-section">
    618629<h2><?php _e( 'Additional Capabilities' ); ?></h2>
    619630<table class="form-table">
    620631<tr class="user-capabilities-wrap">
    if ( count( $profileuser->caps ) > count( $profileuser->roles ) 
    634645        </td>
    635646</tr>
    636647</table>
     648</div>
    637649<?php endif; ?>
    638650
    639651<input type="hidden" name="action" value="update" />