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

WordPress Trac noreply at wordpress.org
Thu Jul 11 08:54:05 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 jrf):

 👍

 This ticket is basically a proof of concept and the same principle can be
 applied to a lot more functions in WP and in the `capabilities.php` file
 in particular.

 Should I open separate tickets for each of those patches ? or can I add
 additional patches, at least for the Capabilities related functions, to
 this ticket ?

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


More information about the wp-trac mailing list