[wp-meta] [Making WordPress.org] #1353: Remove wp_title uses in wordpress.org themes
Making WordPress.org
noreply at wordpress.org
Mon Oct 26 19:41:52 UTC 2015
#1353: Remove wp_title uses in wordpress.org themes
----------------------+-------------------------------------
Reporter: atimmer | Owner:
Type: defect | Status: new
Priority: normal | Component: General
Resolution: | Keywords: needs-refresh has-patch
----------------------+-------------------------------------
Comment (by coffee2code):
In [changeset:"2010"]:
{{{
#!CommitTicketReference repository="" revision="2010"
developer.wordpress.org: Accommodate deprecation of `wp_title()`.
Note: Because the global W.org header requires the title to be passed via
`$GLOBALS['pagetitle']`, `add_theme_support( 'title-tag')` can't be used.
* Get title via `wp_get_document_title()` instead of `wp_title()`.
* Filter 'document_title_separator' to customize the title separator.
* Hook 'wporg_developer_wp_title' to filter 'document_title_parts' instead
of 'wp_title'.
* Update `wporg_developer_wp_title()` to account for new args being passed
to it.
* Omit 'Home' from title of home page.
Props coffee2code, BandonRandon.
See #1353.
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1353#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list