Infinite loop problem
-
Hi,
I want to report a problem that occurred to one website that I’m working on.
In the function get_link_attributes in class-yith-wcan-navigation-widget.php on line 651 sometimes the while loop is creating an infinite loop. Can you please add a fix to this problem in the next update.
Here is the workaround fix that I’ve:
// Exclude query arg for current term archive term.
$i = 0;
while ( $in_array_function( $term->slug, $data['terms'] ) ) {
$key = array_search( $current_term, $data );
if ( $key ) {
unset( $data['terms'][ $key ] );
}
if ($i >= 100) break;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.