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/link-manager.php

    r11191 r11204  
    9191    <label class="invisible" for="link-search-input"><?php _e( 'Search Links' ); ?>:</label>
    9292    <input type="text" id="link-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    93     <input type="submit" value="<?php _ea( 'Search Links' ); ?>" class="button" />
     93    <input type="submit" value="<?php esc_attr_e( 'Search Links' ); ?>" class="button" />
    9494</p>
    9595</form>
     
    104104<option value="delete"><?php _e('Delete'); ?></option>
    105105</select>
    106 <input type="submit" value="<?php _ea('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
     106<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    107107
    108108<?php
     
    111111$select_cat .= '<option value="all"'  . (($cat_id == 'all') ? " selected='selected'" : '') . '>' . __('View all Categories') . "</option>\n";
    112112foreach ((array) $categories as $cat)
    113     $select_cat .= '<option value="' . attr($cat->term_id) . '"' . (($cat->term_id == $cat_id) ? " selected='selected'" : '') . '>' . sanitize_term_field('name', $cat->name, $cat->term_id, 'link_category', 'display') . "</option>\n";
     113    $select_cat .= '<option value="' . esc_attr($cat->term_id) . '"' . (($cat->term_id == $cat_id) ? " selected='selected'" : '') . '>' . sanitize_term_field('name', $cat->name, $cat->term_id, 'link_category', 'display') . "</option>\n";
    114114$select_cat .= "</select>\n";
    115115
     
    125125
    126126?>
    127 <input type="submit" id="post-query-submit" value="<?php _ea('Filter'); ?>" class="button-secondary" />
     127<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
    128128
    129129</div>
     
    166166    foreach ($links as $link) {
    167167        $link = sanitize_bookmark($link);
    168         $link->link_name = attr($link->link_name);
     168        $link->link_name = esc_attr($link->link_name);
    169169        $link->link_category = wp_get_link_cats($link->link_id);
    170170        $short_url = str_replace('http://', '', $link->link_url);
     
    191191            switch($column_name) {
    192192                case 'cb':
    193                     echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'. attr($link->link_id) .'" /></th>';
     193                    echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'. esc_attr($link->link_id) .'" /></th>';
    194194                    break;
    195195                case 'name':
    196196
    197                     echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit &#8220;%s&#8221;'), $link->link_name)) . "'>$link->link_name</a></strong><br />";
     197                    echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $link->link_name)) . "'>$link->link_name</a></strong><br />";
    198198                    $actions = array();
    199199                    $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
     
    262262<option value="delete"><?php _e('Delete'); ?></option>
    263263</select>
    264 <input type="submit" value="<?php _ea('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
     264<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
    265265</div>
    266266
Note: See TracChangeset for help on using the changeset viewer.