Skip to content

Commit 28495ba

Browse files
committed
Merge branch 'develop' into trunk
2 parents b8a89c5 + 7b2c8c7 commit 28495ba

11 files changed

Lines changed: 166 additions & 108 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,7 @@ jobs:
8282
run: composer install
8383

8484
- name: PHPCS check
85-
run: './vendor/bin/phpcs . -q --report=checkstyle --runtime-set testVersion 7.4- | cs2pr'
85+
run: './vendor/bin/phpcs . -q --ignore=tests/* --report=checkstyle --runtime-set testVersion 7.4- | cs2pr'
86+
87+
- name: PHPCS check tests
88+
run: './vendor/bin/phpcs tests/. -q --report=checkstyle --runtime-set testVersion 8.2- | cs2pr'

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ All notable changes to this project will be documented in this file, per [the Ke
1414
### Developer
1515
-->
1616

17+
## [5.3.1] - 2025-11-06
18+
19+
### Fixed
20+
* Compatibility with PHP 7.4. Props [@realrellek](https://github.com/realrellek) and [@felipeelia](https://github.com/felipeelia) via [#4232](https://github.com/10up/ElasticPress/pull/4232).
21+
1722
## [5.3.0] - 2025-11-05
1823

1924
Highlights of this version:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"phpcompatibility/phpcompatibility-wp": "*",
3939
"brianhenryie/strauss": "^0.21.0",
4040
"yoast/phpunit-polyfills": "^4.0",
41-
"phpunit/phpunit": "^9.0.0"
41+
"phpunit/phpunit": "^9.0.0",
42+
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
4243
},
4344
"scripts": {
4445
"lint": "phpcs . -s --runtime-set testVersion 7.4-",

composer.lock

Lines changed: 125 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

elasticpress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ElasticPress
44
* Plugin URI: https://github.com/10up/ElasticPress
55
* Description: A fast and flexible search and query engine for WordPress.
6-
* Version: 5.3.0
6+
* Version: 5.3.1
77
* Requires at least: 6.2
88
* Requires PHP: 7.4
99
* Author: 10up
@@ -33,7 +33,7 @@
3333
define( 'EP_URL', plugin_dir_url( __FILE__ ) );
3434
define( 'EP_PATH', plugin_dir_path( __FILE__ ) );
3535
define( 'EP_FILE', plugin_basename( __FILE__ ) );
36-
define( 'EP_VERSION', '5.3.0' );
36+
define( 'EP_VERSION', '5.3.1' );
3737

3838
define( 'EP_PHP_VERSION_MIN', '7.4' );
3939

includes/classes/Feature/WooCommerce/Products.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ protected function maybe_set_orderby( \WP_Query $query ) {
10351035
* @param array $meta_key The meta key to get the mapping for.
10361036
* @return string|array The mapped meta key.
10371037
*/
1038-
public function get_orderby_meta_mapping( $meta_key ): string|array {
1038+
public function get_orderby_meta_mapping( $meta_key ) {
10391039
/**
10401040
* Filter WooCommerce to Elasticsearch meta mapping
10411041
*

includes/dashboard.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,12 @@ function maybe_notice( $force = false ) {
326326
$notices = AdminNotices::factory()->get_notices();
327327

328328
foreach ( $notices as $notice_key => $notice ) {
329+
$class = 'notice notice-' . $notice['type'];
330+
if ( $notice['dismiss'] ) {
331+
$class .= ' is-dismissible';
332+
}
329333
?>
330-
<div data-ep-notice="<?php echo esc_attr( $notice_key ); ?>" class="notice notice-<?php echo esc_attr( $notice['type'] ); ?> <?php
331-
if ( $notice['dismiss'] ) :
332-
?>
333-
is-dismissible<?php endif; ?>">
334+
<div data-ep-notice="<?php echo esc_attr( $notice_key ); ?>" class="<?php echo esc_attr( $class ); ?>">
334335
<p>
335336
<?php echo wp_kses( $notice['html'], 'ep-html' ); ?>
336337
</p>

lang/elasticpress.pot

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the GPL v2 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: ElasticPress 5.3.0\n"
5+
"Project-Id-Version: ElasticPress 5.3.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/elasticpress\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-11-05T14:17:48+00:00\n"
12+
"POT-Creation-Date: 2025-11-06T14:03:59+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.8.1\n"
1515
"X-Domain: elasticpress\n"
@@ -2034,7 +2034,7 @@ msgid "Network Active"
20342034
msgstr ""
20352035

20362036
#: includes/classes/StatusReport/ElasticPress.php:79
2037-
#: includes/dashboard.php:650
2037+
#: includes/dashboard.php:651
20382038
#: includes/partials/settings-page.php:34
20392039
#: assets/js/blocks/facets/common/edit.js:87
20402040
#: assets/js/blocks/facets/date/edit.js:23
@@ -2308,49 +2308,47 @@ msgstr ""
23082308
msgid "Dashboard"
23092309
msgstr ""
23102310

2311-
#: includes/dashboard.php:640
2311+
#: includes/dashboard.php:641
23122312
msgid "ElasticPress Features"
23132313
msgstr ""
23142314

2315-
#: includes/dashboard.php:641
2315+
#: includes/dashboard.php:642
23162316
#: assets/js/features/index.js:34
2317-
#: dist/js/features-script.js:1
23182317
msgid "Features"
23192318
msgstr ""
23202319

2321-
#: includes/dashboard.php:649
2320+
#: includes/dashboard.php:650
23222321
msgid "ElasticPress Settings"
23232322
msgstr ""
23242323

2325-
#: includes/dashboard.php:658
23262324
#: includes/dashboard.php:659
2325+
#: includes/dashboard.php:660
23272326
#: assets/js/features/apps/features.js:185
23282327
#: assets/js/synonyms/apps/synonyms-settings.js:61
2329-
#: dist/js/features-script.js:1
23302328
#: dist/js/synonyms-script.js:1
23312329
msgid "Sync"
23322330
msgstr ""
23332331

2334-
#: includes/dashboard.php:667
2332+
#: includes/dashboard.php:668
23352333
msgid "ElasticPress Index Health"
23362334
msgstr ""
23372335

2338-
#: includes/dashboard.php:668
2336+
#: includes/dashboard.php:669
23392337
#: includes/partials/stats-page.php:35
23402338
msgid "Index Health"
23412339
msgstr ""
23422340

2343-
#: includes/dashboard.php:676
2341+
#: includes/dashboard.php:677
23442342
msgid "ElasticPress Status Report"
23452343
msgstr ""
23462344

2347-
#: includes/dashboard.php:677
2345+
#: includes/dashboard.php:678
23482346
#: assets/js/status-report/index.js:21
23492347
#: dist/js/status-report-script.js:1
23502348
msgid "Status Report"
23512349
msgstr ""
23522350

2353-
#: includes/dashboard.php:875
2351+
#: includes/dashboard.php:876
23542352
msgid "ElasticPress Indexing"
23552353
msgstr ""
23562354

@@ -2660,127 +2658,105 @@ msgid "It looks like you’re trying to use ElasticPress’s advanced features o
26602658
msgstr ""
26612659

26622660
#: assets/js/features/apps/features.js:157
2663-
#: dist/js/features-script.js:1
26642661
msgid "Could not save feature settings. Please try again."
26652662
msgstr ""
26662663

26672664
#: assets/js/features/apps/features.js:165
2668-
#: dist/js/features-script.js:1
26692665
msgid "View sync status"
26702666
msgstr ""
26712667

26722668
#: assets/js/features/apps/features.js:172
2673-
#: dist/js/features-script.js:1
26742669
msgid "Cannot save settings while a sync is in progress."
26752670
msgstr ""
26762671

26772672
#: assets/js/features/apps/features.js:177
2678-
#: dist/js/features-script.js:1
26792673
msgid "Changes to feature settings discarded."
26802674
msgstr ""
26812675

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

26872680
#: assets/js/features/apps/features.js:200
2688-
#: dist/js/features-script.js:1
26892681
msgid "Saving these settings will begin re-syncing your content. Save and sync now?"
26902682
msgstr ""
26912683

26922684
#: assets/js/features/apps/features.js:208
2693-
#: dist/js/features-script.js:1
26942685
msgid "Feature settings saved. Starting sync…"
26952686
msgstr ""
26962687

26972688
#: assets/js/features/apps/features.js:213
2698-
#: dist/js/features-script.js:1
26992689
msgid "Feature settings saved."
27002690
msgstr ""
27012691

27022692
#: assets/js/features/apps/features.js:256
2703-
#: dist/js/features-script.js:1
27042693
msgid "Other"
27052694
msgstr ""
27062695

27072696
#: assets/js/features/apps/features.js:279
2708-
#: dist/js/features-script.js:1
27092697
msgid "ElasticPress: Could not save feature settings."
27102698
msgstr ""
27112699

27122700
#: assets/js/features/apps/features.js:390
2713-
#: dist/js/features-script.js:1
27142701
msgid "Select a feature above."
27152702
msgstr ""
27162703

27172704
#: assets/js/features/apps/features.js:410
2718-
#: dist/js/features-script.js:1
27192705
msgid "Save and sync now"
27202706
msgstr ""
27212707

27222708
#: assets/js/features/apps/features.js:411
27232709
#: assets/js/synonyms/apps/synonyms-settings.js:174
27242710
#: assets/js/synonyms/components/common/edit-panel.js:101
27252711
#: assets/js/weighting/apps/weighting.js:59
2726-
#: dist/js/features-script.js:1
27272712
#: dist/js/synonyms-script.js:1
27282713
#: dist/js/weighting-script.js:1
27292714
msgid "Save changes"
27302715
msgstr ""
27312716

27322717
#: assets/js/features/apps/features.js:423
2733-
#: dist/js/features-script.js:1
27342718
msgid "Save and sync later"
27352719
msgstr ""
27362720

27372721
#: assets/js/features/apps/features.js:430
2738-
#: dist/js/features-script.js:1
27392722
msgid "Discard changes"
27402723
msgstr ""
27412724

27422725
#: assets/js/features/apps/features.js:475
2743-
#: dist/js/features-script.js:1
27442726
msgid "No features available."
27452727
msgstr ""
27462728

27472729
#. translators: %s: feature list
27482730
#: assets/js/features/components/control.js:96
2749-
#: dist/js/features-script.js:1
27502731
msgid "The %s feature must be enabled to use this feature."
27512732
msgid_plural "The %s features must be enabled to use this feature."
27522733
msgstr[0] ""
27532734
msgstr[1] ""
27542735

27552736
#. translators: %s: feature list
27562737
#: assets/js/features/components/control.js:103
2757-
#: dist/js/features-script.js:1
27582738
msgid "The %s feature must be enabled to use the following setting."
27592739
msgid_plural "The %s features must be enabled to use the following setting."
27602740
msgstr[0] ""
27612741
msgstr[1] ""
27622742

27632743
#: assets/js/features/components/control.js:115
2764-
#: dist/js/features-script.js:1
27652744
msgid "Enabling this feature requires re-syncing your content."
27662745
msgstr ""
27672746

27682747
#: assets/js/features/components/control.js:116
2769-
#: dist/js/features-script.js:1
27702748
msgid "A change to following setting requires re-syncing your content."
27712749
msgstr ""
27722750

27732751
#. translators: %1$s: first feature name, %2$s: second feature name
27742752
#. translators: %1$s: comma-separated list of feature names, %2$s: last feature name
27752753
#: assets/js/features/components/control.js:167
27762754
#: assets/js/features/components/control.js:174
2777-
#: dist/js/features-script.js:1
27782755
msgid "%1$s and %2$s"
27792756
msgstr ""
27802757

27812758
#: assets/js/features/components/control.js:175
27822759
#: assets/js/instant-results/components/facets/taxonomy-terms-facet.js:43
2783-
#: dist/js/features-script.js:1
27842760
#: dist/js/instant-results-script.js:1
27852761
msgid ", "
27862762
msgstr ""
@@ -2790,7 +2766,6 @@ msgid "Unavailable"
27902766
msgstr ""
27912767

27922768
#: assets/js/features/index.js:46
2793-
#: dist/js/features-script.js:1
27942769
msgid "ElasticPress Features add functionality to enhance search and queries on your site. You may choose to activate some or all of these Features depending on your needs. You can learn more about each Feature <a>here</a>."
27952770
msgstr ""
27962771

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elasticpress",
3-
"version": "5.3.0",
3+
"version": "5.3.1",
44
"license": "GPL-2.0-or-later",
55
"description": "A fast and flexible search and query engine for WordPress.",
66
"private": true,

0 commit comments

Comments
 (0)