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

Update trunk #2330

Merged
merged 217 commits into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
0eceb81
This changeset implements a way to determine the mapping version
tott Aug 28, 2019
3c2000f
Fix phpcs errors
tott Aug 28, 2019
4ba7964
Moving mapping determination to function for consistency
tott Aug 29, 2019
845d7ff
Fix notice
tott Aug 29, 2019
4ac7e06
Add and adjust unit tests for proper execution and add required filte…
tott Aug 31, 2019
f9061ed
Merge branch 'develop' into feature/validate-mapping
oscarssanchez Sep 28, 2019
7ee7418
Solve phpcs issues
oscarssanchez Sep 28, 2019
383169a
Check $dismiss to see if notice has already been dismissed
asharirfan Jan 18, 2020
8ba02e3
Merge branch 'develop' into feature/validate-mapping
asharirfan Jan 18, 2020
5a75a4e
Restore current blog when the_post triggers outside the loop.
gonzomir Mar 20, 2021
a442546
Fix post indexable tests, test the new behaviour of maybe_switch_to_b…
gonzomir Mar 22, 2021
c5ea33c
Remove duplicate category_name, cat and tag_id from ES query when tax…
rebeccahum Jun 25, 2021
f542d68
Merge branch 'develop' into rebecca/fix_1896
rebeccahum Jun 25, 2021
4953187
Remove check for tags
rebeccahum Jun 29, 2021
b1b8b33
Merge branch 'develop' into rebecca/fix_1896
rebeccahum Jun 29, 2021
d6be432
Move check towards when there is no tag__and set
rebeccahum Jun 29, 2021
e71a081
Merge branch 'develop' into rebecca/fix_1896
Rahmon Jul 9, 2021
1726bcd
Utility function for checking if a request should be integrated. Addr…
JakePT Jul 14, 2021
4ef5983
Update to use 10up-toolkit to lint and format js
Rahmon Jul 14, 2021
2bf805d
Add lint-style
Rahmon Jul 14, 2021
6e78e09
Merge branch 'develop' into rebecca/fix_1896
oscarssanchez Jul 19, 2021
c392c02
Merge branch 'develop' into feature/validate-mapping
oscarssanchez Jul 19, 2021
7132b44
Support request types in integration conditional function.
JakePT Jul 20, 2021
d6d6e17
Correct variables.
JakePT Jul 20, 2021
6357996
Merge pull request #2241 from rebeccahum/rebecca/fix_1896
oscarssanchez Jul 20, 2021
9d1b833
Update 10up-toolkit to 1.0.10
Rahmon Jul 26, 2021
4748bc8
Update build and watch scripts to use 10up-toolkit
Rahmon Jul 26, 2021
7b3c237
Add custom webpack.config.js
Rahmon Jul 26, 2021
98dad3a
Rebuild assets using 10up-toolkit
Rahmon Jul 26, 2021
1403bc6
Remove webpack configs
Rahmon Jul 26, 2021
b0dce99
Remove postcss.config.js
Rahmon Jul 26, 2021
e596842
Remove .eslintignore
Rahmon Jul 26, 2021
ce61ccf
Update to use @10up/babel-preset-default in .babelrc
Rahmon Jul 26, 2021
68f41c3
Update .eslintrc.js to extend default config in 10up-toolkit
Rahmon Jul 26, 2021
5466e85
Remove unused packages in preference of 10up-toolkit
Rahmon Jul 26, 2021
6804e8f
Rebuild assets
Rahmon Jul 26, 2021
8f4dce7
Correct admin natoice
oscarssanchez Jul 27, 2021
880a09c
Merge branch 'develop' into feature/add-10up-toolkit
Rahmon Jul 27, 2021
f3ef9d0
Add space
oscarssanchez Jul 27, 2021
5e353cc
Re-Add jsdoc
Rahmon Jul 27, 2021
d0099bc
Fix WP Acceptance tests for 5.8 (Widgets)
felipeelia Jul 28, 2021
6fdbbe9
Change modal selector
felipeelia Jul 28, 2021
54f7f93
Check ingest attachment with local ES (WPA)
felipeelia Jul 28, 2021
e6716b4
Merge branch 'develop' into feature/add-10up-toolkit
Rahmon Jul 28, 2021
c45a54c
Adds support for custom vip_search_default_analyzer_filters
pschoffer Jul 27, 2021
bdbd753
rename filter and add docs
pschoffer Jul 29, 2021
d0b4c4e
Adjust ES plugin install
felipeelia Jul 29, 2021
137c27c
Add filter to other php versions
pschoffer Jul 30, 2021
dc9b8d4
Test file upload on locals
felipeelia Jul 30, 2021
0ea82a0
Fix maybeEnableFeature
felipeelia Jul 30, 2021
27a74d6
Improve widget saving process
felipeelia Jul 30, 2021
b48103f
Improve test output
felipeelia Jul 30, 2021
4707033
Merge pull request #2281 from 10up/tests/issue-2280
Rahmon Jul 30, 2021
518f90b
Merge branch 'develop' into feature/add-10up-toolkit
Rahmon Jul 30, 2021
0ccc5ff
Add default value to `maybe_switch_to_blog` + Docs
felipeelia Aug 1, 2021
e625028
Merge branch 'develop' into fix/issue-2121
felipeelia Aug 1, 2021
b5b9aeb
Merge branch 'develop' into feature/validate-mapping
felipeelia Aug 1, 2021
62da34a
fix #2275
dustinrue Aug 1, 2021
d4bd752
Docs + move determine_mapping_version
felipeelia Aug 1, 2021
03599ac
Fix PHP Unit tests
felipeelia Aug 1, 2021
3e52fc2
Another attempt to fix PHP Unit tests
felipeelia Aug 1, 2021
b645c59
Merge pull request #2283 from 10up/fix/issue-2121
Rahmon Aug 2, 2021
6cead72
Merge branch 'develop' into feature/validate-mapping
felipeelia Aug 2, 2021
fc793be
Sort children terms correctly if order is set to count
oscarssanchez Aug 3, 2021
2790cf5
Merge branch 'develop' into feature/add-10up-toolkit
felipeelia Aug 3, 2021
92c2189
Change synonyms type
felipeelia Aug 3, 2021
bef402d
Only use synonyms at search time
felipeelia Aug 3, 2021
0100ac6
Merge pull request #2279 from 10up/feature/add-10up-toolkit
Rahmon Aug 3, 2021
2e037af
Merge branch 'develop' into feature/validate-mapping
oscarssanchez Aug 3, 2021
7b39684
Merge branch 'develop' into fix/issue-2187
felipeelia Aug 3, 2021
9e54581
Resolve linting problems
oscarssanchez Aug 3, 2021
146acea
Sort by count
oscarssanchez Aug 3, 2021
f3c1ad3
Revert "Only use synonyms at search time"
felipeelia Aug 3, 2021
f71ac3a
Update to check index names before retrieving stats/status
Rahmon Aug 3, 2021
0f7ea08
Refactor to use wp_list_pluck
Rahmon Aug 5, 2021
b8c2c3d
Merge branch 'develop' into fix/status-stats-command-multisite
Rahmon Aug 5, 2021
9af2209
Merge branch 'develop' into fix/facets-order
oscarssanchez Aug 9, 2021
47670f2
Merge pull request #1472 from 10up/feature/validate-mapping
oscarssanchez Aug 9, 2021
a3dd136
Merge branch 'develop' into fix/facets-order
oscarssanchez Aug 9, 2021
aa901c2
Merge branch 'develop' into fix/issue-2187
felipeelia Aug 9, 2021
7ce2072
Merge branch 'develop' into fix/status-stats-command-multisite
felipeelia Aug 9, 2021
62ca2ee
Merge pull request #2290 from 10up/fix/status-stats-command-multisite
Rahmon Aug 9, 2021
77da7ad
Merge branch 'develop' into fix/issue-2187
oscarssanchez Aug 10, 2021
7b1abd4
Merge branch 'develop' into fix/issue-2275
oscarssanchez Aug 10, 2021
88dbe88
Merge pull request #2287 from 10up/fix/issue-2187
oscarssanchez Aug 10, 2021
0724f41
Merge branch 'develop' into fix/issue-2275
oscarssanchez Aug 10, 2021
da4ca4d
Merge pull request #2284 from dustinrue/fix/issue-2275
oscarssanchez Aug 10, 2021
eaff090
Remove custom rules in .eslintrc.js
Rahmon Aug 10, 2021
ade6f01
Fix JSDoc lint issues in autosuggest.js
Rahmon Aug 10, 2021
0ca009d
Refactor to declare variables after return statement in autosuggest.js
Rahmon Aug 10, 2021
6568e39
Fix JSDoc in related-posts/Edit.js
Rahmon Aug 10, 2021
20e4185
Remove unused 'number' field state in related-posts/Edit.js
Rahmon Aug 10, 2021
bac0e6e
Update to use post ID in key instead of array index in
Rahmon Aug 10, 2021
cbd2d86
Fix JSDoc in related-posts/block.js
Rahmon Aug 10, 2021
e0d3f7d
Fix JSDoc in comments.js
Rahmon Aug 10, 2021
360924a
Fix else block with only a if statement
Rahmon Aug 10, 2021
7314114
Fix else block with only a if statement in dashboard.js
Rahmon Aug 10, 2021
9ce6456
Move variable after return statement
Rahmon Aug 10, 2021
4e509e3
Remove unused React in ordering/index.js
Rahmon Aug 10, 2021
e5255d4
Fix JSDoc issues in pointers.js
Rahmon Aug 10, 2021
42e1837
Disable @wordpress/no-global-event-listener rule in sites-admin.js
Rahmon Aug 10, 2021
0f6034d
Fix JSDoc issues in stats.js
Rahmon Aug 10, 2021
1b9d460
Fix JSDoc in SynonymsEditor.js
Rahmon Aug 10, 2021
5585c6f
Convert SynonymsEditor to arrow function
Rahmon Aug 10, 2021
04d4653
Fix JSDoc to AlternativeEditor.js
Rahmon Aug 10, 2021
8ac9d25
Convert AlternativeEditor component to arrow function
Rahmon Aug 10, 2021
87c751b
Update to use destructuring props in AlternativeEditor.js
Rahmon Aug 10, 2021
3198e17
Fix JSDoc to AlternativesEditor.js
Rahmon Aug 10, 2021
685f5b6
Convert AlternativesEditor component to arrow function
Rahmon Aug 10, 2021
dd62864
Add type attr to button in AlternativesEditor.js
Rahmon Aug 10, 2021
164c463
Add type attr to button in SetsEditor.js
Rahmon Aug 10, 2021
dd492b7
Convert SetsEditor component to arrow function
Rahmon Aug 10, 2021
17963b4
Fix JSDoc to SolrEditor.js
Rahmon Aug 10, 2021
c97ca7c
Fix JSDoc to LinkedMultiInput.js
Rahmon Aug 10, 2021
dc38e44
Convert LinkedMultiInput component to arrow function
Rahmon Aug 10, 2021
dfffae4
Fix JSDoc to MultiInput.js
Rahmon Aug 10, 2021
3184849
Convert MultiInput component to arrow function
Rahmon Aug 10, 2021
2d92df3
Update to use destructuring props in context.js
Rahmon Aug 10, 2021
645d0b0
Fix JSDoc to synonyms/index.js
Rahmon Aug 10, 2021
f9b2b19
Fix JSDoc to synonyms/reducers.js
Rahmon Aug 10, 2021
0fa5762
Fix JSDoc to synonnyms/util.js
Rahmon Aug 10, 2021
034132b
Fix JSDoc to helpers.js
Rahmon Aug 10, 2021
3498b5f
Refactor to declare title as const in pointers.js
Rahmon Aug 10, 2021
cf098e2
Update to use destructuring props in pointers.js
Rahmon Aug 10, 2021
84b6405
Self-closing empty components in pointers.js
Rahmon Aug 11, 2021
f370424
Move searchResults() before render() in pointers.js
Rahmon Aug 11, 2021
e37cf10
Add role and keyboard listener on Add Post button in pointers.js
Rahmon Aug 11, 2021
8661793
Update to use ellipsis character in pointers.js
Rahmon Aug 11, 2021
f6a7136
Remove array index on keys in pointers.js
Rahmon Aug 11, 2021
5f65545
Add role and keyboard listener on Remove Post button in pointers.js
Rahmon Aug 11, 2021
6151c59
Update to use destructuring on getDefaultResults in pointers.js
Rahmon Aug 11, 2021
6bd7938
PHP Compatibility GH Action
felipeelia Aug 11, 2021
2b055c5
PHP 5.6: Remove null coalescing operator
felipeelia Aug 11, 2021
babc13d
Add missing dependency on useEffect in SynonymsEditor.js
Rahmon Aug 11, 2021
09b3537
Convert SolrEditor component to arrow function
Rahmon Aug 11, 2021
4b74bdf
Add aria-labels and title attributes to icon hyperlinks
claytoncollie Aug 12, 2021
0bceec4
Merge pull request #2303 from 10up/feature/php-compatibility-gh-action
felipeelia Aug 12, 2021
2ee40c6
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 12, 2021
8550b35
Refactor pointers.js
Rahmon Aug 12, 2021
e01f626
Remove unnecesary useEffect and useState from LinkedMultiInput.js
Rahmon Aug 12, 2021
12bc9aa
Add missing dependencies on useEffect in AlternativeEditor.js
Rahmon Aug 12, 2021
0b02fd4
Remove unnecesary useEffect and useState from SolrEditor.js
Rahmon Aug 12, 2021
31722a9
Build assets
Rahmon Aug 12, 2021
bc8e165
Merge pull request #2302 from 10up/dependabot/npm_and_yarn/path-parse…
felipeelia Aug 13, 2021
ecc6105
Change esc_html_e to esc_attr_e
claytoncollie Aug 13, 2021
24901e3
Merge branch 'develop' into 2286-labels-for-icon-links
felipeelia Aug 13, 2021
3f263ee
Remove unnecessary packages due to 10up-toolkit
Rahmon Aug 13, 2021
8d8c541
Update .babelrc
Rahmon Aug 13, 2021
f6bfe69
Build assets
Rahmon Aug 13, 2021
d5a043b
Merge branch 'develop' into fix/react-warnings-and-errors
Rahmon Aug 13, 2021
873bea3
Pass context to integrated request function.
JakePT Aug 16, 2021
ba89c99
Merge pull request #2304 from claytoncollie/2286-labels-for-icon-links
felipeelia Aug 16, 2021
a0ece95
Merge branch 'develop' into fix/react-warnings-and-errors
felipeelia Aug 17, 2021
b7ed400
Add health page to enqueue the script ep_dashboard_scripts
Rahmon Aug 17, 2021
3ae3173
Add overlay to health page
Rahmon Aug 17, 2021
1b2c0a0
Account for term name ordering
oscarssanchez Aug 17, 2021
f8bb565
Merge branch 'fix/facets-order' of github.com:10up/ElasticPress into …
oscarssanchez Aug 17, 2021
fecdcca
Fix: WP Acceptance tests and Page Crashed errors tolerance
felipeelia Aug 17, 2021
e3be127
Merge branch 'develop' into fix/facets-order
oscarssanchez Aug 17, 2021
a8789c4
Merge pull request #2313 from 10up/fix/wp-acceptance-script
felipeelia Aug 17, 2021
3f3d4df
Merge branch 'develop' into fix/facets-order
oscarssanchez Aug 17, 2021
c1c87a2
Merge branch 'develop' into fix/indexing-button-health-page
felipeelia Aug 17, 2021
04a8b9d
Merge branch 'develop' into fix/react-warnings-and-errors
felipeelia Aug 17, 2021
d950c4b
Fixes correct order
oscarssanchez Aug 18, 2021
b76c1cd
Merge branch 'fix/facets-order' of github.com:10up/ElasticPress into …
oscarssanchez Aug 18, 2021
4716fe7
Deleting duplicate hook call
pauarge Aug 18, 2021
7d4cd02
Fix variable name.
JakePT Aug 18, 2021
ed3f51c
update mappings
pschoffer Aug 18, 2021
35bffb8
Merge pull request #2306 from 10up/fix/react-warnings-and-errors
Rahmon Aug 19, 2021
8b043d9
Merge branch 'develop' into fix/indexing-button-health-page
Rahmon Aug 19, 2021
e326f15
Merge pull request #2312 from 10up/fix/indexing-button-health-page
felipeelia Aug 19, 2021
a321501
Merge branch 'develop' into fix/facets-order
Rahmon Aug 19, 2021
7efeb70
Merge branch 'develop' into develop
felipeelia Aug 19, 2021
e3639bb
Merge pull request #2314 from pauarge/develop
felipeelia Aug 19, 2021
f9fe895
Merge pull request #2282 from Automattic/add/default_analyzer_filter_…
felipeelia Aug 19, 2021
1e5927e
Merge branch 'develop' into fix/facets-order
felipeelia Aug 19, 2021
91ec9d9
Merge pull request #2315 from Automattic/update_mappings_upstream
felipeelia Aug 19, 2021
5d12091
Merge branch 'develop' into fix/facets-order
oscarssanchez Aug 19, 2021
e072bda
Update PHP Version info (5.4 -> 5.6)
felipeelia Aug 19, 2021
f37fce9
Fix category slug used when doing cat Tax Query with ID
oscarssanchez Aug 20, 2021
a796de7
Merge pull request #2322 from 10up/fix/cat-slug-bug
Rahmon Aug 20, 2021
0eb2c4c
Merge branch 'develop' into fix/facets-order
Rahmon Aug 20, 2021
db10c6a
Merge branch 'develop' into chore/update-php-version-info
felipeelia Aug 21, 2021
cb8a658
Remove unused variable
oscarssanchez Aug 23, 2021
d8ba789
Fixes array_merge bug with taxonomy childrens
oscarssanchez Aug 23, 2021
3b52e29
Merge branch 'fix/facets-order' of github.com:10up/ElasticPress into …
oscarssanchez Aug 23, 2021
3b959d2
Merge pull request #2320 from 10up/chore/update-php-version-info
felipeelia Aug 23, 2021
c8f7b1a
Merge branch 'develop' into fix/2148
JakePT Aug 23, 2021
7d6acd8
Merge branch 'develop' into fix/2148
JakePT Aug 23, 2021
378cdcc
Merge branch 'fix/2148' of github.com:10up/ElasticPress into fix/2148
JakePT Aug 23, 2021
2291d19
Initial version bump
felipeelia Aug 23, 2021
ec749b5
Add missing use statement.
JakePT Aug 23, 2021
c5b4cfd
Initial changelog version
felipeelia Aug 23, 2021
5c36707
Update list of files that should not be deployed
felipeelia Aug 23, 2021
5a1c54e
Update list of files that should not be deployed - Pt. 2
felipeelia Aug 23, 2021
ce3fb72
Merge branch 'develop' into fix/facets-order
felipeelia Aug 23, 2021
5e4092e
Update WordPress tested version in README.md
felipeelia Aug 23, 2021
1fda38a
Merge pull request #2288 from 10up/fix/facets-order
oscarssanchez Aug 23, 2021
189bdca
Tests: reset current_screen
felipeelia Aug 23, 2021
e708504
Merge branch 'develop' into fix/2148
felipeelia Aug 23, 2021
5643400
Add #2288 in changelogs
felipeelia Aug 23, 2021
71df5a9
Merge pull request #2267 from 10up/fix/2148
felipeelia Aug 23, 2021
185ac57
Add #2267 in changelogs
felipeelia Aug 23, 2021
d157c9f
Merge branch 'develop' into release/3.6.2
felipeelia Aug 23, 2021
62c9398
Update CHANGELOG.md
jeffpaul Aug 24, 2021
e82fa3b
update changelogs
jeffpaul Aug 24, 2021
6a48ec5
Update CREDITS.md
jeffpaul Aug 24, 2021
8def1ee
Weighting in admin: even w/Prot. Content it should not be enabled
felipeelia Aug 25, 2021
a8f53ae
Readd weighting to REST API calls
felipeelia Aug 25, 2021
a4df562
PHP Lint
felipeelia Aug 25, 2021
8b67773
Merge pull request #2326 from 10up/fix/weighting-on-admin
Rahmon Aug 25, 2021
8dd13ed
Merge branch 'develop' into release/3.6.2
felipeelia Aug 25, 2021
7373418
Fix boxes width in the Index Health screen
felipeelia Aug 26, 2021
9e5a55b
Merge pull request #2328 from 10up/fix/dashboard-css
felipeelia Aug 26, 2021
cc0860b
Merge branch 'develop' into release/3.6.2
felipeelia Aug 26, 2021
2aa5bfd
Merge pull request #2324 from 10up/release/3.6.2
felipeelia Aug 26, 2021
21e9c00
Update 3.6.2 release date
felipeelia Aug 26, 2021
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
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@wordpress/default"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
"@10up/babel-preset-default"
]
}
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc

This file was deleted.

8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const defaultEslintrc = require('10up-toolkit/config/.eslintrc');

module.exports = {
...defaultEslintrc,
globals: {
jQuery: true,
}
};
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
/.browserslistrc export-ignore
/.editorconfig export-ignore
/.eslintignore export-ignore
/.eslintrc export-ignore
/.eslintrc.js export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/.stylelintrc export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/composer.json export-ignore
Expand All @@ -33,5 +34,5 @@
/SECURITY.md export-ignore
/run-wpacceptance.sh export-ignore
/single-site.xml.dist export-ignore
/webpack.config.babel.js export-ignore
/webpack.config.js export-ignore
/wpacceptance.json export-ignore
4 changes: 2 additions & 2 deletions .github/hookdoc-tmpl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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 3.0:** ElasticPress 3.0 contains major changes from 2.x including a rewrite of the feature registration API and PHP 5.4+ features. If you have problems upgrading, please create an issue.
**ElasticPress 3.0:** ElasticPress 3.0 contains major changes from 2.x including a rewrite of the feature registration API and PHP 5.4+ features. If you have problems upgrading, please create an issue. The minimum PHP version for ElasticPress 3.6.2 is 5.6.

**Please note:** master is the stable branch on GitHub.
**Please note:** currently, `master` is the stable branch on GitHub. The upcoming ElasticPress 3.7.0 release will remove built assets from the `develop` branch, will replace `master` with `trunk`, will build a stable release version including built assets into a `stable` branch, and will include a build script should you want to build assets from a branch.

**Upgrade Notice:** Versions 1.6.1, 1.6.2, 1.7, 1.8, 2.1, 2.1.2, 2.2, 2.7, 3.0, 3.1, and 3.3 require re-syncing.

Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: PHP Compatibility

env:
COMPOSER_VERSION: "1"
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"

on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- develop
- master
pull_request:
branches:
- develop

jobs:
php_compatibility:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set standard 10up cache directories
run: |
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"

- name: Prepare composer cache
uses: actions/cache@v2
with:
path: ${{ env.COMPOSER_CACHE }}
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-${{ env.COMPOSER_VERSION }}-

- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: prestissimo, composer:v1

- name: Install dependencies
run: composer install

- name: Check PHP Compatibility
run: ./vendor/bin/phpcs -p elasticpress.php includes --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion ${{ matrix.php }}
11 changes: 11 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"@10up/stylelint-config"
],
"rules": {
"sh-waqar/declaration-use-variable": null,
"font-family-no-missing-generic-family-keyword": null,
"declaration-property-unit-allowed-list": null
}

}
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,45 @@ All notable changes to this project will be documented in this file, per [the Ke

## [Unreleased]

## [3.6.2] - 2021-08-26

**Note that the upcoming ElasticPress 3.7.0 release will remove built assets from the `develop` branch, will replace `master` with `trunk`, will build a stable release version including built assets into a `stable` branch, and will include a build script should you want to build assets from a branch.** As such, please plan to update any references you have from `master` to either `stable` or `trunk` depending on whether you require built assets or not.

This version bumps official PHP support from 5.3+ to 5.6+. Minimum PHP version for ElasticPress 3.7.0 will be 7.0+.

### Added
- GitHub Action to test compatibility with different PHP versions. Props [@felipeelia](https://github.com/felipeelia) via [#2303](https://github.com/10up/ElasticPress/pull/2303).
- Validate mapping currently in index against expected version. Props [@tott](https://github.com/tott), [@tlovett1](https://github.com/tlovett1), [@asharirfan](https://github.com/asharirfan), [@oscarssanchez](https://github.com/oscarssanchez), and [@felipeelia](https://github.com/felipeelia) via [#1472](https://github.com/10up/ElasticPress/pull/1472).
- `ep_default_analyzer_filters` filter to adjust default analyzer filters. Props [@pschoffer](https://github.com/pschoffer) and [@felipeelia](https://github.com/felipeelia) via [#2282](https://github.com/10up/ElasticPress/pull/2282).
- `title` and `aria-labels` attributes to each icon hyperlink in the header toolbar. Props [@claytoncollie](https://github.com/claytoncollie) and [@felipeelia](https://github.com/felipeelia) via [#2304](https://github.com/10up/ElasticPress/pull/2304).
- `Utils\is_integrated_request()` function to centralize checks for admin, AJAX, and REST API requests. Props [@JakePT](https://github.com/JakePT), [@felipeelia](https://github.com/felipeelia), [@brandwaffle](https://github.com/brandwaffle), [@moritzlang](https://github.com/moritzlang), and [@lkraav](https://github.com/lkraav) via [#2267](https://github.com/10up/ElasticPress/pull/2267).

### Changed
- Use `10up-toolkit` to build assets. Props [@Rahmon](https://github.com/Rahmon), [@felipeelia](https://github.com/felipeelia), and [@nicholasio](https://github.com/nicholasio) via [#2279](https://github.com/10up/ElasticPress/pull/2279).
- Official PHP supported version bumped to 5.6. Props [@felipeelia](https://github.com/felipeelia) via [#2320](https://github.com/10up/ElasticPress/pull/2320).
- Lint React rules using `10up/eslint-config/react`. Props [@Rahmon](https://github.com/Rahmon) via [#2306](https://github.com/10up/ElasticPress/pull/2306).
- For ES 7.0+ mappings, change `edgeNGram` to `edge_ngram`. Props [@pschoffer](https://github.com/pschoffer) and [@rinatkhaziev](https://github.com/rinatkhaziev) via [#2315](https://github.com/10up/ElasticPress/pull/2315).

### Removed
- Remove duplicate category_name, cat and tag_id from ES query when tax_query set. Props [@rebeccahum](https://github.com/rebeccahum) and [@oscarssanchez](https://github.com/oscarssanchez) via [#2241](https://github.com/10up/ElasticPress/pull/2241).
- Remove unused `path` from `dynamic_templates`. Props [@pschoffer](https://github.com/pschoffer) via [#2315](https://github.com/10up/ElasticPress/pull/2315).

### Fixed
- Remove data from Elasticsearch on a multisite network when a site is archived, deleted or marked as spam. Props [@dustinrue](https://github.com/dustinrue) and [@felipeelia](https://github.com/felipeelia) via [#2284](https://github.com/10up/ElasticPress/pull/2284).
- `stats` and `status` commands in a multisite scenario. Props [@Rahmon](https://github.com/Rahmon), [@felipeelia](https://github.com/felipeelia), and [@dustinrue](https://github.com/dustinrue) via [#2290](https://github.com/10up/ElasticPress/pull/2290).
- Multiple words synonyms. Props [@scooterlord](https://github.com/scooterlord), [@jonasstrandqvist](https://github.com/jonasstrandqvist), and [@felipeelia](https://github.com/felipeelia) via [#2287](https://github.com/10up/ElasticPress/pull/2287).
- Category slug used when doing cat Tax Query with ID. Props [@oscarssanchez](https://github.com/oscarssanchez) and [@karols0](https://github.com/karols0) via [#2322](https://github.com/10up/ElasticPress/pull/2322).
- Restore current blog when the_post triggers outside the loop in multisite environment and the whole network is searched if the first result is from another blog. Props [@gonzomir](https://github.com/gonzomir) and [@felipeelia](https://github.com/felipeelia) via [#2283](https://github.com/10up/ElasticPress/pull/2283).
- Prevents a post from being attempted to delete twice. Props [@pauarge](https://github.com/pauarge) via [#2314](https://github.com/10up/ElasticPress/pull/2314).
- Indexing button on Health screen. Props [@Rahmon](https://github.com/Rahmon) and [@oscarssanchez](https://github.com/oscarssanchez) via [#2312](https://github.com/10up/ElasticPress/pull/2312).
- WP Acceptance tests and Page Crashed errors. Props [@felipeelia](https://github.com/felipeelia) and [@jeffpaul](https://github.com/jeffpaul) via [#2281](https://github.com/10up/ElasticPress/pull/2281) and [#2313](https://github.com/10up/ElasticPress/pull/2313).
- Facets: Children of selected terms ordered by count. Props [@oscarssanchez](https://github.com/oscarssanchez), [@Rahmon](https://github.com/Rahmon), and [@felipeelia](https://github.com/felipeelia) via [#2288](https://github.com/10up/ElasticPress/pull/2288).

### Security
- Bumps `path-parse` from 1.0.6 to 1.0.7. Props [@dependabot](https://github.com/dependabot) via [#2302](https://github.com/10up/ElasticPress/pull/2302).

## [3.6.1] - 2021-07-15

**Note that the upcoming ElasticPress 3.7.0 release will remove built assets from the `develop` branch, will replace `master` with `trunk`, will build a stable release version including built assets into a `stable` branch, and will include a build script should you want to build assets from a branch.** As such, please plan to update any references you have from `master` to either `stable` or `trunk` depending on whether you require built assets or not.

This version requires a full reindex. The new `facet` field introduced in `3.6.0` requires a change in the mapping, otherwise, all content sync related to posts will silently fail. If you've upgraded to 3.6.0 and didn't resync your content yet (via Dashboard or with WP-CLI `wp elasticpress index --setup`) make sure to do so.
Expand Down Expand Up @@ -998,6 +1036,7 @@ See https://github.com/10up/ElasticPress/pulls?utf8=%E2%9C%93&q=is%3Apr+mileston
- Initial plugin release

[Unreleased]: https://github.com/10up/ElasticPress/compare/master...develop
[3.6.2]: https://github.com/10up/ElasticPress/compare/3.6.1...3.6.2
[3.6.1]: https://github.com/10up/ElasticPress/compare/3.6.0...3.6.1
[3.6.0]: https://github.com/10up/ElasticPress/compare/3.5.6...3.6.0
[3.5.6]: https://github.com/10up/ElasticPress/compare/3.5.5...3.5.6
Expand Down
2 changes: 1 addition & 1 deletion CREDITS.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A fast and flexible search and query engine for WordPress.

[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Tests Status](https://github.com/10up/ElasticPress/actions/workflows/test.yml/badge.svg?branch=develop)](https://github.com/10up/ElasticPress) [![Release Version](https://img.shields.io/github/release/10up/ElasticPress.svg)](https://github.com/10up/ElasticPress/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v5.6%20tested-success.svg) [![MIT License](https://img.shields.io/github/license/10up/ElasticPress.svg)](https://github.com/10up/ElasticPress/blob/develop/LICENSE.md)
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Tests Status](https://github.com/10up/ElasticPress/actions/workflows/test.yml/badge.svg?branch=develop)](https://github.com/10up/ElasticPress) [![Release Version](https://img.shields.io/github/release/10up/ElasticPress.svg)](https://github.com/10up/ElasticPress/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v5.8%20tested-success.svg) [![MIT License](https://img.shields.io/github/license/10up/ElasticPress.svg)](https://github.com/10up/ElasticPress/blob/develop/LICENSE.md)

**Please note:** master is the stable branch.

Expand All @@ -24,7 +24,7 @@ ElasticPress has an in depth documentation site. [Visit the docs ☞](http://10u

* [Elasticsearch](https://www.elastic.co) 5.0+ **ElasticSearch max version supported: 7.9**
* [WordPress](http://wordpress.org) 3.7.1+
* [PHP](https://php.net/) 5.4+
* [PHP](https://php.net/) 5.6+

## React Components

Expand Down
20 changes: 12 additions & 8 deletions assets/css/autosuggest.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@
position: relative;

& .ep-autosuggest {
background: #fff;
border: 1px solid #ccc;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
display: none;
background: white;
position: absolute;
border: 1px solid #ccc;
box-shadow: 0 2px 4px rgba( 0, 0, 0, .2 );

width: 100%;
z-index: 200;

& > ul {
margin: 0 !important;
list-style: none;
margin: 0 !important;

& > li {
font-family: sans-serif;

& > a.autosuggest-link {
display: block;
color: #000;
padding: 2px 10px;
cursor: pointer;
display: block;
padding: 2px 10px;

&:hover,
&:active {
background-color: #EEEEEE;
background-color: #eee;
text-decoration: none;
}
}
Expand All @@ -31,7 +35,7 @@
}

& .selected {
background-color: #EEE;
background-color: #eee;
text-decoration: none;
}
}
Loading