Bug with Taxonomy option
-
Hi,
I think there’s a bug in this plugin in the Jetpack_Widget_Conditions::filter_widget() function. The case statement that handles the taxonomy option has a call to
get_object_terms
(line 421). This is currently:$terms = get_the_terms( $post->ID, $rule['minor'] ); // Does post have terms in taxonomy?
But it should be:
$terms = get_the_terms( $post->ID, $term[0] );
At the moment, the
get_the_terms
call always returns a WP_Error with the message “Invalid taxonomy”.Thanks
- The topic ‘Bug with Taxonomy option’ is closed to new replies.