Make WordPress Core

Changeset 13946


Ignore:
Timestamp:
04/02/2010 05:07:30 PM (15 years ago)
Author:
ryan
Message:

Move wp-ajax_add-tax hook back to registration. Reverts part of [13924]. see #10437

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r13940 r13946  
    105105    else
    106106        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');
    110107}
    111108
  • trunk/wp-includes/taxonomy.php

    r13925 r13946  
    295295    $args['object_type'] = (array) $object_type;
    296296    $wp_taxonomies[$taxonomy] = (object) $args;
     297
     298    // register callback handling for metabox
     299    add_filter('wp_ajax_add-'.$taxonomy, '_wp_ajax_add_hierarchical_term');
    297300}
    298301
Note: See TracChangeset for help on using the changeset viewer.