-
Notifications
You must be signed in to change notification settings - Fork 109
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
Fix construction of translation strings in admin/plugins.php #925
Fix construction of translation strings in admin/plugins.php #925
Conversation
Update `CODEOWNERS`, removing inactive contributors and adding newer active contributors
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.
Thank you, @westonruter, for the PR. The changes appear satisfactory to me. Considering that we adopted the code from the plugin API, should we also update this code within the core itself?
@mukeshpanchal27 I don't think the problem exists in core. It's using |
@westonruter, removing Similarly, the |
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.
Great catch!
This is actually a crucial bug fix as it prevents messages with broken links, so it should be made against the release branch :)
After adjusting the base branch, the PR now also includes the |
Summary
This fixes some things which were missed when reviewing #864. Primarily, arguments are being passed directly to
wp_kses_post()
when they should be passed first tosprintf()
. I discovered this issue when switching totrunk
and running PHPStan. In working on Image Loading Optimization, I have increased thelevel
in thephpstan.neon
from 0 to 6, and it detected these issues:The last one regarding
_nx()
is minor since_nx()
doesn't have strict typing for the$number
parameter passed to_nx()
.Note that my local PHPStan config also has to have quite a few errors (via baseline) it has to ignore in order to pass level 6:
phpstan-baseline.neon
Many of these should be addressed as part of #775.
Relevant technical choices
Checklist
[Focus]
orInfrastructure
label.[Type]
label.no milestone
label.