#12310 closed enhancement (fixed)
Move 'restrict_manage_posts' hook outside of category if statement
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Administration | Keywords: | dev-feedback has-patch |
| Focuses: | Cc: |
Description
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?
Attachments (1)
Note: See
TracTickets for help on using
tickets.
That looks like an acidental change there, Someone wraped the entire block instead of just the category contents.