Fix construction of translation strings in admin/plugins.php#925
Fix construction of translation strings in admin/plugins.php#925felixarntz merged 4 commits intorelease/2.8.0from
Conversation
Update `CODEOWNERS`, removing inactive contributors and adding newer active contributors
mukeshpanchal27
left a comment
There was a problem hiding this comment.
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 |
felixarntz
left a comment
There was a problem hiding this comment.
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 totrunkand running PHPStan. In working on Image Loading Optimization, I have increased thelevelin thephpstan.neonfrom 0 to 6, and it detected these issues:The last one regarding
_nx()is minor since_nx()doesn't have strict typing for the$numberparameter 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.neonMany of these should be addressed as part of #775.
Relevant technical choices
Checklist
[Focus]orInfrastructurelabel.[Type]label.no milestonelabel.