Make WordPress Core


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

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

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

    r11013 r11109  
    163163                        <option value="tag"<?php selected('tag', $type) ?>><?php _x('Tag', 'Plugin Installer') ?></option>
    164164                </select>
    165                 <input type="text" name="s" value="<?php echo attribute_escape($term) ?>" />
    166                 <input type="submit" name="search" value="<?php echo attribute_escape(__('Search')) ?>" class="button" />
     165                <input type="text" name="s" value="<?php echo attr($term) ?>" />
     166                <input type="submit" name="search" value="<?php echo attr(__('Search')) ?>" class="button" />
    167167        </form><?php
    168168}
     
    335335
    336336                                if( isset($plugin['homepage']) )
    337                                         $title = '<a target="_blank" href="' . attribute_escape($plugin['homepage']) . '">' . $title . '</a>';
     337                                        $title = '<a target="_blank" href="' . attr($plugin['homepage']) . '">' . $title . '</a>';
    338338
    339339                                $action_links = array();
    340340                                $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
    341341                                                                        '&amp;TB_iframe=true&amp;width=600&amp;height=800') . '" class="thickbox onclick" title="' .
    342                                                                         attribute_escape($name) . '">' . __('Install') . '</a>';
     342                                                                        attr($name) . '">' . __('Install') . '</a>';
    343343
    344344                                $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin);
     
    349349                                <td class="vers">
    350350                                        <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>">
    351                                                 <div class="star star-rating" style="width: <?php echo attribute_escape($plugin['rating']) ?>px"></div>
     351                                                <div class="star star-rating" style="width: <?php echo attr($plugin['rating']) ?>px"></div>
    352352                                                <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div>
    353353                                                <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div>
     
    417417                $href = add_query_arg( array('tab' => $tab, 'section' => $section_name) );
    418418                $href = clean_url($href);
    419                 $san_title = attribute_escape(sanitize_title_with_dashes($title));
     419                $san_title = attr(sanitize_title_with_dashes($title));
    420420                echo "\t<li><a name='$san_title' target='' href='$href'$class>$title</a></li>\n";
    421421        }
     
    506506                <h2><?php _e('Average Rating') ?></h2>
    507507                <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>">
    508                         <div class="star star-rating" style="width: <?php echo attribute_escape($api->rating) ?>px"></div>
     508                        <div class="star star-rating" style="width: <?php echo attr($api->rating) ?>px"></div>
    509509                        <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div>
    510510                        <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div>
     
    531531                        $content = links_add_target($content, '_blank');
    532532
    533                         $san_title = attribute_escape(sanitize_title_with_dashes($title));
     533                        $san_title = attr(sanitize_title_with_dashes($title));
    534534
    535535                        $display = ( $section_name == $section ) ? 'block' : 'none';
Note: See TracChangeset for help on using the changeset viewer.