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/update-core.php

    r11110 r11204  
    4141    wp_nonce_field('upgrade-core');
    4242    echo '<p>';
    43     echo '<input id="upgrade" class="button" type="submit" value="' . attr($submit) . '" name="upgrade" />&nbsp;';
    44     echo '<input name="version" value="'. attr($update->current) .'" type="hidden"/>';
    45     echo '<input name="locale" value="'. attr($update->locale) .'" type="hidden"/>';
     43    echo '<input id="upgrade" class="button" type="submit" value="' . esc_attr($submit) . '" name="upgrade" />&nbsp;';
     44    echo '<input name="version" value="'. esc_attr($update->current) .'" type="hidden"/>';
     45    echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>';
    4646    echo '<a href="' . clean_url($update->package) . '" class="button">' . $download . '</a>&nbsp;';
    4747    if ( 'en_US' != $update->locale )
    4848        if ( !isset( $update->dismissed ) || !$update->dismissed )
    49             echo '<input id="dismiss" class="button" type="submit" value="' . _a('Hide this update') . '" name="dismiss" />';
     49            echo '<input id="dismiss" class="button" type="submit" value="' . esc_attr__('Hide this update') . '" name="dismiss" />';
    5050        else
    51             echo '<input id="undismiss" class="button" type="submit" value="' . _a('Bring back this update') . '" name="undismiss" />';
     51            echo '<input id="undismiss" class="button" type="submit" value="' . esc_attr__('Bring back this update') . '" name="undismiss" />';
    5252    echo '</p>';
    5353    echo '</form>';
Note: See TracChangeset for help on using the changeset viewer.