Changeset 14432 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/04/2010 06:13:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r14404 r14432 16 16 */ 17 17 function create_initial_taxonomies() { 18 register_taxonomy( 'category', 'post', array( 'hierarchical' => true, 19 'update_count_callback' => '_update_post_term_count', 20 'label' => __('Categories'), 21 'singular_label' => __('Category'), 22 'query_var' => false, 23 'rewrite' => false, 24 'public' => true, 25 'show_ui' => true, 26 '_builtin' => true 27 ) ) ; 18 register_taxonomy( 'category', 'post', array( 19 'hierarchical' => true, 20 'update_count_callback' => '_update_post_term_count', 21 'label' => __( 'Categories' ), 22 'singular_label' => __( 'Category' ), 23 'query_var' => false, 24 'rewrite' => false, 25 'public' => true, 26 'show_ui' => true, 27 '_builtin' => true, 28 ) ) ; 28 29 29 30 register_taxonomy( 'post_tag', 'post', array( 30 'hierarchical' => false, 31 'update_count_callback' => '_update_post_term_count', 32 'label' => __('Post Tags'), 33 'singular_label' => __('Post Tag'), 34 'query_var' => false, 35 'rewrite' => false, 36 'public' => true, 37 'show_ui' => true, 38 '_builtin' => true 39 ) ) ; 40 41 register_taxonomy( 'nav_menu', 'nav_menu_item', array( 'hierarchical' => false, 42 'label' => __('Navigation Menus'), 43 'singular_label' => __('Navigation Menu'), 44 'query_var' => false, 45 'rewrite' => false, 46 'show_ui' => false, 47 '_builtin' => true, 48 ) ) ; 49 50 register_taxonomy( 'link_category', 'link', array( 'hierarchical' => false, 51 'label' => __('Categories'), 52 'query_var' => false, 53 'rewrite' => false, 54 'public' => false, 55 'show_ui' => false, 56 '_builtin' => true, 57 ) ) ; 31 'hierarchical' => false, 32 'update_count_callback' => '_update_post_term_count', 33 'label' => __( 'Post Tags' ), 34 'singular_label' => __( 'Post Tag' ), 35 'query_var' => false, 36 'rewrite' => false, 37 'public' => true, 38 'show_ui' => true, 39 '_builtin' => true, 40 ) ); 41 42 register_taxonomy( 'nav_menu', 'nav_menu_item', array( 43 'hierarchical' => false, 44 'label' => __( 'Navigation Menus' ), 45 'singular_label' => __( 'Navigation Menu' ), 46 'query_var' => false, 47 'rewrite' => false, 48 'show_ui' => false, 49 '_builtin' => true, 50 ) ) ; 51 52 register_taxonomy( 'link_category', 'link', array( 53 'hierarchical' => false, 54 'label' => __( 'Categories' ), 55 'query_var' => false, 56 'rewrite' => false, 57 'public' => false, 58 'show_ui' => false, 59 '_builtin' => true, 60 ) ) ; 58 61 } 59 62 add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
Note: See TracChangeset
for help on using the changeset viewer.