Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (15 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme-install.php

    r11013 r11109  
    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 attribute_escape($term) ?>" />
    162     <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')); ?>" class="button" />
     161    <input type="text" name="s" size="30" value="<?php echo attr($term) ?>" />
     162    <input type="submit" name="search" value="<?php echo attr(__('Search')); ?>" class="button" />
    163163</form>
    164164<?php
     
    203203                $feature_name = $trans[$feature];
    204204            $feature_name = wp_specialchars( $feature_name );
    205             $feature = attribute_escape($feature);
     205            $feature = attr($feature);
    206206?>
    207207
     
    219219</div>
    220220<br class="clear" />
    221 <input type="submit" name="search" value="<?php echo attribute_escape(__('Find Themes')); ?>" class="button" />
     221<input type="submit" name="search" value="<?php echo attr(__('Find Themes')); ?>" class="button" />
    222222</form>
    223223<?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="' . attribute_escape(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>';
    305         $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attribute_escape(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>';
     304                                        '&amp;TB_iframe=true&amp;tbWidth=500&amp;tbHeight=350') . '" class="thickbox thickbox-preview onclick" title="' . attr(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>';
     305        $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attr(sprintf(__('Preview "%s"'), $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 attribute_escape(sprintf(__('Preview "%s"'), $name)); ?>'>
     313    title='<?php echo attr(sprintf(__('Preview "%s"'), $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 attribute_escape($theme->rating) ?>px"></div>
     334    <div class="star star-rating" style="width: <?php echo 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.