[wp-trac] [WordPress Trac] #12310: Move 'restrict_manage_posts' hook outside of category if statement

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 20 21:38:56 UTC 2010


#12310: Move 'restrict_manage_posts' hook outside of category if statement
----------------------------+-----------------------------------------------
 Reporter:  jfarthing84     |       Owner:                        
     Type:  enhancement     |      Status:  new                   
 Priority:  normal          |   Milestone:  Unassigned            
Component:  Administration  |     Version:                        
 Severity:  normal          |    Keywords:  dev-feedback has-patch
----------------------------+-----------------------------------------------
 As it is now, the hook is usesless except for categories:

 {{{
 if ( is_object_in_taxonomy($post_type, 'category') ) {
         $dropdown_options = array('show_option_all' => __('View all
 categories'), 'hide_empty' => 0, 'hierarchical' => 1,
                 'show_count' => 0, 'orderby' => 'name', 'selected' =>
 $cat);
         wp_dropdown_categories($dropdown_options);
         do_action('restrict_manage_posts');
 }
 }}}

 We can't add any kind of filtering for custom taxonomies. Can we get this
 hook moved outside of the 'IF' statement, please?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12310>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list