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/edit.php

    r11180 r11204  
    9393    $mode = 'list';
    9494else
    95     $mode = attr($_GET['mode']); ?>
     95    $mode = esc_attr($_GET['mode']); ?>
    9696
    9797<div class="wrap">
     
    167167    <label class="invisible" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
    168168    <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
    169     <input type="submit" value="<?php _ea( 'Search Posts' ); ?>" class="button" />
     169    <input type="submit" value="<?php esc_attr_e( 'Search Posts' ); ?>" class="button" />
    170170</p>
    171171
    172172<?php if ( isset($_GET['post_status'] ) ) : ?>
    173 <input type="hidden" name="post_status" value="<?php echo attr($_GET['post_status']) ?>" />
     173<input type="hidden" name="post_status" value="<?php echo esc_attr($_GET['post_status']) ?>" />
    174174<?php endif; ?>
    175 <input type="hidden" name="mode" value="<?php echo attr($mode); ?>" />
     175<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
    176176
    177177<?php if ( have_posts() ) { ?>
     
    196196<option value="delete"><?php _e('Delete'); ?></option>
    197197</select>
    198 <input type="submit" value="<?php _ea('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     198<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    199199<?php wp_nonce_field('bulk-posts'); ?>
    200200
     
    223223        $default = '';
    224224
    225     echo "<option$default value='" . attr("$arc_row->yyear$arc_row->mmonth") . "'>";
     225    echo "<option$default value='" . esc_attr("$arc_row->yyear$arc_row->mmonth") . "'>";
    226226    echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";
    227227    echo "</option>\n";
     
    237237do_action('restrict_manage_posts');
    238238?>
    239 <input type="submit" id="post-query-submit" value="<?php _ea('Filter'); ?>" class="button-secondary" />
     239<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
    240240
    241241<?php } ?>
     
    276276<option value="delete"><?php _e('Delete'); ?></option>
    277277</select>
    278 <input type="submit" value="<?php _ea('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
     278<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    279279<br class="clear" />
    280280</div>
Note: See TracChangeset for help on using the changeset viewer.