From b789c4c82012a23d03d5ce30de920adba4cf3e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E8=B7=AF=E5=90=91=E5=8C=97?= Date: Sun, 24 May 2026 23:28:13 +0800 Subject: [PATCH] Invert condition for title-tag support check There are two title tag when I add add_theme_support('title-tag'); --- src/wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 34233c35b0cc3..2b9898610e3ef 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -1308,7 +1308,7 @@ function wp_get_document_title() { * @access private */ function _wp_render_title_tag() { - if ( ! current_theme_supports( 'title-tag' ) ) { + if ( current_theme_supports( 'title-tag' ) ) { return; }