WordPress.org

Make WordPress Core

Ticket #24364: 24364.diff

File 24364.diff, 727 bytes (added by markjaquith, 2 years ago)
  • wp-admin/user-edit.php

    if ( ! IS_PROFILE_PAGE ) { 
    190190</h2> 
    191191 
    192192<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>> 
     193        <!-- #24364 hack --> 
     194        <input type="text" style="display:none" /> 
     195        <input type="password" style="display:none" /> 
    193196<?php wp_nonce_field('update-user_' . $user_id) ?> 
    194197<?php if ( $wp_http_referer ) : ?> 
    195198        <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />