[wp-trac] [WordPress Trac] #39207: Replace is_super_admin() check with current_user_can( 'manage_options' ) in wp-admin/options-general.php

WordPress Trac noreply at wordpress.org
Tue Jan 24 13:06:35 UTC 2017


#39207: Replace is_super_admin() check with current_user_can( 'manage_options' ) in
wp-admin/options-general.php
--------------------------------+------------------------
 Reporter:  Dhaval Parekh       |       Owner:  flixos90
     Type:  enhancement         |      Status:  reviewing
 Priority:  normal              |   Milestone:  4.8
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch commit    |     Focuses:  multisite
--------------------------------+------------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch commit


Comment:

 [attachment:39207.diff] makes the check available to network
 administrators on multisite and regular administrators on non-multisite.

 Generally using a new meta capability would be more elegant, but since it
 is only about a simple notice that might possibly removed soon, let's use
 the check from the new patch.

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


More information about the wp-trac mailing list