[wp-trac] [WordPress Trac] #39060: Replace `is_super_admin()` check in `wp-admin/menu.php` with `update_core` capability check

WordPress Trac noreply at wordpress.org
Wed Dec 7 20:07:01 UTC 2016


#39060: Replace `is_super_admin()` check in `wp-admin/menu.php` with `update_core`
capability check
-----------------------------+------------------------
 Reporter:  flixos90         |       Owner:  flixos90
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  4.8
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  multisite
-----------------------------+------------------------

Comment (by jeremyfelt):

 [attachment:39060.diff] looks good, @flixos90. I think it's okay to add
 the `{}` to the `if` clause during commit since we're updating that area
 anyway.

 It does seem like we could revisit this area and clean up the logic at the
 top of the file a bit more, but that shouldn't be part of this change.

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


More information about the wp-trac mailing list