Skip to main contentSkip to footer

Premium 1.13.2

1.13.2 is a maintenance release and generally recommended, as it fixes minor bugs and a possible XSS vulnerability.

  • Fixed a bug that caused the results to change depending of the order of words in a multi-word search query.
  • Added product_categories and recent_products from WooCommerce to the list of blocked shortcodes.
  • There are improvements in excerpt-building and highlighting, especially when fuzzy search is enabled.
  • Fixed a possible (if quite unlikely) XSS vulnerability.
  • Improved search performance (thanks to MikeNGarrett).
  • Sometimes highlights in documents make the document content disappear. I don’t know why, but I’ve added a fix that should make the content visible (without the highlights) if a problem appears.

The XSS vulnerability is related to stopwords: the list of stopwords is printed out unescaped on the Relevanssi settings page in WP admin dashboard. There’s some potential for a XSS vulnerability there, but in order to attack this way, the attacker needs to have admin rights to your WP site in the first place. 1.13.2 fixes the vulnerability in any case.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Filtering results by category
In order to filter search results by category, use the following code: $url = get_bloginfo('url'); $url = esc_attr(add_query_arg(array('cat' => '10',…
Wishlist Member: Sorting the posts by membership levels

Someone wanted a way to prioritize posts that are targeting particular Wishlist Member membership level. The basic implementation here is simple: create a relevanssi_hits_filter function that will sort the posts by the level. There’s a trick to this, though, as Wishlist Member does not provide a way to check the……level posts and uses that check whether a post is on that list or not. The function that gets the list of post IDs will do that once, and will then just return the list on later calls. /** * Generates the list of posts for the specific membership level….…$array[ $post_ID ] ) instead of slower in_array(). * * @param int $level The membership level. * * @return array An array of post_ID => true pairs. */ function rlv_generate_level_post_list( $level ) { global $rlv_wishlist_level_posts; if ( ! isset( $rlv_wishlist_level_posts[ $level ] ) ) { $rlv_wishlist_level_posts[ $level ] = array();…

Proximity sorting
Relevanssi Premium 2.16 added proximity sorting to search results. That means you can sort the search results by geographic location.…

Related Posts:

Currently there are no related posts available.

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed