Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#12310 closed enhancement (fixed)

Move 'restrict_manage_posts' hook outside of category if statement

Reported by: jfarthing84 Owned by:
Priority: normal Milestone: 3.0
Component: Administration Version: 3.0
Severity: normal Keywords: dev-feedback has-patch
Cc: Focuses:

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 17 years ago.

Download all attachments as: .zip

Change History (6)

#1 @jfarthing84
17 years ago

  • Version → 3.0

#2 @dd32
17 years ago

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

#3 @dd32
17 years ago

  • Resolution → fixed
  • Status new → closed

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

#4 @nacin
17 years ago

  • Milestone Unassigned → MU 2.9.x

#5 @nacin
17 years ago

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