Skip to content

Commit eb166d7

Browse files
committed
Merge branch 'develop' into trunk
2 parents 1b321d7 + 2db8d39 commit eb166d7

File tree

153 files changed

+17092
-5820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+17092
-5820
lines changed

.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ body:
5555
label: WordPress and ElasticPress information
5656
placeholder: |
5757
<details><summary>Status Report info:</summary>
58-
<!-- Go to ElasticPress > Status Report, click "Copy status report to clipboard", and paste those details here. -->
59-
<!-- If your ElasticPress version is below 4.4.0, then please go to Tools > Site Health > Info tab, click "Copy site info to clipboard", and paste here those details instead. -->
58+
<!-- Go to ElasticPress > Status Report and click on "Generate Full Status Report" -->
59+
<!-- Click "Copy status report to clipboard" and paste those details here. -->
60+
<!-- If your ElasticPress version is below 4.4.0, then please go to Tools > Site Health > Info tab, click "Copy site info to clipboard", and paste those details here instead. -->
6061
</details>
6162
validations:
6263
required: false

.github/hookdoc-tmpl/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
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.
44

5+
**ElasticPress 5.2:** Minimum versions required for ElasticPress 5.2 are:
6+
* [Elasticsearch](https://www.elastic.co) 5.2+
7+
* [WordPress](https://wordpress.org) 6.2+
8+
* [PHP](https://php.net/) 7.4+
9+
510
**ElasticPress 5.0:** Minimum versions required for ElasticPress 5.0 are:
611
* [Elasticsearch](https://www.elastic.co) 5.2+
712
* [WordPress](https://wordpress.org) 6.0+

.github/workflows/build-and-tag.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Build and Tag
2+
3+
env:
4+
NODE_VERSION: "20"
5+
26
on:
37
push:
48
branches:
@@ -22,10 +26,10 @@ jobs:
2226
- name: composer install
2327
run: composer install
2428

25-
- name: install node v20
29+
- name: "install node v${{ env.NODE_VERSION }}"
2630
uses: actions/setup-node@v4
2731
with:
28-
node-version: 20
32+
node-version: ${{ env.NODE_VERSION }}
2933

3034
- name: Build
3135
run: |

.github/workflows/build-docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build Docs
22

3+
env:
4+
NODE_VERSION: "20"
5+
36
on:
47
push:
58
branches:
@@ -54,10 +57,10 @@ jobs:
5457
wp package install felipeelia/cli-command-docs:dev-trunk
5558
wp cli-command-docs elasticpress --custom-order=sync,activate-feature,deactivate-feature,list-features,get-algorithm-version,set-algorithm-version --remove=delete_transient_on_int,custom_get_transient,stop_on_failed_mapping,call_ep_cli_put_mapping,should_interrupt_sync,index_output,get-indexes,get-cluster-indexes,index,clear-index,get-indexing-status,get-last-cli-index,stop-indexing --custom-intro='The following WP-CLI commands are supported by ElasticPress:' > wp-content/plugins/elasticpress/docs/wp-cli.md
5659
57-
- name: Use Node.js 20
60+
- name: "install node v${{ env.NODE_VERSION }}"
5861
uses: actions/setup-node@v4
5962
with:
60-
node-version: '20'
63+
node-version: ${{ env.NODE_VERSION }}
6164

6265
- name: npm ci, and build docs
6366
run: |

.github/workflows/build-with-vendor-prefixed.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build with vendor-prefixed
22

3+
env:
4+
NODE_VERSION: "20"
5+
36
on:
47
pull_request:
58
branches:
@@ -24,19 +27,16 @@ jobs:
2427
- name: composer install
2528
run: composer install
2629

27-
- name: install node v20
30+
- name: "install node v${{ env.NODE_VERSION }}"
2831
uses: actions/setup-node@v4
2932
with:
30-
node-version: 20
33+
node-version: ${{ env.NODE_VERSION }}
3134

3235
- name: Build
3336
run: |
3437
npm ci
3538
npm run build
3639
37-
- name: Setup
38-
run: 'echo "VERSION=$(grep -Po ''\"version\": \"[0-9\\.]+\"'' package.json | grep -Po ''[0-9\\.]+'')" >> $GITHUB_ENV'
39-
4040
- name: Zip
4141
run: npm run build:zip
4242

@@ -47,4 +47,3 @@ jobs:
4747
retention-days: 2
4848
path: |
4949
${{ github.workspace }}/elasticpress.zip
50-

.github/workflows/cypress-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
esVersion: ['7.10.1', '8.12.2']
3030
core:
3131
- {name: 'WP latest', version: '', wcVersion: ''}
32-
- {name: 'WP minimum', version: '6.0', wcVersion: '6.4.0'}
32+
- {name: 'WP minimum', version: '6.2', wcVersion: '6.4.0'}
3333

3434
steps:
3535
- name: Checkout
@@ -79,7 +79,7 @@ jobs:
7979
run: npm run build
8080

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

8484
- name: Test
8585
run: npm run cypress:run -- --env grepTags=${{ matrix.testGroup }}
@@ -117,7 +117,7 @@ jobs:
117117
testGroup: ['@slow', '-@slow']
118118
core:
119119
- {name: 'WP latest', version: '', wcVersion: ''}
120-
- {name: 'WP minimum', version: '6.0', wcVersion: '6.4.0'}
120+
- {name: 'WP minimum', version: '6.2', wcVersion: '6.4.0'}
121121

122122
steps:
123123
- name: Checkout
@@ -166,7 +166,7 @@ jobs:
166166
run: npm run build
167167

168168
- name: Set up database
169-
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 }}
169+
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 }}'
170170

171171
- name: Test
172172
run: npm run cypress:run -- --env grepTags=${{ matrix.testGroup }}

.github/workflows/lint.yml

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

8484
- name: PHPCS check
85-
run: './vendor/bin/phpcs . -q --report=checkstyle --warning-severity=6 --runtime-set testVersion 7.4- | cs2pr'
85+
run: './vendor/bin/phpcs . -q --report=checkstyle --runtime-set testVersion 7.4- | cs2pr'

.github/workflows/secrets-scan.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Secrets Scan
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- trunk
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Secret Scanning
19+
uses: trufflesecurity/trufflehog@main
20+
with:
21+
extra_args: --results=verified,unknown
22+

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Unit Test
1+
name: Unit Tests
22

33
env:
44
COMPOSER_VERSION: "2"

.stylelintrc

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"extends": [
3-
"@10up/stylelint-config"
4-
],
5-
"rules": {
6-
"scale-unlimited/declaration-strict-value": [
7-
"/color/",
8-
{
9-
"ignoreValues": ["currentColor", "inherit", "initial", "transparent", "unset"],
10-
"severity": "warning"
11-
}
12-
],
13-
"font-family-no-missing-generic-family-keyword": null,
14-
"declaration-property-unit-allowed-list": null,
15-
"at-rule-disallowed-list": null
16-
}
2+
"extends": [
3+
"@10up/stylelint-config"
4+
],
5+
"rules": {
6+
"scale-unlimited/declaration-strict-value": [
7+
"/color/",
8+
{
9+
"ignoreValues": ["currentcolor", "inherit", "initial", "transparent", "unset"],
10+
"severity": "warning"
11+
}
12+
],
13+
"font-family-no-missing-generic-family-keyword": null,
14+
"declaration-property-unit-allowed-list": null
15+
}
1716

1817
}

0 commit comments

Comments
 (0)