WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2010 07:30:05 PM (12 years ago)
Author:
ryan
Message:

Create metaboxes for hierarchical taxonomies. Props prettyboymp. fixes #10122

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r12791 r12798  
    195195    $args['object_type'] = (array) $object_type;
    196196    $wp_taxonomies[$taxonomy] = (object) $args;
     197
     198    // register callback handling for metabox
     199    add_filter('wp_ajax_add-'.$taxonomy, '_wp_ajax_add_hierarchical_term');
    197200}
    198201
     
    15741577 *
    15751578 * The way this works is that if the taxonomy that the term belongs to is
    1576  * heirarchical and has a parent, it will append that parent to the $slug.
     1579 * hierarchical and has a parent, it will append that parent to the $slug.
    15771580 *
    15781581 * If that still doesn't return an unique slug, then it try to append a number
Note: See TracChangeset for help on using the changeset viewer.