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/import/mt.php

    r11190 r11204  
    4040
    4141<?php wp_import_upload_form( add_query_arg('step', 1) ); ?>
    42 <form method="post" action="<?php echo attr(add_query_arg('step', 1)); ?>" class="import-upload-form">
     42<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)); ?>" class="import-upload-form">
    4343
    4444<?php wp_nonce_field('import-upload'); ?>
     
    4747<?php _e('Or use <code>mt-export.txt</code> in your <code>/wp-content/</code> directory'); ?></p>
    4848<p class="submit">
    49 <input type="submit" class="button" value="<?php _ea('Import mt-export.txt'); ?>" />
     49<input type="submit" class="button" value="<?php esc_attr_e('Import mt-export.txt'); ?>" />
    5050</p>
    5151</form>
     
    208208        foreach ($authors as $author) {
    209209            ++ $j;
    210             echo '<li><label>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'. attr($author) .'" name="'.'user[]'.'" maxlength="30"> <br />');
     210            echo '<li><label>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'. esc_attr($author) .'" name="'.'user[]'.'" maxlength="30"> <br />');
    211211            $this->users_form($j);
    212212            echo '</label></li>';
    213213        }
    214214
    215         echo '<p class="submit"><input type="submit" class="button" value="'._a('Submit').'"></p>'.'<br />';
     215        echo '<p class="submit"><input type="submit" class="button" value="'.esc_attr__('Submit').'"></p>'.'<br />';
    216216        echo '</form>';
    217217        echo '</ol></div>';
Note: See TracChangeset for help on using the changeset viewer.