diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 636758b15a..c3289d9958 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -229,6 +229,9 @@ function wp_get_post_cats($blogid = '1', $post_ID = 0) { $result = $wpdb->get_col($sql); + if ( !$result ) + $result = array(); + return array_unique($result); }