Skip to content

Commit

Permalink
Initial update of min WP version
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Feb 12, 2025
1 parent e3ab7cc commit 3b2dae3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/hookdoc-tmpl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

ElasticPress, a fast and flexible search and query engine for WordPress, enables WordPress to find or “query” relevant content extremely fast through a variety of highly customizable features. WordPress out-of-the-box struggles to analyze content relevancy and can be very slow. ElasticPress supercharges your WordPress website making for happier users and administrators. The plugin even contains features for popular plugins.

**ElasticPress 5.2:** Minimum versions required for ElasticPress 5.2 are:
* [Elasticsearch](https://www.elastic.co) 5.2+
* [WordPress](https://wordpress.org) 6.2+
* [PHP](https://php.net/) 7.4+

**ElasticPress 5.0:** Minimum versions required for ElasticPress 5.0 are:
* [Elasticsearch](https://www.elastic.co) 5.2+
* [WordPress](https://wordpress.org) 6.0+
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
esVersion: ['7.10.1', '8.12.2']
core:
- {name: 'WP latest', version: '', wcVersion: ''}
- {name: 'WP minimum', version: '6.0', wcVersion: '6.4.0'}
- {name: 'WP minimum', version: '6.2', wcVersion: '6.4.0'}

steps:
- name: Checkout
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
testGroup: ['@slow', '-@slow']
core:
- {name: 'WP latest', version: '', wcVersion: ''}
- {name: 'WP minimum', version: '6.0', wcVersion: '6.4.0'}
- {name: 'WP minimum', version: '6.2', wcVersion: '6.4.0'}

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ElasticPress, a fast and flexible search and query engine for WordPress, enables
ElasticPress requires these software with the following versions:

* [Elasticsearch](https://www.elastic.co) 5.2+
* [WordPress](https://wordpress.org) 6.0+
* [WordPress](https://wordpress.org) 6.2+
* [PHP](https://php.net/) 7.4+

### Compatibility
Expand Down
3 changes: 0 additions & 3 deletions bin/setup-cypress-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ else
./bin/wp-env-cli tests-wordpress "wp --allow-root plugin install woocommerce --activate --version=${WC_VERSION}"
fi

# Set twentytwentyone as the active theme here, as 2025 won't work with WP 6.0
./bin/wp-env-cli tests-wordpress "wp --allow-root theme activate twentytwentyone"

# Fix the debug-bar-elasticpress dependency of ElasticPress
./bin/wp-env-cli tests-wordpress "wp --allow-root plugin install debug-bar-elasticpress"
./bin/wp-env-cli tests-wordpress "sed -i \"s/Requires Plugins: elasticpress/Requires Plugins: $PLUGIN_NAME/\" /var/www/html/wp-content/plugins/debug-bar-elasticpress/debug-bar-elasticpress.php"
Expand Down
2 changes: 1 addition & 1 deletion elasticpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/10up/ElasticPress
* Description: A fast and flexible search and query engine for WordPress.
* Version: 5.1.4
* Requires at least: 6.0
* Requires at least: 6.2
* Requires PHP: 7.4
* Author: 10up
* Author URI: https://10up.com
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Cypress.Commands.add('publishPost', (postData, viewPost) => {

if (newPostData.password && newPostData.password !== '') {
cy.get('@iframe').find('h1.editor-post-title__input').click();
if (wpVersion === '6.0') {
if (wpVersion === '6.2') {
cy.get('body').then(($body) => {
const $button = $body.find('.edit-post-post-visibility__toggle');
if (!$button.is(':visible')) {
Expand Down
6 changes: 3 additions & 3 deletions tests/cypress/support/commands/block-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Cypress.Commands.add('supportsBlockColors', { prevSubject: true }, (subject, isE
if (isEdit) {
cy.get('.block-editor-block-inspector').as('blockInspector');

if (wpVersion === '6.0') {
if (wpVersion === '6.2') {
cy.get(
'.color-block-support-panel .components-button[aria-label="View and add options"]',
).click();
Expand Down Expand Up @@ -95,7 +95,7 @@ Cypress.Commands.add('supportsBlockColors', { prevSubject: true }, (subject, isE

Cypress.Commands.add('supportsBlockTypography', { prevSubject: true }, (subject, isEdit) => {
if (isEdit) {
if (wpVersion === '6.0') {
if (wpVersion === '6.2') {
cy.get(
'.typography-block-support-panel .components-button[aria-label="View and add options"]',
).click();
Expand Down Expand Up @@ -141,7 +141,7 @@ Cypress.Commands.add('supportsBlockTypography', { prevSubject: true }, (subject,

Cypress.Commands.add('supportsBlockDimensions', { prevSubject: true }, (subject, isEdit) => {
if (isEdit) {
if (wpVersion === '6.0') {
if (wpVersion === '6.2') {
cy.get(
'.dimensions-block-support-panel .components-button[aria-label="View and add options"]',
).click();
Expand Down

0 comments on commit 3b2dae3

Please sign in to comment.