Changeset 11204 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r11180 r11204 163 163 <option value="tag"<?php selected('tag', $type) ?>><?php _x('Tag', 'Plugin Installer') ?></option> 164 164 </select> 165 <input type="text" name="s" value="<?php echo attr($term) ?>" />165 <input type="text" name="s" value="<?php echo esc_attr($term) ?>" /> 166 166 <label class="invisible" for="plugin-search-input"><?php _e('Search Plugins'); ?></label> 167 <input type="submit" id="plugin-search-input" name="search" value="<?php _ea('Search Plugins') ?>" class="button" />167 <input type="submit" id="plugin-search-input" name="search" value="<?php esc_attr_e('Search Plugins') ?>" class="button" /> 168 168 </form><?php 169 169 } … … 214 214 <label class="invisible" for="pluginzip"><?php _e('Plugin zip file'); ?></label> 215 215 <input type="file" id="pluginzip" name="pluginzip" /> 216 <input type="submit" class="button" value="<?php _ea('Install Now') ?>" />216 <input type="submit" class="button" value="<?php esc_attr_e('Install Now') ?>" /> 217 217 </form> 218 218 <?php … … 337 337 338 338 if( isset($plugin['homepage']) ) 339 $title = '<a target="_blank" href="' . attr($plugin['homepage']) . '">' . $title . '</a>';339 $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>'; 340 340 341 341 $action_links = array(); 342 342 $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . 343 343 '&TB_iframe=true&width=600&height=800') . '" class="thickbox onclick" title="' . 344 attr($name) . '">' . __('Install') . '</a>';344 esc_attr($name) . '">' . __('Install') . '</a>'; 345 345 346 346 $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin); … … 351 351 <td class="vers"> 352 352 <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'])) ?>"> 353 <div class="star star-rating" style="width: <?php echo attr($plugin['rating']) ?>px"></div>353 <div class="star star-rating" style="width: <?php echo esc_attr($plugin['rating']) ?>px"></div> 354 354 <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> 355 355 <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div> … … 419 419 $href = add_query_arg( array('tab' => $tab, 'section' => $section_name) ); 420 420 $href = clean_url($href); 421 $san_title = attr(sanitize_title_with_dashes($title));421 $san_title = esc_attr(sanitize_title_with_dashes($title)); 422 422 echo "\t<li><a name='$san_title' target='' href='$href'$class>$title</a></li>\n"; 423 423 } … … 508 508 <h2><?php _e('Average Rating') ?></h2> 509 509 <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)); ?>"> 510 <div class="star star-rating" style="width: <?php echo attr($api->rating) ?>px"></div>510 <div class="star star-rating" style="width: <?php echo esc_attr($api->rating) ?>px"></div> 511 511 <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> 512 512 <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div> … … 533 533 $content = links_add_target($content, '_blank'); 534 534 535 $san_title = attr(sanitize_title_with_dashes($title));535 $san_title = esc_attr(sanitize_title_with_dashes($title)); 536 536 537 537 $display = ( $section_name == $section ) ? 'block' : 'none';
Note: See TracChangeset
for help on using the changeset viewer.