WordPress.org

Make WordPress Core

Ticket #9278: user-edit.diff

File user-edit.diff, 970 bytes (added by razor77, 9 years ago)
  • .php

    old new  
    310310<h3><?php _e('Contact Info') ?></h3>
    311311
    312312<table class="form-table">
     313<?php
     314$show_contact_fields = apply_filters('show_contact_fields', true);
     315if ( $show_contact_fields ) :
     316?>
    313317<tr>
    314318        <th><label for="email"><?php _e('E-mail') ?></label></th>
    315319        <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" class="regular-text" /> <?php _e('Required.');?></td>
     
    343347        <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
    344348        <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
    345349</tr>
     350<?php endif; ?>
    346351
    347352<?php
    348353$show_password_fields = apply_filters('show_password_fields', true);