[wp-trac] [WordPress Trac] #64238: PHPStan code quality improvements for 7.0
WordPress Trac
noreply at wordpress.org
Fri Mar 20 22:35:49 UTC 2026
#64238: PHPStan code quality improvements for 7.0
--------------------------------------+-------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"62086" 62086]:
{{{
#!CommitTicketReference repository="" revision="62086"
Code Quality: Simplify user permission check for importing new users.
This removes a redundant conditional in the `check_import_new_users()`
function, simplifying its logic to directly return the result of the
permission check.
Follow-up to [https://mu.trac.wordpress.org/changeset/1829 mu:1829],
[39945].
Props Soean.
See #64238.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64238#comment:117>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list