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/theme-install.php

    r11190 r11204  
    159159    <option value="tag" <?php selected('tag', $type) ?>><?php _e('Tag'); ?></option>
    160160    </select>
    161     <input type="text" name="s" size="30" value="<?php echo attr($term) ?>" />
    162     <input type="submit" name="search" value="<?php _ea('Search'); ?>" class="button" />
     161    <input type="text" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
     162    <input type="submit" name="search" value="<?php esc_attr_e('Search'); ?>" class="button" />
    163163</form>
    164164<?php
     
    203203                $feature_name = $trans[$feature];
    204204            $feature_name = wp_specialchars( $feature_name );
    205             $feature = attr($feature);
     205            $feature = esc_attr($feature);
    206206?>
    207207
     
    219219</div>
    220220<br class="clear" />
    221 <input type="submit" name="search" value="<?php _ea('Find Themes'); ?>" class="button" />
     221<input type="submit" name="search" value="<?php esc_attr_e('Find Themes'); ?>" class="button" />
    222222</form>
    223223<?php
     
    282282    <input type="file" name="themezip" />
    283283    <input type="submit"
    284     class="button" value="<?php _ea('Install Now') ?>" />
     284    class="button" value="<?php esc_attr_e('Install Now') ?>" />
    285285</form>
    286286    <?php
     
    302302        $actions = array();
    303303        $actions[] = '<a href="' . admin_url('theme-install.php?tab=theme-information&amp;theme=' . $theme->slug .
    304                                         '&amp;TB_iframe=true&amp;tbWidth=500&amp;tbHeight=350') . '" class="thickbox thickbox-preview onclick" title="' . attr(sprintf(__('Install &#8220;%s&#8221;'), $name)) . '">' . __('Install') . '</a>';
    305         $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>';
     304                                        '&amp;TB_iframe=true&amp;tbWidth=500&amp;tbHeight=350') . '" class="thickbox thickbox-preview onclick" title="' . esc_attr(sprintf(__('Install &#8220;%s&#8221;'), $name)) . '">' . __('Install') . '</a>';
     305        $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>';
    306306        $actions = apply_filters('theme_install_action_links', $actions, $theme);
    307307    }
     
    311311<a class='thickbox thickbox-preview screenshot'
    312312    href='<? echo clean_url($preview_link); ?>'
    313     title='<?php echo attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)); ?>'>
     313    title='<?php echo esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)); ?>'>
    314314<img src='<?php echo clean_url($theme->screenshot_url); ?>' width='150' />
    315315</a>
     
    332332<?php endif; ?>
    333333<div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $theme->num_ratings), number_format_i18n($theme->num_ratings)) ?>">
    334     <div class="star star-rating" style="width: <?php echo attr($theme->rating) ?>px"></div>
     334    <div class="star star-rating" style="width: <?php echo esc_attr($theme->rating) ?>px"></div>
    335335    <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div>
    336336    <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div>
Note: See TracChangeset for help on using the changeset viewer.