We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_taxonomy_labels()
1 parent 4ce25a5 commit f35462dCopy full SHA for f35462d
src/wp-includes/taxonomy.php
@@ -721,7 +721,7 @@ function get_taxonomy_labels( $tax ) {
721
722
$labels = _get_custom_object_labels( $tax, $nohier_vs_hier_defaults );
723
724
- if ( ! isset( $tax->labels->template_name ) && isset( $labels->singular_name ) ) {
+ if ( ! isset( $tax->labels['template_name'] ) && isset( $labels->singular_name ) ) {
725
/* translators: %s: Taxonomy name. */
726
$labels->template_name = sprintf( _x( '%s Archives', 'taxonomy template name' ), $labels->singular_name );
727
}
0 commit comments