[wp-trac] [WordPress Trac] #47678: Modernize/simplify current_user_can()
WordPress Trac
noreply at wordpress.org
Sun Jun 28 18:23:53 UTC 2020
#47678: Modernize/simplify current_user_can()
-------------------------------------+-------------------------------------
Reporter: jrf | Owner: pento
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.3
Component: Role/Capability | Version: 5.3
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: performance, coding-
tests has-dev-note | standards
-------------------------------------+-------------------------------------
Comment (by SergeyBiryukov):
In [changeset:"48204" 48204]:
{{{
#!CommitTicketReference repository="" revision="48204"
Code Modernization: Introduce the spread operator in `wp-includes/IXR`.
Rather than relying `func_get_args()` to retrieve arbitrary function
arguments, we can now use the spread operator to assign them directly to a
variable.
Props kraftbj.
See #48267, #47678.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47678#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list