[wp-trac] [WordPress Trac] #47678: Modernize/simplify current_user_can()

WordPress Trac noreply at wordpress.org
Fri Jul 12 00:05:06 UTC 2019


#47678: Modernize/simplify current_user_can()
-------------------------------------+-------------------------------------
 Reporter:  jrf                      |       Owner:  pento
     Type:  enhancement              |      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                       |  standards
-------------------------------------+-------------------------------------

Comment (by pento):

 In [changeset:"45627" 45627]:
 {{{
 #!CommitTicketReference repository="" revision="45627"
 Code Modernisation: Introduce the spread operator in
 `walk_page_dropdown_tree()`.

 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 jrf.
 See #47678.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47678#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list