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

WordPress Trac noreply at wordpress.org
Thu Jul 11 11:12:22 UTC 2019


#47678: Modernize/simplify current_user_can()
---------------------------------------------+-----------------------------
 Reporter:  jrf                              |       Owner:  jrf
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  normal                           |   Milestone:  5.3
Component:  Role/Capability                  |     Version:  trunk
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  coding-
                                             |  standards
---------------------------------------------+-----------------------------

Comment (by swissspidy):

 Short array syntax is probably best introduced in one swoop in a separate
 ticket. It doesn't give any advantage over the long syntax anyway. Let's
 focus on using the spread operator here, which I think makes for a great
 improvement already!

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


More information about the wp-trac mailing list