Ticket #21155: 21155.diff
File 21155.diff, 483 bytes (added by , 13 years ago) |
---|
-
wp-includes/category-template.php
73 73 */ 74 74 function get_the_category( $id = false ) { 75 75 $categories = get_the_terms( $id, 'category' ); 76 if ( ! $categories )76 if ( ! $categories || is_wp_error( $categories ) ) 77 77 $categories = array(); 78 78 79 79 $categories = array_values( $categories );