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 ); }