Problem with php 8.2 in the /inc/widgets/class.widget-visibility.php script.
Line 440 reads:
else if ( is_singular() && $terms & !is_wp_error( $terms ) )
A fix:
else if ( is_singular() && $terms && !is_wp_error( $terms ) )
Additionally, a warning is thrown on line 435:
$terms = get_the_terms( $post->ID, $rule['minor'] ); // Does post have terms in taxonomy?
I'm just suppressing with @ but there is probably a more elegant solution. $terms = @get_the_terms( $post->ID, $rule['minor'] ); // Does post have terms in taxonomy?
in php 8.3 I ended up commenting out line 435 altogether to resolve a fatal error... if I discover any negative impact of that change I'll add another comment.
Problem with php 8.2 in the /inc/widgets/class.widget-visibility.php script.
Line 440 reads:
else if ( is_singular() && $terms & !is_wp_error( $terms ) )
A fix:else if ( is_singular() && $terms && !is_wp_error( $terms ) )
Additionally, a warning is thrown on line 435:
$terms = get_the_terms( $post->ID, $rule['minor'] ); // Does post have terms in taxonomy?
I'm just suppressing with @ but there is probably a more elegant solution.
$terms = @get_the_terms( $post->ID, $rule['minor'] ); // Does post have terms in taxonomy?