Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (16 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-admin/edit-form-comment.php

    r11127 r11204  
    1313$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
    1414$form_action = 'editedcomment';
    15 $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . attr($comment->comment_ID) . "' />\n<input type='hidden' name='comment_post_ID' value='" . attr($comment->comment_post_ID);
     15$form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . esc_attr($comment->comment_ID) . "' />\n<input type='hidden' name='comment_post_ID' value='" . esc_attr($comment->comment_post_ID);
    1616?>
    1717
     
    2727<?php
    2828
    29 $email = attr( $comment->comment_author_email );
    30 $url = attr( $comment->comment_author_url );
     29$email = esc_attr( $comment->comment_author_email );
     30$url = esc_attr( $comment->comment_author_url );
    3131// add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core');
    3232?>
     
    7373</div>
    7474<div id="publishing-action">
    75 <input type="submit" name="save" value="<?php _ea('Update Comment'); ?>" tabindex="4" class="button-primary" />
     75<input type="submit" name="save" value="<?php esc_attr_e('Update Comment'); ?>" tabindex="4" class="button-primary" />
    7676</div>
    7777<div class="clear"></div>
     
    9191<tr valign="top">
    9292    <td class="first"><?php _e( 'Name:' ); ?></td>
    93     <td><input type="text" name="newcomment_author" size="30" value="<?php echo attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td>
     93    <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td>
    9494</tr>
    9595<tr valign="top">
     
    102102        }
    103103?></td>
    104     <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo attr($email); ?>" tabindex="2" id="email" /></td>
     104    <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo esc_attr($email); ?>" tabindex="2" id="email" /></td>
    105105</tr>
    106106<tr valign="top">
     
    114114            _e( 'URL:' );
    115115        } ?></td>
    116     <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo attr($url); ?>" tabindex="3" /></td>
     116    <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($url); ?>" tabindex="3" /></td>
    117117</tr>
    118118</tbody>
     
    129129<?php do_meta_boxes('comment', 'normal', $comment); ?>
    130130
    131 <input type="hidden" name="c" value="<?php echo attr($comment->comment_ID) ?>" />
    132 <input type="hidden" name="p" value="<?php echo attr($comment->comment_post_ID) ?>" />
     131<input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" />
     132<input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" />
    133133<input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
    134134<?php wp_original_referer_field(true, 'previous'); ?>
Note: See TracChangeset for help on using the changeset viewer.