WordPress.org

Make WordPress Core

Ticket #18166: filter2.diff

File filter2.diff, 1.1 KB (added by leewillis77, 3 years ago)

Revised patch, reverses arguments passed to filter, and svn diff from root.

  • wp-admin/edit-tags.php

     
    345345<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> 
    346346<div class="form-field"> 
    347347        <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label> 
    348         <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'taxonomy' => $taxonomy, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => true, 'show_option_none' => __('None'))); ?> 
     348        <?php wp_dropdown_categories( apply_filters ( 'taxonomy_dropdown_args', array( 'hide_empty' => 0, 'hide_if_empty' => false, 'taxonomy' => $taxonomy, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => true, 'show_option_none' => __('None')), $taxonomy)); ?> 
    349349        <?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?> 
    350350                <p><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></p> 
    351351        <?php endif; ?>