Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#12310 closed enhancement (fixed)

Move 'restrict_manage_posts' hook outside of category if statement

Reported by: jfarthing84's profile jfarthing84 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)

edit.php.diff (595 bytes) - added by jfarthing84 15 years ago.

Download all attachments as: .zip

Change History (6)

#1 @jfarthing84
15 years ago

  • Version set to 3.0

#2 @dd32
15 years ago

That looks like an acidental change there, Someone wraped the entire block instead of just the category contents.

#3 @dd32
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13273]) Move 'restrict_manage_posts' out of category check. Props jfarthing84. Fixes #12310

#4 @nacin
15 years ago

  • Milestone changed from Unassigned to MU 2.9.x

#5 @nacin
15 years ago

  • Milestone changed from MU 2.9.x to 3.0
Note: See TracTickets for help on using tickets.