Make WordPress Core


Ignore:
Timestamp:
05/04/2009 05:54:08 PM (16 years ago)
Author:
ryan
Message:

Attr escaping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/mt.php

    r11109 r11173  
    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 echo attr(__('Import mt-export.txt')); ?>" />
     49<input type="submit" class="button" value="<?php _ea('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="'.$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="'. 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="'.__('Submit').'"></p>'.'<br />';
     215        echo '<p class="submit"><input type="submit" class="button" value="'._a('Submit').'"></p>'.'<br />';
    216216        echo '</form>';
    217217        echo '</ol></div>';
Note: See TracChangeset for help on using the changeset viewer.