Changeset 5752
- Timestamp:
- 06/25/2007 05:48:35 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r5676 r5752 50 50 if ( $comments ) { 51 51 foreach ($comments as $comment) { 52 echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . apply_filters('the_title', get_the_title($comment->comment_post_ID)) . '</a>');52 echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>'); 53 53 edit_comment_link(__("Edit"), ' <small>(', ')</small>'); 54 54 echo '</li>'; -
trunk/wp-includes/comment-template.php
r5708 r5752 365 365 echo ' class="'.$CSSclass.'"'; 366 366 } 367 $title = attribute_escape( apply_filters('the_title', get_the_title()));367 $title = attribute_escape(get_the_title()); 368 368 echo ' title="' . sprintf( __('Comment on %s'), $title ) .'">'; 369 369 comments_number($zero, $one, $more, $number); -
trunk/wp-includes/feed-atom-comments.php
r5617 r5752 34 34 if ( !is_singular() ) { 35 35 $title = get_the_title($comment_post->ID); 36 $title = apply_filters('the_title', $title);37 36 $title = apply_filters('the_title_rss', $title); 38 37 printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); -
trunk/wp-includes/feed-rss2-comments.php
r5640 r5752 30 30 if ( !is_singular() ) { 31 31 $title = get_the_title($comment_post->ID); 32 $title = apply_filters('the_title', $title);33 32 $title = apply_filters('the_title_rss', $title); 34 33 printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); -
trunk/wp-includes/feed.php
r5548 r5752 23 23 function get_the_title_rss() { 24 24 $title = get_the_title(); 25 $title = apply_filters('the_title', $title);26 25 $title = apply_filters('the_title_rss', $title); 27 26 return $title; -
trunk/wp-includes/post-template.php
r5708 r5752 19 19 function the_title($before = '', $after = '', $echo = true) { 20 20 $title = get_the_title(); 21 if ( strlen($title) > 0 ) { 22 $title = apply_filters('the_title', $before . $title . $after, $before, $after); 23 if ( $echo ) 24 echo $title; 25 else 26 return $title; 27 } 28 } 29 30 31 function get_the_title($id = 0) { 21 22 if ( strlen($title) <= 0 ) 23 return; 24 25 $title = $before . $title . $after; 26 27 if ( $echo ) 28 echo $title; 29 else 30 return $title; 31 } 32 33 34 function get_the_title( $id = 0 ) { 32 35 $post = &get_post($id); 33 36 … … 38 41 $title = sprintf(__('Private: %s'), $title); 39 42 40 return $title;43 return apply_filters( 'the_title', $title ); 41 44 } 42 45
Note: See TracChangeset
for help on using the changeset viewer.