Themes: Improve document title output.

Introduces more flexibility in filtering all parts of the document title,the
separator, and a way to short-circuit title generation. Plugins can now also
check for theme support and reliably filter the entire output. See #18548.
Deprecates `wp_title()`.

Fixes #31078.



git-svn-id: https://develop.svn.wordpress.org/trunk@35294 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland
2015-10-20 16:20:04 +00:00
parent 1940317385
commit d625bd2428
12 changed files with 557 additions and 229 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ do_action( 'rss_tag_pre', 'atom' );
do_action( 'atom_ns' );
?>
>
<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
<title type="text"><?php wp_title_rss(); ?></title>
<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated>