Ticket #23829: get_the_content_fix.diff
| File get_the_content_fix.diff, 525 bytes (added by , 13 years ago) |
|---|
-
wp-includes/category-template.php
72 72 * @return array 73 73 */ 74 74 function get_the_category( $id = false ) { 75 if( !$id ) { 76 global $post; 77 $id = $post->ID; 78 } 79 75 80 $categories = get_the_terms( $id, 'category' ); 76 81 if ( ! $categories || is_wp_error( $categories ) ) 77 82 $categories = array();