-
Notifications
You must be signed in to change notification settings - Fork 382
Fix deprecation warnings #7614
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
Merged
Merged
Fix deprecation warnings #7614
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1bd40ef
Add guard to avoid using add_query_arg() if URL does not exists
thelovekesh 2c43d0d
Fix deprecation warnings due to AMP validation test cases
thelovekesh 020eaaa
Update PHPUnit config to convert deprecations to error
thelovekesh 6e9f2cf
Merge branch 'develop' into fix/deprecation-warning
thelovekesh 308e17c
Update capability for amp_validation_error taxonomy
thelovekesh 1e8de9a
Add title in OptionsMenu tests before rendering settings page
thelovekesh 14b70d7
Add amp-onboarding-wizard submenu page on options.php menu
thelovekesh 41b2ff6
Add options.php as parent slug in onboarding wizard submenu page test…
thelovekesh 091fdfd
Revert "Update capability for amp_validation_error taxonomy"
thelovekesh 6d8a722
Fix typo in inline comments
thelovekesh e8f73c5
Try increasing navigation timeout for e2e tests to 60000 ms
thelovekesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this commit needed to work around the issue in tests which you're fixing in core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which commit? I am unable to see any diff with this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant 2c43d0d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's different from that one.
handle_single_url_page_bulk_and_inline_actions()usesget_edit_post_link()which requiresedit_postcapability in general. In test cases we were not setting up the user hence it was resulting into deprecation warnings.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the deprecation warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those were the same as passing null to
add_query_arg()