WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2014 12:57:16 AM (6 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r29845 r29859  
    4242            ),
    4343            'post_tag' => array(
     44                'hierarchical' => false,
    4445                'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',
    4546                'with_front' => ! get_option('tag_base') || $wp_rewrite->using_index_permalinks(),
Note: See TracChangeset for help on using the changeset viewer.