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-admin/comment.php

    r11104 r11204  
    9191<table width="100%">
    9292<tr>
    93 <td><input type='button' class="button" value='<?php _ea('No'); ?>' onclick="self.location='<?php echo admin_url('edit-comments.php'); ?>" /></td>
    94 <td class="textright"><input type='submit' class="button" value='<?php echo attr($button); ?>' /></td>
     93<td><input type='button' class="button" value='<?php esc_attr_e('No'); ?>' onclick="self.location='<?php echo admin_url('edit-comments.php'); ?>" /></td>
     94<td class="textright"><input type='submit' class="button" value='<?php echo esc_attr($button); ?>' /></td>
    9595</tr>
    9696</table>
    9797
    9898<?php wp_nonce_field( $nonce_action ); ?>
    99 <input type='hidden' name='action' value='<?php echo attr($formaction); ?>' />
     99<input type='hidden' name='action' value='<?php echo esc_attr($formaction); ?>' />
    100100<?php if ( 'spam' == $_GET['dt'] ) { ?>
    101101<input type='hidden' name='dt' value='spam' />
    102102<?php } ?>
    103 <input type='hidden' name='p' value='<?php echo attr($comment->comment_post_ID); ?>' />
    104 <input type='hidden' name='c' value='<?php echo attr($comment->comment_ID); ?>' />
     103<input type='hidden' name='p' value='<?php echo esc_attr($comment->comment_post_ID); ?>' />
     104<input type='hidden' name='c' value='<?php echo esc_attr($comment->comment_ID); ?>' />
    105105<input type='hidden' name='noredir' value='1' />
    106106</form>
Note: See TracChangeset for help on using the changeset viewer.