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/includes/widgets.php

    r11177 r11204  
    184184        echo "\t\t<p>" . __('There are no options for this widget.') . "</p>\n"; ?>
    185185
    186     <input type="hidden" name="widget-id" class="widget-id" value="<?php echo attr($id_format); ?>" />
    187     <input type="hidden" name="id_base" class="id_base" value="<?php echo attr($id_base); ?>" />
    188     <input type="hidden" name="widget-width" class="widget-width" value="<?php echo attr($control['width']); ?>" />
    189     <input type="hidden" name="widget-height" class="widget-height" value="<?php echo attr($control['height']); ?>" />
    190     <input type="hidden" name="widget_number" class="widget_number" value="<?php echo attr($widget_number); ?>" />
    191     <input type="hidden" name="multi_number" class="multi_number" value="<?php echo attr($multi_number); ?>" />
    192     <input type="hidden" name="add_new" class="add_new" value="<?php echo attr($add_new); ?>" />
     186    <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($id_format); ?>" />
     187    <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr($id_base); ?>" />
     188    <input type="hidden" name="widget-width" class="widget-width" value="<?php echo esc_attr($control['width']); ?>" />
     189    <input type="hidden" name="widget-height" class="widget-height" value="<?php echo esc_attr($control['height']); ?>" />
     190    <input type="hidden" name="widget_number" class="widget_number" value="<?php echo esc_attr($widget_number); ?>" />
     191    <input type="hidden" name="multi_number" class="multi_number" value="<?php echo esc_attr($multi_number); ?>" />
     192    <input type="hidden" name="add_new" class="add_new" value="<?php echo esc_attr($add_new); ?>" />
    193193
    194194    <div class="widget-control-actions">
    195195        <a class="button widget-control-remove alignleft" href="<?php echo $edit ? clean_url( add_query_arg( array( 'remove' => $id_format, 'key' => $key, '_wpnonce' => $nonce ) ) ) : '#remove'; ?>"><?php _e('Remove'); ?></a>
    196196<?php       if ( 'noform' !== $has_form ) { ?>
    197         <input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php _ea('Save'); ?>" />
     197        <input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php esc_attr_e('Save'); ?>" />
    198198<?php       } ?>
    199199        <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.