Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/comments-popup.php

    r11173 r11204  
    6767<?php else : ?>
    6868    <p>
    69       <input type="text" name="author" id="author" class="textarea" value="<?php echo attr($comment_author); ?>" size="28" tabindex="1" />
     69      <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" />
    7070       <label for="author">Name</label>
    7171    </p>
    7272
    7373    <p>
    74       <input type="text" name="email" id="email" value="<?php echo attr($comment_author_email); ?>" size="28" tabindex="2" />
     74      <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" />
    7575       <label for="email">E-mail</label>
    7676    </p>
    7777
    7878    <p>
    79       <input type="text" name="url" id="url" value="<?php echo attr($comment_author_url); ?>" size="28" tabindex="3" />
     79      <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" />
    8080       <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label>
    8181    </p>
     
    9090    <p>
    9191      <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    92       <input type="hidden" name="redirect_to" value="<?php echo attr($_SERVER["REQUEST_URI"]); ?>" />
     92      <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
    9393      <input name="submit" type="submit" tabindex="5" value="Say It!" />
    9494    </p>
Note: See TracChangeset for help on using the changeset viewer.