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.
Built from https://develop.svn.wordpress.org/trunk@29859


git-svn-id: http://core.svn.wordpress.org/trunk@29620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2014-10-09 00:58:20 +00:00
parent 57c41263d7
commit 17631e3b8e
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-20141008';
$wp_version = '4.1-alpha-20141009';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.