Use correct variable. props picklewagon. fixes #22394.
git-svn-id: http://core.svn.wordpress.org/trunk@22476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0f3d286dd3
commit
1b0a4561a4
|
@ -3161,7 +3161,7 @@ function is_object_in_term( $object_id, $taxonomy, $terms = null ) {
|
||||||
return new WP_Error( 'invalid_object', __( 'Invalid object ID' ) );
|
return new WP_Error( 'invalid_object', __( 'Invalid object ID' ) );
|
||||||
|
|
||||||
$object_terms = get_object_term_cache( $object_id, $taxonomy );
|
$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 );
|
$object_terms = wp_get_object_terms( $object_id, $taxonomy );
|
||||||
|
|
||||||
if ( is_wp_error( $object_terms ) )
|
if ( is_wp_error( $object_terms ) )
|
||||||
|
|
Loading…
Reference in New Issue