Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #61555


Ignore:
Timestamp:
07/03/2024 02:12:32 PM (12 months ago)
Author:
sabernhardt
Comment:

[35624] purposely un-deprecated wp_title(), and the oldest five bundled themes still use it. Block themes should not need either wp_title() or add_theme_support( 'title-tag' ), though they still have a bug with network signup and activation pages (#55023).

Of course, the documentation can be corrected and improved. The Codex is severely outdated overall but not yet fully replaced. I could remove the wp_title mentions in the Theme Development Codex page, but that probably should link to the Title Tag page while it remains available there. Or at least I could remove the "See why" link to a missing note that was deleted even before redirecting the page in 2015.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61555

    • Property Keywords needs-patch removed
    • Property Version changed from trunk to
    • Property Type changed from defect (bug) to enhancement
  • Ticket #61555 – Description

    initial v1  
    1 The function wp_title() simply never considers is_front_page to be true, and as such is broken.
     1The function `wp_title()` simply never considers `is_front_page` to be true, and as such is broken.
    22
    3 ''Legacy themes for example use wp_title'', see https://core.trac.wordpress.org/ticket/57778, and the codex itself still says you must use it https://codex.wordpress.org/Theme_Development, **although I know that is not true anymore, in fact nowadays you must use add_theme_support instead.**
     3''Legacy themes for example use wp_title'', see #57778, and the [https://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29 Codex itself still says you must use it], **although I know that is not true anymore, in fact nowadays you must use `add_theme_support` instead.**
    44
    55---