-
Notifications
You must be signed in to change notification settings - Fork 4
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
Various small bug fixes #207
Merged
Merged
Conversation
This file contains 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
jrfnl
force-pushed
the
JRF/various-small-bug-fixes
branch
from
November 24, 2023 23:16
8c75b37
to
33a5ae8
Compare
enricobattocchi
force-pushed
the
JRF/various-small-bug-fixes
branch
from
November 25, 2023 17:27
33a5ae8
to
4935514
Compare
The `Admin_Notifications::add_notification()` method only expects one parameter, so no need to ask WP for 2.
The `$adapter` property does not exist. The `$adapter` local variable does.
The `wpseo_enable_feature` hook is a filter, not an action.
The return type is documented as `bool`, but the function contained a path which didn't return any value. Fixed now.
The third (`$deps`) parameter for `wp_enqueue_style()` expects an array of strings, not `null`. Ref: https://developer.wordpress.org/reference/functions/wp_enqueue_style/
The second (`$redirect`) parameter for `activate_plugin()` expects a string, not `null`. Ref: https://developer.wordpress.org/reference/functions/activate_plugin/
enricobattocchi
force-pushed
the
JRF/various-small-bug-fixes
branch
from
November 25, 2023 17:29
4935514
to
395d8bf
Compare
enricobattocchi
approved these changes
Nov 25, 2023
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.
OK! Rebasing to the release branch, aiming to release it before the end of the year
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Admin_Notifications::add_notification(): bug fix
The
Admin_Notifications::add_notification()
method only expects one parameter, so no need to ask WP for 2.Downgrader::downgrade(): bug fix
The
$adapter
property does not exist. The$adapter
local variable does.Feature_Toggler::add_hooks(): use the correct function
The
wpseo_enable_feature
hook is a filter, not an action.Plugin_Toggler::verify_nonce(): consistent return type
The return type is documented as
bool
, but the function contained a path which didn't return any value. Fixed now.Admin_Page::add_assets(): bug fix
The third (
$deps
) parameter forwp_enqueue_style()
expects an array of strings, notnull
.Ref: https://developer.wordpress.org/reference/functions/wp_enqueue_style/
Plugin_Toggler::activate_plugin(): bug fix
The second (
$redirect
) parameter foractivate_plugin()
expects a string, notnull
.Ref: https://developer.wordpress.org/reference/functions/activate_plugin/
Milestone
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
only this part can be tested:
Downgrader::downgrade(): bug fix
:lib/migrations/adapter.php
at line 1049 fromto
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Fixes #