[wp-trac] [WordPress Trac] #47678: Modernize/simplify current_user_can()
WordPress Trac
noreply at wordpress.org
Tue Oct 8 17:54:57 UTC 2019
#47678: Modernize/simplify current_user_can()
-------------------------------------+-------------------------------------
Reporter: jrf | Owner: pento
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 5.3
Component: Role/Capability | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit- | Focuses: performance, coding-
tests commit needs-dev-note | standards
-------------------------------------+-------------------------------------
Comment (by SergeyBiryukov):
In [changeset:"46442" 46442]:
{{{
#!CommitTicketReference repository="" revision="46442"
Code Modernisation: Introduce the spread operator in `Walker::walk()` and
`::paged_walk()`.
Rather than relying on `func_get_args()` to retrieve arbitrary function
arguments, we can now use the spread operator to assign them directly to a
variable.
This re-applies [45624] and reverts [45640], with a dev note upcoming for
plugin authors to maintain backward compatibility with old versions of
WordPress.
Props jrf.
See #47678.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47678#comment:75>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list