wphooks.info - the_title_rss

the_title_rss

(trunk - 5.1-alpha-44286)

The hook occurs in the following 4 files

wp-includes/feed-atom-comments.php:
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
	while ( have_comments() ) :
		the_comment();
		$comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
		?>
	<entry>
		<title>
		<?php
		if ( ! is_singular() ) {
			$title = get_the_title( $comment_post->ID );
			/** This filter is documented in wp-includes/feed.php */
			$title = apply_filters( 'the_title_rss', $title );
			/* translators: Individual comment title. 1: Post title, 2: Comment author name */
			printf( ent2ncr( __( 'Comment on %1$s by %2$s' ) ), $title, get_comment_author_rss() );
		} else {
			/* translators: Comment author title. %s: Comment author name */
			printf( ent2ncr( __( 'By: %s' ) ), get_comment_author_rss() );
		}
		?>
			</title>
			<link rel="alternate" href="<?php comment_link(); ?>" type="<?php bloginfo_rss( 'html_type' ); ?>" />
wp-includes/feed-rss2-comments.php:
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
		while ( have_comments() ) :
			the_comment();
			$comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
			?>
			<item>
				<title>
				<?php
				if ( ! is_singular() ) {
					$title = get_the_title( $comment_post->ID );
					/** This filter is documented in wp-includes/feed.php */
					$title = apply_filters( 'the_title_rss', $title );
					/* translators: Individual comment title. 1: Post title, 2: Comment author name */
					printf( ent2ncr( __( 'Comment on %1$s by %2$s' ) ), $title, get_comment_author_rss() );
				} else {
					/* translators: Comment author title. %s: Comment author name */
					printf( ent2ncr( __( 'By: %s' ) ), get_comment_author_rss() );
				}
				?>
				</title>
				<link><?php comment_link(); ?></link>
wp-includes/feed.php:
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
function get_the_title_rss() {
	$title = get_the_title();

	/**
	 * Filters the post title for use in a feed.
	 *
	 * @since 1.2.0
	 *
	 * @param string $title The current post title.
	 */
	$title = apply_filters( 'the_title_rss', $title );
	return $title;
}

/**
 * Display the post title in the feed.
 *
 * @since 0.71
 */
function the_title_rss() {
wp-admin/includes/export.php:
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
			// Begin Loop.
			foreach ( $posts as $post ) {
				setup_postdata( $post );
				$is_sticky = is_sticky( $post->ID ) ? 1 : 0;
				?>
	<item>
		<title>
				<?php
				/** This filter is documented in wp-includes/feed.php */
				echo apply_filters( 'the_title_rss', $post->post_title );
				?>
		</title>
		<link><?php the_permalink_rss(); ?></link>
		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
		<dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator>
		<guid isPermaLink="false"><?php the_guid(); ?></guid>
		<description></description>
		<content:encoded>
				<?php