From fb1ce7ae11326bf1aa4963df4f5b7472baa3cc97 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 9 Nov 2012 00:16:30 +0000 Subject: [PATCH] Use correct variable. props picklewagon. fixes #22394. git-svn-id: https://develop.svn.wordpress.org/trunk@22476 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 794cb0ee80..d957c09a91 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3161,7 +3161,7 @@ function is_object_in_term( $object_id, $taxonomy, $terms = null ) { return new WP_Error( 'invalid_object', __( 'Invalid object ID' ) ); $object_terms = get_object_term_cache( $object_id, $taxonomy ); - if ( false === $terms ) + if ( false === $object_terms ) $object_terms = wp_get_object_terms( $object_id, $taxonomy ); if ( is_wp_error( $object_terms ) )