Skip to content

Commit f35462d

Browse files
committed
fix: incorrect array access in get_taxonomy_labels()
1 parent 4ce25a5 commit f35462d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ function get_taxonomy_labels( $tax ) {
721721

722722
$labels = _get_custom_object_labels( $tax, $nohier_vs_hier_defaults );
723723

724-
if ( ! isset( $tax->labels->template_name ) && isset( $labels->singular_name ) ) {
724+
if ( ! isset( $tax->labels['template_name'] ) && isset( $labels->singular_name ) ) {
725725
/* translators: %s: Taxonomy name. */
726726
$labels->template_name = sprintf( _x( '%s Archives', 'taxonomy template name' ), $labels->singular_name );
727727
}

0 commit comments

Comments
 (0)