Make WordPress Core

Ticket #9644: 9644.diff

File 9644.diff, 1.2 KB (added by ryan, 16 years ago)
  • wp-includes/taxonomy.php

     
    1919        register_taxonomy( 'post_tag', 'post', array('hierarchical' => false, 'update_count_callback' => '_update_post_term_count', 'label' => __('Post Tags'), 'query_var' => false, 'rewrite' => false) ) ;
    2020        register_taxonomy( 'link_category', 'link', array('hierarchical' => false, 'label' => __('Categories'), 'query_var' => false, 'rewrite' => false) ) ;
    2121}
    22 add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
     22add_action( 'pre_theme_functions_load', 'create_initial_taxonomies', 0 ); // highest priority
    2323
    2424/**
    2525 * Return all of the taxonomy names that are of $object_type.
  • wp-settings.php

     
    660660 */
    661661$wp_locale =& new WP_Locale();
    662662
     663do_action('pre_theme_functions_load');
     664
    663665// Load functions for active theme.
    664666if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )
    665667        include(STYLESHEETPATH . '/functions.php');