Changeset 11204 for trunk/wp-includes/link-template.php
- Timestamp:
- 05/05/2009 07:43:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r11109 r11204 620 620 function get_search_feed_link($search_query = '', $feed = '') { 621 621 if ( empty($search_query) ) 622 $search = attr(get_search_query());622 $search = esc_attr(get_search_query()); 623 623 else 624 $search = attr(stripslashes($search_query));624 $search = esc_attr(stripslashes($search_query)); 625 625 626 626 if ( empty($feed) ) … … 645 645 function get_search_comments_feed_link($search_query = '', $feed = '') { 646 646 if ( empty($search_query) ) 647 $search = attr(get_search_query());647 $search = esc_attr(get_search_query()); 648 648 else 649 $search = attr(stripslashes($search_query));649 $search = esc_attr(stripslashes($search_query)); 650 650 651 651 if ( empty($feed) ) … … 731 731 } 732 732 733 $link = '<a class="post-edit-link" href="' . get_edit_post_link( $post->ID ) . '" title="' . attr( __( 'Edit post' ) ) . '">' . $link . '</a>';733 $link = '<a class="post-edit-link" href="' . get_edit_post_link( $post->ID ) . '" title="' . esc_attr( __( 'Edit post' ) ) . '">' . $link . '</a>'; 734 734 echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; 735 735 } … … 941 941 942 942 $link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='"; 943 $link .= attr( $title );943 $link .= esc_attr( $title ); 944 944 $link .= "' href='" . get_permalink($post) . "' />\n"; 945 945 … … 1065 1065 1066 1066 $link = $start ? "<link rel='start' title='" : "<link rel='end' title='"; 1067 $link .= attr($title);1067 $link .= esc_attr($title); 1068 1068 $link .= "' href='" . get_permalink($post) . "' />\n"; 1069 1069 … … 1093 1093 */ 1094 1094 function get_index_rel_link() { 1095 $link = "<link rel='index' title='" . attr(get_bloginfo('name')) . "' href='" . get_bloginfo('siteurl') . "' />\n";1095 $link = "<link rel='index' title='" . esc_attr(get_bloginfo('name')) . "' href='" . get_bloginfo('siteurl') . "' />\n"; 1096 1096 return apply_filters( "index_rel_link", $link ); 1097 1097 } … … 1128 1128 1129 1129 $link = "<link rel='up' title='"; 1130 $link .= attr( $title );1130 $link .= esc_attr( $title ); 1131 1131 $link .= "' href='" . get_permalink($post) . "' />\n"; 1132 1132
Note: See TracChangeset
for help on using the changeset viewer.