Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] 5.1.2 #3931

Merged
merged 7 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ All notable changes to this project will be documented in this file, per [the Ke
### Security
-->

## [5.1.2] - 2024-06-11

**This is a security release affecting all previous versions of ElasticPress.**

### Security
* Missing nonce verification for the sync triggered during activation of some features. Props [@felipeelia](https://github.com/felipeelia) and [@dhakalananda](https://github.com/dhakalananda) via [#3929](https://github.com/10up/ElasticPress/pull/3929).
* Missing nonce verification for retrying the EP connection and fixed PHPCS linting rules. Props [@felipeelia](https://github.com/felipeelia) via [#3932](https://github.com/10up/ElasticPress/pull/3932).

## [5.1.1] - 2024-05-27

### Changed
Expand Down Expand Up @@ -2115,6 +2123,7 @@ This is a bug fix release with some filter additions.
- Initial plugin release

[Unreleased]: https://github.com/10up/ElasticPress/compare/trunk...develop
[5.1.2]: https://github.com/10up/ElasticPress/compare/5.1.1...5.1.2
[5.1.1]: https://github.com/10up/ElasticPress/compare/5.1.0...5.1.1
[5.1.0]: https://github.com/10up/ElasticPress/compare/5.0.2...5.1.0
[5.0.2]: https://github.com/10up/ElasticPress/compare/5.0.1...5.0.2
Expand Down
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ Thank you to all the people who have already contributed to this repository via
[Maarten Bruna (@ictbeheer)](https://github.com/ictbeheer),
[Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh),
[Lucas Grzegorczyk (@furai)](https://github.com/furai),
[Ananda Dhakal (@dhakalananda)](https://github.com/dhakalananda),
and
[@qazaqstan2025](https://github.com/qazaqstan2025).

Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The following versions of this project are currently being supported with securi

| Version | Supported |
| ------- | ------------------ |
| 4.5.0 | :white_check_mark: |
| <4.4.1 | :x: |
| 5.1.2 | :white_check_mark: |
| <5.1.1 | :x: |

## Reporting a Vulnerability

Expand Down Expand Up @@ -38,5 +38,5 @@ Past security advisories, if any, are listed below.

| Advisory Number | Type | Versions affected | Reported by | Additional Information |
|-----------------|--------------------|:-----------------:|-----------------------|-----------------------------|
| CVE-2024-35684 | CSRF | n/a - 5.1.1 | Patchstack Team | [CVE link](https://www.cve.org/CVERecord?id=CVE-2024-35684) |
| EP-2021-02-11 | CSRF Nonce Bypass | 3.5.2 - 3.5.3 | WordPress.org Plugin Review Team | [WPScan link](https://wpscan.com/vulnerability/ce655810-bd08-4042-ac3d-63def5c76994) |
| - | - | - | - | - |
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.1.1
* Version: 5.1.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.1.1' );
define( 'EP_VERSION', '5.1.2' );

define( 'EP_PHP_VERSION_MIN', '7.4' );

Expand Down
104 changes: 52 additions & 52 deletions lang/elasticpress.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: ElasticPress 5.1.1\n"
"Project-Id-Version: ElasticPress 5.1.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/elasticpress\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-05-24T15:51:06+00:00\n"
"POT-Creation-Date: 2024-06-11T12:43:16+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 @@ -41,116 +41,116 @@ msgstr ""
msgid "ElasticPress requires PHP version %s or later. Please upgrade PHP or disable the plugin."
msgstr ""

#: includes/classes/AdminNotices.php:126
#: includes/classes/AdminNotices.php:120
msgid "Autosuggest feature is enabled. If documents feature is enabled, your media will also become searchable in the frontend."
msgstr ""

#. translators: Feature name
#: includes/classes/AdminNotices.php:195
#: includes/classes/AdminNotices.php:189
msgid "Dashboard sync is disabled. The ElasticPress %s feature has been auto-activated! You will need to reindex using WP-CLI for it to work."
msgstr ""

#. translators: 1. Feature name; 2: Sync page URL
#: includes/classes/AdminNotices.php:201
#: includes/classes/AdminNotices.php:195
msgid "The ElasticPress %1$s feature has been auto-activated! You will need to <a href=\"%2$s\">run a sync</a> for it to work."
msgstr ""

#: includes/classes/AdminNotices.php:266
#: includes/classes/AdminNotices.php:260
msgid "Dashboard sync is disabled. The new version of ElasticPress requires that you delete all data and start a fresh sync using WP-CLI."
msgstr ""

#. translators: Sync Page URL
#: includes/classes/AdminNotices.php:270
#: includes/classes/AdminNotices.php:264
msgid "The new version of ElasticPress requires that you <a href=\"%s\">delete all data and start a fresh sync</a>."
msgstr ""

#: includes/classes/AdminNotices.php:275
#: includes/classes/AdminNotices.php:269
msgid "Please note that some ElasticPress functionality may be impaired and/or content may not be searchable until the full sync has been performed."
msgstr ""

#: includes/classes/AdminNotices.php:330
#: includes/classes/AdminNotices.php:324
msgid "Dashboard sync is disabled, but ElasticPress is almost ready to go. Trigger a sync from WP-CLI."
msgstr ""

#. translators: Sync Page URL
#: includes/classes/AdminNotices.php:334
#: includes/classes/AdminNotices.php:328
msgid "ElasticPress is almost ready to go. You just need to <a href=\"%s\">sync your content</a>."
msgstr ""

#. translators: Sync Page URL
#: includes/classes/AdminNotices.php:386
#: includes/classes/AdminNotices.php:380
msgid "ElasticPress is almost ready to go. You just need to <a href=\"%s\">enter your settings</a>."
msgstr ""

#. translators: 1. Current Elasticsearch version; 2. Minimum required ES version
#: includes/classes/AdminNotices.php:443
#: includes/classes/AdminNotices.php:437
msgid "Your Elasticsearch version %1$s is below the minimum required Elasticsearch version %2$s. ElasticPress may or may not work properly."
msgstr ""

#. translators: 1. Current Elasticsearch version; 2. Maximum supported ES version
#: includes/classes/AdminNotices.php:495
#: includes/classes/AdminNotices.php:489
msgid "Your Elasticsearch version %1$s is above the maximum required Elasticsearch version %2$s. ElasticPress may or may not work properly."
msgstr ""

#. translators: Document page URL
#: includes/classes/AdminNotices.php:539
#: includes/classes/AdminNotices.php:533
msgid "Your server software is not supported. To learn more about server compatibility please <a href=\"%s\">visit our documentation</a>."
msgstr ""

#. translators: 1. Current URL with retry parameter; 2. Settings Page URL
#: includes/classes/AdminNotices.php:600
#: includes/classes/AdminNotices.php:601
msgid "There is a problem with connecting to your Elasticsearch host. ElasticPress can <a href=\"%1$s\">try your host again</a>, or you may need to <a href=\"%2$s\">change your settings</a>."
msgstr ""

#. translators: Response Code Number
#: includes/classes/AdminNotices.php:608
#: includes/classes/AdminNotices.php:609
msgid "Response Code: %s"
msgstr ""

#. translators: Response Code Message
#: includes/classes/AdminNotices.php:613
#: includes/classes/AdminNotices.php:614
msgid "Response error: %s"
msgstr ""

#. translators: 1. <em>; 2. </em>
#: includes/classes/AdminNotices.php:675
#: includes/classes/AdminNotices.php:676
msgid "It seems the mapping data in your index does not match the Elasticsearch version used. We recommend to reindex your content using the sync button on the top of the screen or through wp-cli by adding the %1$s--setup%2$s flag"
msgstr ""

#. translators: 1. Current mapping file; 2. Mapping file that should be used
#: includes/classes/AdminNotices.php:682
#: includes/classes/AdminNotices.php:683
msgid "Current mapping: %1$s. Expected mapping: %2$s"
msgstr ""

#. translators: Index Health URL
#: includes/classes/AdminNotices.php:740
#: includes/classes/AdminNotices.php:741
msgid "It looks like one or more of your indices are running on a single node. While this won't prevent you from using ElasticPress, depending on your site's specific needs this can represent a performance issue. Please check the <a href=\"%s\">Index Health</a> page where you can check the health of all of your indices."
msgstr ""

#. translators: Elasticsearch or ElasticPress.io; 2. Link to article; 3. Link to article
#: includes/classes/AdminNotices.php:796
#: includes/classes/AdminNotices.php:797
msgid "Your website content has more public custom fields than %1$s is able to store. Check our articles about <a href=\"%2$s\">Elasticsearch field limitations</a> and <a href=\"%3$s\">how to index just the custom fields you need</a> before trying to sync."
msgstr ""

#: includes/classes/AdminNotices.php:797
#: includes/classes/AdminNotices.php:813
#: includes/classes/AdminNotices.php:798
#: includes/classes/AdminNotices.php:814
#: includes/classes/ElasticsearchErrorInterpreter.php:93
#: includes/classes/StatusReport/ElasticPressIo.php:30
#: assets/js/sync/index.js:269
#: dist/js/sync-script.js:1
msgid "ElasticPress.io"
msgstr ""

#: includes/classes/AdminNotices.php:797
#: includes/classes/AdminNotices.php:813
#: includes/classes/AdminNotices.php:798
#: includes/classes/AdminNotices.php:814
#: includes/classes/ElasticsearchErrorInterpreter.php:93
#: assets/js/sync/index.js:270
#: dist/js/sync-script.js:1
msgid "Elasticsearch"
msgstr ""

#. translators: Elasticsearch or ElasticPress.io; 2. Link to article; 3. Link to article
#: includes/classes/AdminNotices.php:812
#: includes/classes/AdminNotices.php:813
msgid "Your website content seems to have more public custom fields than %1$s is able to store. Check our articles about <a href=\"%2$s\">Elasticsearch field limitations</a> and <a href=\"%3$s\">how to index just the custom fields you need</a> if you receive any errors while syncing."
msgstr ""

Expand Down Expand Up @@ -489,7 +489,7 @@ msgstr ""

#: includes/classes/Feature.php:392
#: includes/classes/StatusReport/ElasticPress.php:79
#: includes/dashboard.php:648
#: includes/dashboard.php:650
#: includes/partials/settings-page.php:34
#: assets/js/blocks/facets/common/edit.js:87
#: assets/js/blocks/facets/date/edit.js:23
Expand Down Expand Up @@ -2213,53 +2213,53 @@ msgstr ""
msgid "Feature registration API"
msgstr ""

#: includes/dashboard.php:284
#: includes/dashboard.php:288
msgid "Dashboard"
msgstr ""

#: includes/dashboard.php:638
#: includes/dashboard.php:640
msgid "ElasticPress Features"
msgstr ""

#: includes/dashboard.php:639
#: includes/dashboard.php:641
#: assets/js/features/index.js:34
#: dist/js/features-script.js:1
msgid "Features"
msgstr ""

#: includes/dashboard.php:647
#: includes/dashboard.php:649
msgid "ElasticPress Settings"
msgstr ""

#: includes/dashboard.php:656
#: includes/dashboard.php:657
#: assets/js/features/apps/features.js:82
#: includes/dashboard.php:658
#: includes/dashboard.php:659
#: assets/js/features/apps/features.js:83
#: assets/js/synonyms/apps/synonyms-settings.js:61
#: dist/js/features-script.js:1
#: dist/js/synonyms-script.js:1
msgid "Sync"
msgstr ""

#: includes/dashboard.php:665
#: includes/dashboard.php:667
msgid "ElasticPress Index Health"
msgstr ""

#: includes/dashboard.php:666
#: includes/dashboard.php:668
#: includes/partials/stats-page.php:35
msgid "Index Health"
msgstr ""

#: includes/dashboard.php:674
#: includes/dashboard.php:676
msgid "ElasticPress Status Report"
msgstr ""

#: includes/dashboard.php:675
#: includes/dashboard.php:677
#: assets/js/status-report/index.js:21
#: dist/js/status-report-script.js:1
msgid "Status Report"
msgstr ""

#: includes/dashboard.php:873
#: includes/dashboard.php:875
msgid "ElasticPress Indexing"
msgstr ""

Expand Down Expand Up @@ -2603,57 +2603,57 @@ msgstr ""
msgid "It looks like you’re trying to use ElasticPress’s advanced features only. If you’d like to activate basic search, please select Cancel and activate the Post Search Feature. Otherwise, please click Ok to configure advanced features."
msgstr ""

#: assets/js/features/apps/features.js:54
#: assets/js/features/apps/features.js:55
#: dist/js/features-script.js:1
msgid "Could not save feature settings. Please try again."
msgstr ""

#: assets/js/features/apps/features.js:62
#: assets/js/features/apps/features.js:63
#: dist/js/features-script.js:1
msgid "View sync status"
msgstr ""

#: assets/js/features/apps/features.js:69
#: assets/js/features/apps/features.js:70
#: dist/js/features-script.js:1
msgid "Cannot save settings while a sync is in progress."
msgstr ""

#: assets/js/features/apps/features.js:74
#: assets/js/features/apps/features.js:75
#: dist/js/features-script.js:1
msgid "Changes to feature settings discarded."
msgstr ""

#: assets/js/features/apps/features.js:89
#: assets/js/features/apps/features.js:90
#: dist/js/features-script.js:1
msgid "If you choose to sync later some settings changes may not take effect until the sync is performed. Save and sync later?"
msgstr ""

#: assets/js/features/apps/features.js:97
#: assets/js/features/apps/features.js:98
#: dist/js/features-script.js:1
msgid "Saving these settings will begin re-syncing your content. Save and sync now?"
msgstr ""

#: assets/js/features/apps/features.js:105
#: assets/js/features/apps/features.js:106
#: dist/js/features-script.js:1
msgid "Feature settings saved. Starting sync…"
msgstr ""

#: assets/js/features/apps/features.js:110
#: assets/js/features/apps/features.js:111
#: dist/js/features-script.js:1
msgid "Feature settings saved."
msgstr ""

#: assets/js/features/apps/features.js:142
#: assets/js/features/apps/features.js:143
#: dist/js/features-script.js:1
msgid "ElasticPress: Could not save feature settings."
msgstr ""

#: assets/js/features/apps/features.js:244
#: assets/js/features/apps/features.js:245
#: dist/js/features-script.js:1
msgid "Save and sync now"
msgstr ""

#: assets/js/features/apps/features.js:245
#: assets/js/features/apps/features.js:246
#: assets/js/synonyms/apps/synonyms-settings.js:174
#: assets/js/synonyms/components/common/edit-panel.js:95
#: assets/js/weighting/apps/weighting.js:59
Expand All @@ -2663,12 +2663,12 @@ msgstr ""
msgid "Save changes"
msgstr ""

#: assets/js/features/apps/features.js:257
#: assets/js/features/apps/features.js:258
#: dist/js/features-script.js:1
msgid "Save and sync later"
msgstr ""

#: assets/js/features/apps/features.js:264
#: assets/js/features/apps/features.js:265
#: dist/js/features-script.js:1
msgid "Discard changes"
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.

Loading
Loading