WordPress.org

Making WordPress.org


Ignore:
Timestamp:
10/26/2015 07:41:51 PM (6 years ago)
Author:
coffee2code
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.