Changeset 13924
- Timestamp:
- 04/02/2010 01:23:58 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r13916 r13924 93 93 add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core'); 94 94 95 // all ta g-style taxonomies95 // all taxonomies 96 96 foreach ( get_object_taxonomies($post_type) as $tax_name ) { 97 97 $taxonomy = get_taxonomy($tax_name); 98 if ( ! $taxonomy->show_ui ) 99 continue; 100 98 101 $label = isset($taxonomy->label) ? esc_attr($taxonomy->label) : $tax_name; 99 102 … … 102 105 else 103 106 add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box', $post_type, 'side', 'core', array( 'taxonomy' => $tax_name )); 107 108 // register callback handling for metabox 109 add_filter('wp_ajax_add-' . $tax_name, '_wp_ajax_add_hierarchical_term'); 104 110 } 105 111 -
trunk/wp-includes/taxonomy.php
r13915 r13924 295 295 $args['object_type'] = (array) $object_type; 296 296 $wp_taxonomies[$taxonomy] = (object) $args; 297 298 // register callback handling for metabox299 add_filter('wp_ajax_add-'.$taxonomy, '_wp_ajax_add_hierarchical_term');300 297 } 301 298
Note: See TracChangeset
for help on using the changeset viewer.