mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-04 04:19:29 +00:00
Fix notice
git-svn-id: http://svn.automattic.com/wordpress/trunk@9893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4d5ab3a01
commit
3cd406eab7
@ -127,7 +127,7 @@ function get_the_category( $id = false ) {
|
||||
$categories = get_object_term_cache( $id, 'category' );
|
||||
if ( false === $categories ) {
|
||||
$categories = wp_get_object_terms( $id, 'category' );
|
||||
wp_cache_add($post->ID, $categories, 'category_relationships');
|
||||
wp_cache_add($id, $categories, 'category_relationships');
|
||||
}
|
||||
|
||||
if ( !empty( $categories ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user