From 4b7c9a1e5a9be10bc5b4ff1cb8b2746b3b38e55a Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Tue, 4 Jul 2023 11:52:29 -0300 Subject: [PATCH 1/5] Version bump --- elasticpress.php | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/elasticpress.php b/elasticpress.php index 0b90abe5dc..afd0d1335b 100644 --- a/elasticpress.php +++ b/elasticpress.php @@ -3,7 +3,7 @@ * Plugin Name: ElasticPress * Plugin URI: https://github.com/10up/ElasticPress * Description: A fast and flexible search and query engine for WordPress. - * Version: 4.6.0 + * Version: 4.6.1 * Requires at least: 5.6 * Requires PHP: 7.0 * Author: 10up @@ -32,7 +32,7 @@ define( 'EP_URL', plugin_dir_url( __FILE__ ) ); define( 'EP_PATH', plugin_dir_path( __FILE__ ) ); define( 'EP_FILE', plugin_basename( __FILE__ ) ); -define( 'EP_VERSION', '4.6.0' ); +define( 'EP_VERSION', '4.6.1' ); /** * PSR-4-ish autoloading diff --git a/package-lock.json b/package-lock.json index 9f7af18fc5..68998ce0ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "elasticpress", - "version": "4.6.0", + "version": "4.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "elasticpress", - "version": "4.6.0", + "version": "4.6.1", "license": "GPL-2.0-or-later", "dependencies": { "@10up/component-tooltip": "^2.0.0", diff --git a/package.json b/package.json index 67672da575..059e2f5778 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "elasticpress", - "version": "4.6.0", + "version": "4.6.1", "license": "GPL-2.0-or-later", "description": "A fast and flexible search and query engine for WordPress.", "devDependencies": { diff --git a/readme.txt b/readme.txt index 0cc59bf530..8b0e487388 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: 10up, tlovett1, vhauri, tott, oscarssanchez, cmmarslender Tags: performance, slow, search, elasticsearch, fuzzy, facet, aggregation, searching, autosuggest, suggest, elastic, advanced search, woocommerce, related posts, woocommerce Tested up to: 6.2 -Stable tag: 4.6.0 +Stable tag: 4.6.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html From 03a24609f5b94ed8229f5fba9d29681f9228b6e6 Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Tue, 4 Jul 2023 12:45:38 -0300 Subject: [PATCH 2/5] Changelog for 4.6.1 --- CHANGELOG.md | 16 ++++++++++++++++ CREDITS.md | 1 + 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51d3dd5f65..60faa09b5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,21 @@ All notable changes to this project will be documented in this file, per [the Ke ### Security --> +## [4.6.1] - 2023-07-XX + +**Note that starting from the ElasticPress 5.0.0 release the `Users` feature will be moved to the [ElasticPress Labs](https://github.com/10up/ElasticPressLabs) plugin. The `Terms` and `Comments` features will remain in ElasticPress but will be available only if enabled via code. Check [our blog post](https://www.elasticpress.io/blog/2023/03/enabling-comments-and-terms-in-elasticpress-5-0) for more info.** + +### Changed +* Use wp_cache_supports over wp_cache_supports_group_flush. Props [@spacedmonkey](https://github.com/spacedmonkey) via [#3501](https://github.com/10up/ElasticPress/pull/3501). +* Update the `ep_exclude_from_search` post meta only if it is set or has some value. Props [@MARQAS](https://github.com/MARQAS) and [@columbian-chris](https://github.com/columbian-chris) via [#3521](https://github.com/10up/ElasticPress/pull/3521). + +### Fixed +* Deprecation notice in `ElasticPress\Feature\WooCommerce\Orders`. Props [@mwidmann](https://github.com/mwidmann) via [#3507](https://github.com/10up/ElasticPress/pull/3507). +* Restrict applying a facet filter to the query if the filter value is empty. Props [@burhandodhy](https://github.com/burhandodhy) via [#3524](https://github.com/10up/ElasticPress/pull/3524). +* Syncing a post with empty post meta key. Props [@MARQAS](https://github.com/MARQAS) and [@oscarssanchez](https://github.com/oscarssanchez) via [#3516](https://github.com/10up/ElasticPress/pull/3516). +* Order by clauses with Elasticsearch field formats are not changed anymore. Props [@felipeelia](https://github.com/felipeelia) and [@tlovett1](https://github.com/tlovett1) via [#3512](https://github.com/10up/ElasticPress/pull/3512). +* Documentation of the `ep_facet_search_get_terms_args` filter. Props [@burhandodhy](https://github.com/burhandodhy) via [#3525](https://github.com/10up/ElasticPress/pull/3525). + ## [4.6.0] - 2023-06-13 **Note that starting from the ElasticPress 5.0.0 release the `Users` feature will be moved to the [ElasticPress Labs](https://github.com/10up/ElasticPressLabs) plugin. The `Terms` and `Comments` features will remain in ElasticPress but will be available only if enabled via code. Check [our blog post](https://www.elasticpress.io/blog/2023/03/enabling-comments-and-terms-in-elasticpress-5-0) for more info.** @@ -1831,6 +1846,7 @@ This is a bug fix release with some filter additions. - Initial plugin release [Unreleased]: https://github.com/10up/ElasticPress/compare/trunk...develop +[4.6.1]: https://github.com/10up/ElasticPress/compare/4.6.0...4.6.1 [4.6.0]: https://github.com/10up/ElasticPress/compare/4.5.2...4.6.0 [4.5.2]: https://github.com/10up/ElasticPress/compare/4.5.1...4.5.2 [4.5.1]: https://github.com/10up/ElasticPress/compare/4.5.0...4.5.1 diff --git a/CREDITS.md b/CREDITS.md index d0bb519dc3..96d60613a2 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -213,6 +213,7 @@ Thank you to all the people who have already contributed to this repository via [Alexander Z (@TorlockC)](https://github.com/TorlockC), [Nabi (@navidabdi)](https://github.com/navidabdi) [Dmitry Seleznyov (@selim13)](https://github.com/selim13) +[Martin Widmann (@mwidmann)](https://github.com/mwidmann) and [@qazaqstan2025](https://github.com/qazaqstan2025). From 73d843e6abb0ffc57b948d837823d3fc6b3e9424 Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Wed, 5 Jul 2023 11:19:23 -0300 Subject: [PATCH 3/5] Add #3529, #3533, #3530, and #3532 to the changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60faa09b5c..b6b3cd8480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,9 @@ All notable changes to this project will be documented in this file, per [the Ke **Note that starting from the ElasticPress 5.0.0 release the `Users` feature will be moved to the [ElasticPress Labs](https://github.com/10up/ElasticPressLabs) plugin. The `Terms` and `Comments` features will remain in ElasticPress but will be available only if enabled via code. Check [our blog post](https://www.elasticpress.io/blog/2023/03/enabling-comments-and-terms-in-elasticpress-5-0) for more info.** +### Added +* Add doc url for "Did You Mean" feature. Props [@burhandodhy](https://github.com/burhandodhy) via [#3529](https://github.com/10up/ElasticPress/pull/3529). + ### Changed * Use wp_cache_supports over wp_cache_supports_group_flush. Props [@spacedmonkey](https://github.com/spacedmonkey) via [#3501](https://github.com/10up/ElasticPress/pull/3501). * Update the `ep_exclude_from_search` post meta only if it is set or has some value. Props [@MARQAS](https://github.com/MARQAS) and [@columbian-chris](https://github.com/columbian-chris) via [#3521](https://github.com/10up/ElasticPress/pull/3521). @@ -26,6 +29,9 @@ All notable changes to this project will be documented in this file, per [the Ke * Restrict applying a facet filter to the query if the filter value is empty. Props [@burhandodhy](https://github.com/burhandodhy) via [#3524](https://github.com/10up/ElasticPress/pull/3524). * Syncing a post with empty post meta key. Props [@MARQAS](https://github.com/MARQAS) and [@oscarssanchez](https://github.com/oscarssanchez) via [#3516](https://github.com/10up/ElasticPress/pull/3516). * Order by clauses with Elasticsearch field formats are not changed anymore. Props [@felipeelia](https://github.com/felipeelia) and [@tlovett1](https://github.com/tlovett1) via [#3512](https://github.com/10up/ElasticPress/pull/3512). +* Failed Query logs are automatically cleared on refreshing the "Status Report" page. Props [@burhandodhy](https://github.com/burhandodhy) via [#3533](https://github.com/10up/ElasticPress/pull/3533). +* Warning message on Health page when Last Sync information is not available. Props [@burhandodhy](https://github.com/burhandodhy) via [#3530](https://github.com/10up/ElasticPress/pull/3530). +* Deprecation notice: json_encode(): Passing null to parameter #2. Props [@burhandodhy](https://github.com/burhandodhy) via [#3532](https://github.com/10up/ElasticPress/pull/3532). * Documentation of the `ep_facet_search_get_terms_args` filter. Props [@burhandodhy](https://github.com/burhandodhy) via [#3525](https://github.com/10up/ElasticPress/pull/3525). ## [4.6.0] - 2023-06-13 From b2c26d151ff12ced9353b75c6c21e040c0568951 Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Wed, 5 Jul 2023 13:23:44 -0300 Subject: [PATCH 4/5] Changelog updates --- CHANGELOG.md | 6 +++--- readme.txt | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6b3cd8480..eb0c86ca96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ All notable changes to this project will be documented in this file, per [the Ke ### Security --> -## [4.6.1] - 2023-07-XX +## [4.6.1] - 2023-07-05 **Note that starting from the ElasticPress 5.0.0 release the `Users` feature will be moved to the [ElasticPress Labs](https://github.com/10up/ElasticPressLabs) plugin. The `Terms` and `Comments` features will remain in ElasticPress but will be available only if enabled via code. Check [our blog post](https://www.elasticpress.io/blog/2023/03/enabling-comments-and-terms-in-elasticpress-5-0) for more info.** @@ -21,12 +21,12 @@ All notable changes to this project will be documented in this file, per [the Ke * Add doc url for "Did You Mean" feature. Props [@burhandodhy](https://github.com/burhandodhy) via [#3529](https://github.com/10up/ElasticPress/pull/3529). ### Changed -* Use wp_cache_supports over wp_cache_supports_group_flush. Props [@spacedmonkey](https://github.com/spacedmonkey) via [#3501](https://github.com/10up/ElasticPress/pull/3501). +* Use `wp_cache_supports` over `wp_cache_supports_group_flush`. Props [@spacedmonkey](https://github.com/spacedmonkey) via [#3501](https://github.com/10up/ElasticPress/pull/3501). * Update the `ep_exclude_from_search` post meta only if it is set or has some value. Props [@MARQAS](https://github.com/MARQAS) and [@columbian-chris](https://github.com/columbian-chris) via [#3521](https://github.com/10up/ElasticPress/pull/3521). ### Fixed * Deprecation notice in `ElasticPress\Feature\WooCommerce\Orders`. Props [@mwidmann](https://github.com/mwidmann) via [#3507](https://github.com/10up/ElasticPress/pull/3507). -* Restrict applying a facet filter to the query if the filter value is empty. Props [@burhandodhy](https://github.com/burhandodhy) via [#3524](https://github.com/10up/ElasticPress/pull/3524). +* Don't apply a facet filter to the query if the filter value is empty. Props [@burhandodhy](https://github.com/burhandodhy) via [#3524](https://github.com/10up/ElasticPress/pull/3524). * Syncing a post with empty post meta key. Props [@MARQAS](https://github.com/MARQAS) and [@oscarssanchez](https://github.com/oscarssanchez) via [#3516](https://github.com/10up/ElasticPress/pull/3516). * Order by clauses with Elasticsearch field formats are not changed anymore. Props [@felipeelia](https://github.com/felipeelia) and [@tlovett1](https://github.com/tlovett1) via [#3512](https://github.com/10up/ElasticPress/pull/3512). * Failed Query logs are automatically cleared on refreshing the "Status Report" page. Props [@burhandodhy](https://github.com/burhandodhy) via [#3533](https://github.com/10up/ElasticPress/pull/3533). diff --git a/readme.txt b/readme.txt index 8b0e487388..e75eccd80a 100644 --- a/readme.txt +++ b/readme.txt @@ -81,6 +81,30 @@ For sure! Feel free to submit ideas or feedback in general to our [GitHub repo]( == Changelog == += 4.6.1 - 2023-07-05 = + +**Note that starting from the ElasticPress 5.0.0 release the `Users` feature will be moved to the [ElasticPress Labs](https://github.com/10up/ElasticPressLabs) plugin. The `Terms` and `Comments` features will remain in ElasticPress but will be available only if enabled via code. Check [our blog post](https://www.elasticpress.io/blog/2023/03/enabling-comments-and-terms-in-elasticpress-5-0) for more info.** + +__Added:__ + +* Add doc url for "Did You Mean" feature. Props [@burhandodhy](https://github.com/burhandodhy). + +__Changed:__ + +* Use `wp_cache_supports` over `wp_cache_supports_group_flush`. Props [@spacedmonkey](https://github.com/spacedmonkey). +* Update the `ep_exclude_from_search` post meta only if it is set or has some value. Props [@MARQAS](https://github.com/MARQAS) and [@columbian-chris](https://github.com/columbian-chris). + +__Fixed:__ + +* Deprecation notice in `ElasticPress\Feature\WooCommerce\Orders`. Props [@mwidmann](https://github.com/mwidmann). +* Don't apply a facet filter to the query if the filter value is empty. Props [@burhandodhy](https://github.com/burhandodhy). +* Syncing a post with empty post meta key. Props [@MARQAS](https://github.com/MARQAS) and [@oscarssanchez](https://github.com/oscarssanchez). +* Order by clauses with Elasticsearch field formats are not changed anymore. Props [@felipeelia](https://github.com/felipeelia) and [@tlovett1](https://github.com/tlovett1). +* Failed Query logs are automatically cleared on refreshing the "Status Report" page. Props [@burhandodhy](https://github.com/burhandodhy). +* Warning message on Health page when Last Sync information is not available. Props [@burhandodhy](https://github.com/burhandodhy). +* Deprecation notice: json_encode(): Passing null to parameter #2. Props [@burhandodhy](https://github.com/burhandodhy). +* Documentation of the `ep_facet_search_get_terms_args` filter. Props [@burhandodhy](https://github.com/burhandodhy). + = 4.6.0 - 2023-06-13 = **Note that starting from the ElasticPress 5.0.0 release the `Users` feature will be moved to the [ElasticPress Labs](https://github.com/10up/ElasticPressLabs) plugin. The `Terms` and `Comments` features will remain in ElasticPress but will be available only if enabled via code. Check [our blog post](https://www.elasticpress.io/blog/2023/03/enabling-comments-and-terms-in-elasticpress-5-0) for more info.** From 6fc365927bbf4cbe7faf01f3c189fcc53499880b Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Wed, 5 Jul 2023 13:25:15 -0300 Subject: [PATCH 5/5] Update the .pot file --- lang/elasticpress.pot | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/lang/elasticpress.pot b/lang/elasticpress.pot index 7efd6cdc80..3f301a8cf5 100644 --- a/lang/elasticpress.pot +++ b/lang/elasticpress.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPL v2 or later. msgid "" msgstr "" -"Project-Id-Version: ElasticPress 4.6.0\n" +"Project-Id-Version: ElasticPress 4.6.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/elasticpress\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-06-13T13:37:04+00:00\n" +"POT-Creation-Date: 2023-07-05T16:24:55+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" "X-Domain: elasticpress\n" @@ -585,46 +585,50 @@ msgstr "" msgid "Recommend alternative search terms for misspelled queries or terms with no results." msgstr "" +#: includes/classes/Feature/DidYouMean/DidYouMean.php:28 +msgid "https://elasticpress.zendesk.com/hc/en-us/articles/16673223107085-Did-You-Mean" +msgstr "" + #. translators: Tutorial URL -#: includes/classes/Feature/DidYouMean/DidYouMean.php:64 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:66 msgid "\"Did You Mean\" search feature provides alternative suggestions for misspelled or ambiguous search queries, enhancing search accuracy and user experience. To display suggestions in your theme, please follow this tutorial." msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:142 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:144 msgid "Did you mean" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:227 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:229 #: includes/classes/Feature/Search/Synonyms.php:89 #: includes/classes/Feature/SearchOrdering/SearchOrdering.php:186 msgid "This feature requires the \"Post Search\" feature to be enabled" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:242 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:244 msgid "Search behavior when no result is found" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:244 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:246 msgid "Display the top suggestion" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:245 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:247 msgid "Display all the suggestions" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:246 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:248 msgid "Automatically redirect the user to the top suggestion" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:284 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:286 msgid "Other suggestions:" msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:384 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:386 msgid "Showing results for: " msgstr "" -#: includes/classes/Feature/DidYouMean/DidYouMean.php:386 +#: includes/classes/Feature/DidYouMean/DidYouMean.php:388 msgid "No results for: " msgstr "" @@ -699,7 +703,7 @@ msgid "\"All\" will only show content that matches all facets. \"Any\" will show msgstr "" #. translators: URL -#: includes/classes/Feature/Facets/Facets.php:502 +#: includes/classes/Feature/Facets/Facets.php:505 msgid "Adds a Facet widget that administrators can add to the website's sidebars (widgetized areas), so that visitors can filter applicable content and search results by one or more taxonomy terms." msgstr ""