Klarna now available within WooPayments_Q42023

Added by Shubert Koong (Woo marketing) to support the launch of Klarna within WooPayments

Fix Breaking of Search

WP search will not return any results when this plugin is active.

Our developer documented a fix here:


/**
* Distinct Functionality
*/
public static function distinct_post( $distinct ) {
if ( ( isset( $_REQUEST['s'] ) || isset( $_REQUEST['orderby'] ) ) && ( isset( $_REQUEST['post_type'] ) && sanitize_title( wp_unslash( $_REQUEST['post_type'] ) ) ) == self::$post_type ) {
return 'DISTINCT';
}
return $distinct;
}

Author

SooBahkDo

Current Status

Completed

Last updated: December 18, 2022

0 comments

Log in to comment on this feature request.