diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 160d24d4e..ec307d28a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -617,6 +617,9 @@ function &get_page(&$page, $output = OBJECT) { function &get_category(&$category, $output = OBJECT) { global $cache_categories, $wpdb; + if ( empty($category) ) + return null; + if ( ! isset($cache_categories)) update_category_cache();