From 30132d547ebb9bb219ce297c128471fb3301eed4 Mon Sep 17 00:00:00 2001 From: Huzaifa Al Mesbah Date: Wed, 14 Jan 2026 21:42:33 +0600 Subject: [PATCH 1/2] Twenty Nineteen: Enhance get_the_archive_title filter flexibility. Changes the priority of the default get_the_archive_title filter in Twenty Nineteen from 10 to 1. This allows plugins and child themes to override the title using the default priority of 10, instead of requiring a higher priority. Props mukesh27. Fixes #45955. --- src/wp-content/themes/twentynineteen/inc/template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentynineteen/inc/template-functions.php b/src/wp-content/themes/twentynineteen/inc/template-functions.php index 8e9a732f6116e..efb9c7a3b38f9 100644 --- a/src/wp-content/themes/twentynineteen/inc/template-functions.php +++ b/src/wp-content/themes/twentynineteen/inc/template-functions.php @@ -97,7 +97,7 @@ function twentynineteen_get_the_archive_title() { } return $title; } -add_filter( 'get_the_archive_title', 'twentynineteen_get_the_archive_title' ); +add_filter( 'get_the_archive_title', 'twentynineteen_get_the_archive_title', 1 ); /** * Adds custom 'sizes' attribute to responsive image functionality for post thumbnails. From a69ae56693910304fba4def2e20d8525ada6fcb2 Mon Sep 17 00:00:00 2001 From: Huzaifa Al Mesbah Date: Wed, 14 Jan 2026 23:26:14 +0600 Subject: [PATCH 2/2] Twenty Twenty: Fix archive title filter priority. --- src/wp-content/themes/twentytwenty/inc/template-tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwenty/inc/template-tags.php b/src/wp-content/themes/twentytwenty/inc/template-tags.php index ce0be81ede33e..2fc20761d55b5 100644 --- a/src/wp-content/themes/twentytwenty/inc/template-tags.php +++ b/src/wp-content/themes/twentytwenty/inc/template-tags.php @@ -811,7 +811,7 @@ function twentytwenty_get_the_archive_title( $title ) { return preg_replace( $regex['pattern'], $regex['replacement'], $title ); } -add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title' ); +add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title', 1 ); /** * Miscellaneous