Skip to content

Adjust tests not to support jquery-migrate after WP version 5.5#2991

Merged
engahmeds3ed merged 1 commit intodevelopfrom
fix/2990-jquery-migrate-fix-tests
Aug 12, 2020
Merged

Adjust tests not to support jquery-migrate after WP version 5.5#2991
engahmeds3ed merged 1 commit intodevelopfrom
fix/2990-jquery-migrate-fix-tests

Conversation

@engahmeds3ed
Copy link
Copy Markdown
Contributor

@engahmeds3ed engahmeds3ed commented Aug 12, 2020

fixes #2990

Wordpress from version 5.5 stopped support for jquery-migrate script out of the box so we need to adjust the code/tests to check the wordpress version if greater than or equals 5.5 so do the followings:-

Adjust the tests not to expect this script to be returned from WP.

@engahmeds3ed engahmeds3ed linked an issue Aug 12, 2020 that may be closed by this pull request
@engahmeds3ed engahmeds3ed changed the base branch from master to develop August 12, 2020 16:18
@engahmeds3ed engahmeds3ed changed the title [WIP] Adjust tests not to support jquery-migrate after WP version 5.5 Adjust tests not to support jquery-migrate after WP version 5.5 Aug 12, 2020
@engahmeds3ed engahmeds3ed marked this pull request as ready for review August 12, 2020 16:20
@engahmeds3ed engahmeds3ed self-assigned this Aug 12, 2020
@engahmeds3ed engahmeds3ed merged commit 5b0a2ea into develop Aug 12, 2020
@engahmeds3ed engahmeds3ed deleted the fix/2990-jquery-migrate-fix-tests branch August 12, 2020 16:38
remyperona pushed a commit that referenced this pull request Aug 18, 2020


adjust integration tests to check on the version of WP to assert existence of jquery-migrate or not (PR #2991)
remyperona pushed a commit that referenced this pull request Aug 18, 2020
…3004)

* add Container classes
* replace League\Container with WP_Rocket\Engine\Container
* Add permissions_callback to RESTSubscriber routes
* Fix syntax error
* update container namespace in our files
* update composer.json not to require League Container
* update plugin version
* add container dependency
* Adjust tests not to support jquery-migrate after WP version 5.5 PR #2991
* ignore Container directory

Co-authored-by: Ahmed Saeed <[email protected]>
Co-authored-by: Caspar Green <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wordpress 5.5 stopped support for jquery-migrate script

2 participants