Skip to content

Version 4.2.0

Compare
Choose a tag to compare
@felipeelia felipeelia released this 26 May 12:33
· 3157 commits to develop since this release

ElasticPress 4.2.0 fixes some bugs and introduces some new and exciting changes.

The sync functionality had its JavaScript refactored. Timeouts, memory limits, and general errors are now properly handled and do not make the sync get stuck when performed via the WP-CLI index command. There is also a new get-last-sync WP-CLI command to check the errors and numbers from the last sync.

We've improved the admin search experience for sites using both WooCommerce and Protected Content. Previously, WooCommerce was processing that screen with two different queries, and EP was used only in one of them. Now, it will be only one query, fully handled by ElasticPress. Users wanting to keep the previous behavior can do so by adding add_filter( 'ep_woocommerce_integrate_admin_products_list', '__return_false' ); to their website's codebase.

Facets are now available through a WordPress block. If you are using the Full Site Editing feature, you can now add ElasticPress Facets to your theme with just a few clicks! This block has been introduced with a simplified user interface to enable compatibility with Full Site Editing and will continue to be iterated and improved in future versions of the plugin.

Added

Changed

  • Facets widgets rendered by a separate class. Props @felipeelia via #2712.
  • Deprecated ElasticPress\Feature\Facets\Widget::get_facet_term_html() in favor of ElasticPress\Feature\Facets\Renderer::get_facet_term_html(). Props @felipeelia via #2712.
  • Log errors and remove indexing status on failed syncs. Props @felipeelia via #2748.
  • Refactored Sync page JavaScript. Props @JakePT via #2738.
  • Updated admin scripts to use WordPress's version of React. Props @JakePT via #2756.
  • WooCommerce products list in the Dashboard now properly leverages ElasticPress. Props @felipeelia via #2757.
  • Removed Instant Results' dependency on @wordpress/components and @wordpress/date. Props @JakePT and @felipeelia via #2774.
  • (Protected Content) Password-protected posts are only hidden on searches. Props @felipeelia, @JakePT, and @burhandodhy via #2780.
  • The plugin is now available via Composer without any additional steps required. Props @felipeelia, @jeffpaul, and @johnbillion via #2799.

Fixed

Security

See: https://github.com/10up/ElasticPress/milestone/63?closed=1