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:
markjaquith 2006-10-04 07:54:38 +00:00
parent 175bfff21d
commit 9a114c40e2
1 changed files with 3 additions and 1 deletions

View File

@ -115,11 +115,13 @@ if ( count($arc_result) ) { ?>
<form name="viewcat" id="viewcat" action="" method="get">
<fieldset>
<legend><?php _e('Browse Category&hellip;') ?></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