Changeset 11204 for trunk/wp-includes/post-template.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r11173 r11204 64 64 * 65 65 * The title before it is displayed will have the tags stripped and {@link 66 * attr()} before it is passed to the user or displayed. The default66 * esc_attr()} before it is passed to the user or displayed. The default 67 67 * as with {@link the_title()}, is to display the title. 68 68 * … … 84 84 85 85 $title = $before . $title . $after; 86 $title = attr(strip_tags($title));86 $title = esc_attr(strip_tags($title)); 87 87 88 88 if ( $echo ) … … 708 708 $output .= "\t<option value=\"-1\">$show_option_no_change</option>"; 709 709 if ( $show_option_none ) 710 $output .= "\t<option value=\"" . attr($option_none_value) . "\">$show_option_none</option>\n";710 $output .= "\t<option value=\"" . esc_attr($option_none_value) . "\">$show_option_none</option>\n"; 711 711 $output .= walk_page_dropdown_tree($pages, $depth, $r); 712 712 $output .= "</select>\n"; … … 928 928 $url = get_attachment_link($_post->ID); 929 929 930 $post_title = attr($_post->post_title);930 $post_title = esc_attr($_post->post_title); 931 931 932 932 if ( $text ) { 933 $link_text = attr($text);933 $link_text = esc_attr($text); 934 934 } elseif ( ( is_int($size) && $size != 0 ) or ( is_string($size) && $size != 'none' ) or $size != false ) { 935 935 $link_text = wp_get_attachment_image($id, $size, $icon); … … 965 965 $url = get_attachment_link($_post->ID); 966 966 967 $post_title = attr($_post->post_title);967 $post_title = esc_attr($_post->post_title); 968 968 969 969 $innerHTML = get_attachment_innerHTML($_post->ID, $fullsize, $max_dims); … … 1061 1061 } 1062 1062 1063 $post_title = attr($post->post_title);1063 $post_title = esc_attr($post->post_title); 1064 1064 1065 1065 $icon = "<img src='$src' title='$post_title' alt='$post_title' $constraint/>"; … … 1089 1089 1090 1090 1091 $innerHTML = attr($post->post_title);1091 $innerHTML = esc_attr($post->post_title); 1092 1092 1093 1093 return apply_filters('attachment_innerHTML', $innerHTML, $post->ID); … … 1135 1135 $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> 1136 1136 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 1137 <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . _a("Submit") . '" /></p>1137 <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p> 1138 1138 </form> 1139 1139 '; … … 1317 1317 <div class="tablenav"> 1318 1318 <div class="alignleft"> 1319 <input type="submit" class="button-secondary" value="<?php _ea( 'Compare Revisions' ); ?>" />1319 <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" /> 1320 1320 <input type="hidden" name="action" value="diff" /> 1321 1321 </div>
Note: See TracChangeset
for help on using the changeset viewer.