Manage Posts: hide empty categories in dropdown, provide hook for custom filtering. Props westi. fixes #3120
git-svn-id: http://svn.automattic.com/wordpress/trunk@4321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
175bfff21d
commit
9a114c40e2
|
@ -115,11 +115,13 @@ if ( count($arc_result) ) { ?>
|
|||
<form name="viewcat" id="viewcat" action="" method="get">
|
||||
<fieldset>
|
||||
<legend><?php _e('Browse Category…') ?></legend>
|
||||
<?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=0&hierarchical=1&show_count=1&selected='.$cat);?>
|
||||
<?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
|
||||
<input type="submit" name="submit" value="<?php _e('Show Category') ?>" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<?php do_action('restrict_manage_posts'); ?>
|
||||
|
||||
<br style="clear:both;" />
|
||||
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue