mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 15:14:37 +00:00
Role/Capability: Rename upgrade_php capability to more suitable update_php.
This brings the name in line with user-facing language and similar names of existing related capabilities. Since the capability has not been part of any WordPress release, it can be renamed without any backward-compatibility implications. Also missing props benhuberman for [43006]. Fixes #44457. git-svn-id: https://develop.svn.wordpress.org/trunk@43381 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -554,7 +554,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||
$caps[] = 'manage_options';
|
||||
}
|
||||
break;
|
||||
case 'upgrade_php':
|
||||
case 'update_php':
|
||||
if ( is_multisite() && ! is_super_admin( $user_id ) ) {
|
||||
$caps[] = 'do_not_allow';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user