Skip to content

Commit

Permalink
Merge pull request #3812 from 10up/release/5.0.2
Browse files Browse the repository at this point in the history
[Release] 5.0.2
  • Loading branch information
felipeelia authored Jan 16, 2024
2 parents 4ac9dd4 + bfe37ff commit 38f2105
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 20 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ All notable changes to this project will be documented in this file, per [the Ke
### Security
-->

## [5.0.2] - 2024-01-16

### Changed
* [Terms] Counts are now calculated with `wp_count_terms()` in `query_db`. Props [@rebeccahum](https://github.com/rebeccahum) via [#3791](https://github.com/10up/ElasticPress/pull/3791).
* Composer and npm files are now part of the final package. Props [@felipeelia](https://github.com/felipeelia) via [#3810](https://github.com/10up/ElasticPress/pull/3810).

### Fixed
* [WooCommerce] Not use a hard-coded list of order post types. Props [@felipeelia](https://github.com/felipeelia) via [#3807](https://github.com/10up/ElasticPress/pull/3807).
* [Autosuggest] Stop calling the get`-autosuggest-allowed` endpoint to build the REST API schema. Props [@felipeelia](https://github.com/felipeelia) via [#3809](https://github.com/10up/ElasticPress/pull/3809).

### Security
* Bumped `follow-redirects` from 1.15.3 to 1.15.4. Props [@dependabot](https://github.com/dependabot) via [#3808](https://github.com/10up/ElasticPress/pull/3808).

## [5.0.1] - 2023-12-12

### Added
Expand Down Expand Up @@ -2050,6 +2063,7 @@ This is a bug fix release with some filter additions.
- Initial plugin release

[Unreleased]: https://github.com/10up/ElasticPress/compare/trunk...develop
[5.0.2]: https://github.com/10up/ElasticPress/compare/5.0.1...5.0.2
[5.0.1]: https://github.com/10up/ElasticPress/compare/5.0.0...5.0.1
[5.0.0]: https://github.com/10up/ElasticPress/compare/4.7.2...5.0.0
[4.7.2]: https://github.com/10up/ElasticPress/compare/4.7.1...4.7.2
Expand Down
4 changes: 2 additions & 2 deletions elasticpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: 5.0.1
* Version: 5.0.2
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: 10up
Expand Down Expand Up @@ -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', '5.0.1' );
define( 'EP_VERSION', '5.0.2' );

define( 'EP_PHP_VERSION_MIN', '7.4' );

Expand Down
9 changes: 5 additions & 4 deletions includes/classes/Feature/Autosuggest/Autosuggest.php
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ public function intercept_remote_request() {
* @since 5.0.0
*/
protected function maybe_add_epio_settings_schema() {
if ( ! Utils\is_epio() ) {
return;
}

$epio_link = 'https://elasticpress.io';
$epio_autosuggest_kb_link = 'https://elasticpress.zendesk.com/hc/en-us/articles/360055402791';
$status_report_link = defined( 'EP_IS_NETWORK' ) && EP_IS_NETWORK ? network_admin_url( 'admin.php?page=elasticpress-status-report' ) : admin_url( 'admin.php?page=elasticpress-status-report' );
Expand Down Expand Up @@ -895,10 +899,7 @@ protected function set_settings_schema() {
],
];

if ( Utils\is_epio() ) {
$this->maybe_add_epio_settings_schema();
return;
}
$this->maybe_add_epio_settings_schema();

$set_in_wp_config = defined( 'EP_AUTOSUGGEST_ENDPOINT' ) && EP_AUTOSUGGEST_ENDPOINT;

Expand Down
20 changes: 10 additions & 10 deletions lang/elasticpress.pot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright (C) 2023 10up
# Copyright (C) 2024 10up
# This file is distributed under the GPL v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: ElasticPress 5.0.1\n"
"Project-Id-Version: ElasticPress 5.0.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/elasticpress\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-12-12T13:14:03+00:00\n"
"POT-Creation-Date: 2024-01-16T13:04:02+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: elasticpress\n"
Expand Down Expand Up @@ -567,7 +567,7 @@ msgid "When enabled, a gtag tracking event is fired when an autosuggest result i
msgstr ""

#: includes/classes/Feature/Autosuggest/Autosuggest.php:128
#: includes/classes/Feature/Autosuggest/Autosuggest.php:914
#: includes/classes/Feature/Autosuggest/Autosuggest.php:910
msgid "Endpoint URL"
msgstr ""

Expand All @@ -576,7 +576,7 @@ msgid "Your autosuggest endpoint is set in wp-config.php"
msgstr ""

#: includes/classes/Feature/Autosuggest/Autosuggest.php:136
#: includes/classes/Feature/Autosuggest/Autosuggest.php:912
#: includes/classes/Feature/Autosuggest/Autosuggest.php:908
msgid "This address will be exposed to the public."
msgstr ""

Expand All @@ -598,23 +598,23 @@ msgstr ""

#. translators: 1: <a> tag (ElasticPress.io); 2. </a>; 3: <a> tag (KB article); 4. </a>; 5: <a> tag (Site Health Debug Section); 6. </a>;
#: includes/classes/Feature/Autosuggest/Autosuggest.php:792
#: includes/classes/Feature/Autosuggest/Autosuggest.php:868
#: includes/classes/Feature/Autosuggest/Autosuggest.php:867
msgid "You are directly connected to %1$sElasticPress.io%2$s, ensuring the most performant Autosuggest experience. %3$sLearn more about what this means%4$s or %5$sclick here for debug information%6$s."
msgstr ""

#: includes/classes/Feature/Autosuggest/Autosuggest.php:889
#: includes/classes/Feature/Autosuggest/Autosuggest.php:888
msgid "Input additional selectors where you would like to include autosuggest, separated by a comma. Example: <code>.custom-selector, #custom-id, input[type=\"text\"]</code>"
msgstr ""

#: includes/classes/Feature/Autosuggest/Autosuggest.php:891
#: includes/classes/Feature/Autosuggest/Autosuggest.php:890
msgid "Additional selectors"
msgstr ""

#: includes/classes/Feature/Autosuggest/Autosuggest.php:897
#: includes/classes/Feature/Autosuggest/Autosuggest.php:896
msgid "Enable to fire a gtag tracking event when an autosuggest result is clicked."
msgstr ""

#: includes/classes/Feature/Autosuggest/Autosuggest.php:898
#: includes/classes/Feature/Autosuggest/Autosuggest.php:897
msgid "Trigger Google Analytics events"
msgstr ""

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elasticpress",
"version": "5.0.1",
"version": "5.0.2",
"license": "GPL-2.0-or-later",
"description": "A fast and flexible search and query engine for WordPress.",
"devDependencies": {
Expand Down
18 changes: 17 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: 10up, tlovett1, vhauri, tott, felipeelia, oscarssanchez, cmmarslender
Tags: performance, slow, search, elasticsearch, fuzzy, facet, aggregation, searching, autosuggest, suggest, elastic, advanced search, woocommerce, related posts, woocommerce
Tested up to: 6.4
Stable tag: 5.0.1
Stable tag: 5.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -79,6 +79,22 @@ For sure! Feel free to submit ideas or feedback in general to our [GitHub repo](

== Changelog ==

= 5.0.2 - 2024-01-16 =

__Changed:__

* [Terms] Counts are now calculated with `wp_count_terms()` in `query_db`. Props [@rebeccahum](https://github.com/rebeccahum).
* Composer and npm files are now part of the final package. Props [@felipeelia](https://github.com/felipeelia).

__Fixed:__

* [WooCommerce] Not use a hard-coded list of order post types. Props [@felipeelia](https://github.com/felipeelia).
* [Autosuggest] Stop calling the get`-autosuggest-allowed` endpoint to build the REST API schema. Props [@felipeelia](https://github.com/felipeelia).

__Security:__

* Bumped `follow-redirects` from 1.15.3 to 1.15.4. Props [@dependabot](https://github.com/dependabot).

= 5.0.1 - 2023-12-12 =

__Added:__
Expand Down

0 comments on commit 38f2105

Please sign in to comment.