Skip to content

Commit

Permalink
Merge branch 'develop' into feature/3767
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarssanchezz authored Feb 26, 2025
2 parents a3e3ff6 + 377fb88 commit 304fe86
Show file tree
Hide file tree
Showing 105 changed files with 14,569 additions and 5,230 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
8 changes: 4 additions & 4 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 @@ -79,7 +79,7 @@ jobs:
run: npm run build

- name: Set up database
run: npm run cypress:setup -- --wp-version=${{ matrix.core.version }} --wc-version=${{ matrix.core.wcVersion }}
run: npm run cypress:setup -- --wp-version=${{ matrix.core.version }} --wc-version=${{ matrix.core.wcVersion }} --acf-pro-license='${{ secrets.ACF_PRO_LICENSE_KEY }}'

- name: Test
run: npm run cypress:run -- --env grepTags=${{ matrix.testGroup }}
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 Expand Up @@ -166,7 +166,7 @@ jobs:
run: npm run build

- name: Set up database
run: npm run cypress:setup -- --ep-host=${{ secrets.EPIO_HOST }} --es-shield='${{ secrets.EPIO_SHIELD }}' --ep-index-prefix=${{ secrets.EPIO_INDEX_PREFIX }} --wp-version=${{ matrix.core.version }} --wc-version=${{ matrix.core.wcVersion }}
run: npm run cypress:setup -- --ep-host=${{ secrets.EPIO_HOST }} --es-shield='${{ secrets.EPIO_SHIELD }}' --ep-index-prefix=${{ secrets.EPIO_INDEX_PREFIX }} --wp-version=${{ matrix.core.version }} --wc-version=${{ matrix.core.wcVersion }} --acf-pro-license='${{ secrets.ACF_PRO_LICENSE_KEY }}'

- name: Test
run: npm run cypress:run -- --env grepTags=${{ matrix.testGroup }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jobs:
run: composer install

- name: PHPCS check
run: './vendor/bin/phpcs . -q --report=checkstyle --warning-severity=6 --runtime-set testVersion 7.4- | cs2pr'
run: './vendor/bin/phpcs . -q --report=checkstyle --runtime-set testVersion 7.4- | cs2pr'
29 changes: 14 additions & 15 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"extends": [
"@10up/stylelint-config"
],
"rules": {
"scale-unlimited/declaration-strict-value": [
"/color/",
{
"ignoreValues": ["currentColor", "inherit", "initial", "transparent", "unset"],
"severity": "warning"
}
],
"font-family-no-missing-generic-family-keyword": null,
"declaration-property-unit-allowed-list": null,
"at-rule-disallowed-list": null
}
"extends": [
"@10up/stylelint-config"
],
"rules": {
"scale-unlimited/declaration-strict-value": [
"/color/",
{
"ignoreValues": ["currentcolor", "inherit", "initial", "transparent", "unset"],
"severity": "warning"
}
],
"font-family-no-missing-generic-family-keyword": null,
"declaration-property-unit-allowed-list": null
}

}
2 changes: 2 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
],
"mappings": {
".htaccess": "./tests/cypress/wordpress-files/.htaccess",
"wp-content/composer.json": "./tests/cypress/wordpress-files/composer.json",
"wp-content/mu-plugins/disable-welcome-guide.php": "./tests/cypress/wordpress-files/test-mu-plugins/disable-welcome-guide.php",
"wp-content/mu-plugins/skip-wp-lookup.php": "./tests/cypress/wordpress-files/test-mu-plugins/skip-wp-lookup.php",
"wp-content/mu-plugins/unique-index-name.php": "./tests/cypress/wordpress-files/test-mu-plugins/unique-index-name.php",
Expand All @@ -29,6 +30,7 @@
"wp-content/plugins/enable-debug-bar.php": "./tests/cypress/wordpress-files/test-plugins/enable-debug-bar.php",
"wp-content/plugins/fake-log-messages.php": "./tests/cypress/wordpress-files/test-plugins/fake-log-messages.php",
"wp-content/plugins/fake-new-activation.php": "./tests/cypress/wordpress-files/test-plugins/fake-new-activation.php",
"wp-content/plugins/filter-instant-results-category-terms.php": "./tests/cypress/wordpress-files/test-plugins/filter-instant-results-category-terms.php",
"wp-content/plugins/filter-instant-results-per-page.php": "./tests/cypress/wordpress-files/test-plugins/filter-instant-results-per-page.php",
"wp-content/plugins/filter-instant-results-args-schema.php": "./tests/cypress/wordpress-files/test-plugins/filter-instant-results-args-schema.php",
"wp-content/plugins/filter-autosuggest-navigate-callback.php": "./tests/cypress/wordpress-files/test-plugins/filter-autosuggest-navigate-callback.php",
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
12 changes: 7 additions & 5 deletions assets/css/autosuggest.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
@import "./global/colors.css";

.ep-autosuggest-container {
position: relative;

& .ep-autosuggest {
background: #fff;
border: 1px solid #ccc;
background: var(--ep-c-white);
border: 1px solid var(--ep-c-white-gray);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
display: none;
position: absolute;
Expand All @@ -19,14 +21,14 @@
font-family: sans-serif;

& > a.autosuggest-link {
color: #000;
color: var(--ep-c-black);
cursor: pointer;
display: block;
padding: 2px 10px;

&:hover,
&:active {
background-color: #eee;
background-color: var(--ep-c-medium-white);
text-decoration: none;
}
}
Expand All @@ -35,7 +37,7 @@
}

& .selected {
background-color: #eee;
background-color: var(--ep-c-medium-white);
text-decoration: none;
}
}
Loading

0 comments on commit 304fe86

Please sign in to comment.