From 91a3b376de841a4ec4bd26f32eef1df69e7ecc16 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 9 Oct 2014 00:57:16 +0000 Subject: [PATCH] Explicitly declare hierarchical=false for post_tag in create_initial_taxonomies(). In certain edge cases, such as during the automated test suite, create_initial_taxonomies() can be called in a situation where a non-default permastruct setting has been saved outside of wp-admin. This causes the 'hierarchical' setting for the post_tag taxonomy to remain unset, leading to PHP notices in get_term_link(). See #29827. git-svn-id: https://develop.svn.wordpress.org/trunk@29859 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 1b4902d650..12cd91ca35 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -41,6 +41,7 @@ function create_initial_taxonomies() { 'ep_mask' => EP_CATEGORIES, ), 'post_tag' => array( + 'hierarchical' => false, 'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag', 'with_front' => ! get_option('tag_base') || $wp_rewrite->using_index_permalinks(), 'ep_mask' => EP_TAGS,