@@ 100-116 (lines=17) @@ | ||
97 | * @param string $deprecated Unused.. |
|
98 | * @return string The document title. |
|
99 | */ |
|
100 | function get_wp_title_rss( $deprecated = '–' ) { |
|
101 | if ( '–' !== $deprecated ) { |
|
102 | /* translators: %s: 'document_title_separator' filter name */ |
|
103 | _deprecated_argument( __FUNCTION__, '4.4.0', sprintf( __( 'Use the %s filter instead.' ), '<code>document_title_separator</code>' ) ); |
|
104 | } |
|
105 | ||
106 | /** |
|
107 | * Filters the blog title for use as the feed title. |
|
108 | * |
|
109 | * @since 2.2.0 |
|
110 | * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`. |
|
111 | * |
|
112 | * @param string $title The current blog title. |
|
113 | * @param string $deprecated Unused. |
|
114 | */ |
|
115 | return apply_filters( 'get_wp_title_rss', wp_get_document_title(), $deprecated ); |
|
116 | } |
|
117 | ||
118 | /** |
|
119 | * Display the blog title for display of the feed title. |
|
@@ 126-144 (lines=19) @@ | ||
123 | * |
|
124 | * @param string $deprecated Unused. |
|
125 | */ |
|
126 | function wp_title_rss( $deprecated = '–' ) { |
|
127 | if ( '–' !== $deprecated ) { |
|
128 | /* translators: %s: 'document_title_separator' filter name */ |
|
129 | _deprecated_argument( __FUNCTION__, '4.4.0', sprintf( __( 'Use the %s filter instead.' ), '<code>document_title_separator</code>' ) ); |
|
130 | } |
|
131 | ||
132 | /** |
|
133 | * Filters the blog title for display of the feed title. |
|
134 | * |
|
135 | * @since 2.2.0 |
|
136 | * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`. |
|
137 | * |
|
138 | * @see get_wp_title_rss() |
|
139 | * |
|
140 | * @param string $wp_title_rss The current blog title. |
|
141 | * @param string $deprecated Unused. |
|
142 | */ |
|
143 | echo apply_filters( 'wp_title_rss', get_wp_title_rss(), $deprecated ); |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * Retrieve the current post title for the feed. |