WordPress.org

Make WordPress Core

Changeset 28381


Ignore:
Timestamp:
05/13/2014 04:39:17 AM (7 years ago)
Author:
wonderboymusic
Message:

Eliminate use of extract() in wp-includes/theme-compat/comments-popup.php.

See #22400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-compat/comments-popup.php

    r27369 r28381  
    4242// this line is WordPress' motor, do not delete it.
    4343$commenter = wp_get_current_commenter();
    44 extract($commenter);
    4544$comments = get_approved_comments($id);
    4645$post = get_post($id);
     
    7271<?php else : ?>
    7372    <p>
    74       <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" />
     73      <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr( $commenter['comment_author'] ); ?>" size="28" tabindex="1" />
    7574       <label for="author"><?php _e('Name'); ?></label>
    7675    </p>
    7776
    7877    <p>
    79       <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
     78      <input type="text" name="email" id="email" value="<?php echo esc_attr( $commenter['comment_author_email'] ); ?>" size="28" tabindex="2" />
    8079       <label for="email"><?php _e('E-mail'); ?></label>
    8180    </p>
    8281
    8382    <p>
    84       <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
     83      <input type="text" name="url" id="url" value="<?php echo esc_attr( $commenter['comment_author_url'] ); ?>" size="28" tabindex="3" />
    8584       <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label>
    8685    </p>
Note: See TracChangeset for help on using the changeset viewer.