From f35462dfa6831e044f1d19d7bfadbfda40af99f7 Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Mon, 4 Nov 2024 19:34:59 +0200 Subject: [PATCH] fix: incorrect array access in `get_taxonomy_labels()` --- src/wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 3e235b780fabb..3e402ebc8843a 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -721,7 +721,7 @@ function get_taxonomy_labels( $tax ) { $labels = _get_custom_object_labels( $tax, $nohier_vs_hier_defaults ); - if ( ! isset( $tax->labels->template_name ) && isset( $labels->singular_name ) ) { + if ( ! isset( $tax->labels['template_name'] ) && isset( $labels->singular_name ) ) { /* translators: %s: Taxonomy name. */ $labels->template_name = sprintf( _x( '%s Archives', 'taxonomy template name' ), $labels->singular_name ); }