Don't query post cats if no post. see #2621

git-svn-id: https://develop.svn.wordpress.org/trunk@7739 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-04-18 18:12:04 +00:00
parent 84a2c7f980
commit f15d3fc773
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ endif; ?>
<div id="categories-all" class="ui-tabs-panel">
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
<?php wp_category_checklist($post->ID) ?>
<?php wp_category_checklist($post_ID) ?>
</ul>
</div>