]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/category-template.php
WordPress 3.7.2-scripts
[autoinstalls/wordpress.git] / wp-includes / category-template.php
index 27b8bf221ff9f1ca58cd6eb9f4f5ac0e56fd1c13..57f7cb9ada00745255b6701a67efa00bb2b5d60e 100644 (file)
@@ -232,6 +232,9 @@ function get_the_category_list( $separator = '', $parents='', $post_id = false )
  * @return bool True if the current post is in any of the given categories.
  */
 function in_category( $category, $post = null ) {
+       if ( empty( $category ) )
+               return false;
+
        return has_category( $category, $post );
 }