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/custom-header.php

    r11109 r11204  
    285285<?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?>
    286286<form method="post" action="<?php echo admin_url('themes.php?page=custom-header&amp;updated=true') ?>">
    287 <input type="button" class="button" value="<?php _ea('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
    288 <input type="button" class="button" value="<?php _ea('Select a Text Color'); ?>" id="pickcolor" /><input type="button" class="button" value="<?php _ea('Use Original Color'); ?>" onclick="colorDefault()" id="defaultcolor" />
     287<input type="button" class="button" value="<?php esc_attr_e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
     288<input type="button" class="button" value="<?php esc_attr_e('Select a Text Color'); ?>" id="pickcolor" /><input type="button" class="button" value="<?php esc_attr_e('Use Original Color'); ?>" onclick="colorDefault()" id="defaultcolor" />
    289289<?php wp_nonce_field('custom-header') ?>
    290 <input type="hidden" name="textcolor" id="textcolor" value="#<?php attr(header_textcolor()) ?>" /><input name="submit" type="submit" class="button" value="<?php _ea('Save Changes'); ?>" /></form>
     290<input type="hidden" name="textcolor" id="textcolor" value="#<?php esc_attr(header_textcolor()) ?>" /><input name="submit" type="submit" class="button" value="<?php esc_attr_e('Save Changes'); ?>" /></form>
    291291<?php } ?>
    292292
     
    297297<p><?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
    298298
    299 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo attr(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
     299<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
    300300<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    301301<input type="hidden" name="action" value="save" />
    302302<?php wp_nonce_field('custom-header') ?>
    303303<p class="submit">
    304 <input type="submit" value="<?php _ea('Upload'); ?>" />
     304<input type="submit" value="<?php esc_attr_e('Upload'); ?>" />
    305305</p>
    306306</form>
     
    312312<h2><?php _e('Reset Header Image and Color'); ?></h2>
    313313<p><?php _e('This will restore the original header image and color. You will not be able to retrieve any customizations.') ?></p>
    314 <form method="post" action="<?php echo attr(add_query_arg('step', 1)) ?>">
     314<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
    315315<?php wp_nonce_field('custom-header'); ?>
    316 <input type="submit" class="button" name="resetheader" value="<?php _ea('Restore Original Header'); ?>" />
     316<input type="submit" class="button" name="resetheader" value="<?php esc_attr_e('Restore Original Header'); ?>" />
    317317</form>
    318318</div>
     
    373373<div class="wrap">
    374374
    375 <form method="POST" action="<?php echo attr(add_query_arg('step', 3)) ?>">
     375<form method="POST" action="<?php echo esc_attr(add_query_arg('step', 3)) ?>">
    376376
    377377<p><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
     
    387387<input type="hidden" name="width" id="width" />
    388388<input type="hidden" name="height" id="height" />
    389 <input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo attr($id); ?>" />
    390 <input type="hidden" name="oitar" id="oitar" value="<?php echo attr($oitar); ?>" />
     389<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr($id); ?>" />
     390<input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr($oitar); ?>" />
    391391<?php wp_nonce_field('custom-header') ?>
    392 <input type="submit" value="<?php _ea('Crop Header'); ?>" />
     392<input type="submit" value="<?php esc_attr_e('Crop Header'); ?>" />
    393393</p>
    394394
Note: See TracChangeset for help on using the changeset viewer.