Changeset 4656 for trunk/wp-includes/general-template.php
- Timestamp:
- 12/21/2006 10:10:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r4636 r4656 280 280 function get_archives_link($url, $text, $format = 'html', $before = '', $after = '') { 281 281 $text = wptexturize($text); 282 $title_text = wp_specialchars($text, 1);282 $title_text = attribute_escape($text); 283 283 284 284 if ('link' == $format) … … 902 902 function the_search_query() { 903 903 global $s; 904 echo wp_specialchars( stripslashes($s), 1);904 echo attribute_escape( stripslashes($s)); 905 905 } 906 906 … … 957 957 if ( $add_args ) 958 958 $link = add_query_arg( $add_args, $link ); 959 $page_links[] = "<a class='prev page-numbers' href='" . wp_specialchars( $link, 1) . "'>$prev_text</a>";959 $page_links[] = "<a class='prev page-numbers' href='" . attribute_escape( $link) . "'>$prev_text</a>"; 960 960 endif; 961 961 for ( $n = 1; $n <= $total; $n++ ) : … … 969 969 if ( $add_args ) 970 970 $link = add_query_arg( $add_args, $link ); 971 $page_links[] = "<a class='page-numbers' href='" . wp_specialchars( $link, 1) . "'>$n</a>";971 $page_links[] = "<a class='page-numbers' href='" . attribute_escape( $link) . "'>$n</a>"; 972 972 $dots = true; 973 973 elseif ( $dots && !$show_all ) : … … 982 982 if ( $add_args ) 983 983 $link = add_query_arg( $add_args, $link ); 984 $page_links[] = "<a class='next page-numbers' href='" . wp_specialchars( $link, 1) . "'>$next_text</a>";984 $page_links[] = "<a class='next page-numbers' href='" . attribute_escape( $link) . "'>$next_text</a>"; 985 985 endif; 986 986 switch ( $type ) :
Note: See TracChangeset
for help on using the changeset viewer.