diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-22 12:54:24 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-22 12:54:24 +0000 |
| commit | 4fb300c67a3442cd0209a6129d53f0f727b60743 (patch) | |
| tree | a190684f113f031dbbac1d0bf09a1202251e3524 /wp-includes/post-template.php | |
| parent | 866b3a1b844041e6128e7e3c22710b49e72b99ec (diff) | |
| download | wordpress-mu-4fb300c67a3442cd0209a6129d53f0f727b60743.tar.gz wordpress-mu-4fb300c67a3442cd0209a6129d53f0f727b60743.tar.xz wordpress-mu-4fb300c67a3442cd0209a6129d53f0f727b60743.zip | |
WP Merge to rev 4661
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@828 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/post-template.php')
| -rw-r--r-- | wp-includes/post-template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index e1d83c5..101c9b6 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -334,7 +334,7 @@ function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false) if ( ('attachment' != $_post->post_type) || ('' == $_post->guid) ) return __('Missing Attachment'); - $post_title = wp_specialchars( $_post->post_title, 1 ); + $post_title = attribute_escape($_post->post_title); if (! empty($_post->guid) ) { $innerHTML = get_attachment_innerHTML($_post->ID, $fullsize, $max_dims); @@ -420,7 +420,7 @@ function get_attachment_icon($id = 0, $fullsize = false, $max_dims = false) { } } - $post_title = wp_specialchars( $post->post_title, 1 ); + $post_title = attribute_escape($post->post_title); $icon = "<img src='$src' title='$post_title' alt='$post_title' $constraint/>"; @@ -435,7 +435,7 @@ function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) $post = & get_post($id); - $innerHTML = wp_specialchars( $post->post_title, 1 ); + $innerHTML = attribute_escape($post->post_title); return apply_filters('attachment_innerHTML', $innerHTML, $post->ID); } |
