[wp-trac] [WordPress Trac] #10876: Problem with wp init routine or simple-tags bug?
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 29 14:55:03 UTC 2009
#10876: Problem with wp init routine or simple-tags bug?
--------------------------+-------------------------------------------------
Reporter: repley | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords: taxonomy.php,init,simple-tags
--------------------------+-------------------------------------------------
Hi, with wp2.8.4 the simple-tag 1.6.6 plugin don't works.
Commenting lines 17,21 and 22 of wp-includes/taxonomy.php solve the
problem.
Original code (wp-includes/taxonomy.php):
function create_initial_taxonomies() {
register_taxonomy( 'category', 'post', array('hierarchical' => true,
'update_count_callback' => '_update_post_term_count', 'label' =>
__('Categories'), 'query_var' => false, 'rewrite' => false) ) ;
register_taxonomy( 'post_tag', 'post', array('hierarchical' => false,
'update_count_callback' => '_update_post_term_count', 'label' => __('Post
Tags'), 'query_var' => false, 'rewrite' => false) ) ;
register_taxonomy( 'link_category', 'link', array('hierarchical' =>
false, 'label' => __('Categories'), 'query_var' => false, 'rewrite' =>
false) ) ;
}
add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
modified code (wp-includes/taxonomy.php):
//function create_initial_taxonomies() {
register_taxonomy( 'category', 'post', array('hierarchical' => true,
'update_count_callback' => '_update_post_term_count', 'label' =>
__('Categories'), 'query_var' => false, 'rewrite' => false) ) ;
register_taxonomy( 'post_tag', 'post', array('hierarchical' => false,
'update_count_callback' => '_update_post_term_count', 'label' => __('Post
Tags'), 'query_var' => false, 'rewrite' => false) ) ;
register_taxonomy( 'link_category', 'link', array('hierarchical' =>
false, 'label' => __('Categories'), 'query_var' => false, 'rewrite' =>
false) ) ;
//}
//add_action( 'init', 'create_initial_taxonomies', 0 ); // highest
priority
I don't know if it's a bug of wordpress init routine or a simple-tags bug,
but i think that it's important to submit to developers.
Thread on wordpress support forum is the following:
http://wordpress.org/support/topic/315611
Thank you all
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10876>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list