[wp-trac] [WordPress Trac] #39205: Replace is_super_admin() check with current_user_can( 'upgrade_database' )

WordPress Trac noreply at wordpress.org
Tue Jan 24 12:48:46 UTC 2017

#39205: Replace is_super_admin() check with current_user_can( 'upgrade_database' )
 Reporter:  dhanendran                           |       Owner:  flixos90
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.8
Component:  Role/Capability                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-dev-note has-unit-   |     Focuses:  multisite
  tests 2nd-opinion                              |
Changes (by flixos90):

 * keywords:  has-patch needs-dev-note needs-unit-tests => has-patch needs-
     dev-note has-unit-tests 2nd-opinion


 As the general update routines in WordPress are publicly accessible (see
 #34200), let's only work in network upgrade scope here. I uploaded
 [attachment:39205.diff] which I think is good to go, except for one major
 question: Since we're only dealing with upgrading the network, should we
 rather be calling the capability `upgrade_network` instead of the general

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

More information about the wp-trac mailing list