Changeset 11204 for trunk/wp-admin/custom-header.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r11109 r11204 285 285 <?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?> 286 286 <form method="post" action="<?php echo admin_url('themes.php?page=custom-header&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" /> 289 289 <?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> 291 291 <?php } ?> 292 292 … … 297 297 <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> 298 298 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%;"> 300 300 <label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" /> 301 301 <input type="hidden" name="action" value="save" /> 302 302 <?php wp_nonce_field('custom-header') ?> 303 303 <p class="submit"> 304 <input type="submit" value="<?php _ea('Upload'); ?>" />304 <input type="submit" value="<?php esc_attr_e('Upload'); ?>" /> 305 305 </p> 306 306 </form> … … 312 312 <h2><?php _e('Reset Header Image and Color'); ?></h2> 313 313 <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)) ?>"> 315 315 <?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'); ?>" /> 317 317 </form> 318 318 </div> … … 373 373 <div class="wrap"> 374 374 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)) ?>"> 376 376 377 377 <p><?php _e('Choose the part of the image you want to use as your header.'); ?></p> … … 387 387 <input type="hidden" name="width" id="width" /> 388 388 <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); ?>" /> 391 391 <?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'); ?>" /> 393 393 </p> 394 394
Note: See TracChangeset
for help on using the changeset viewer.