Make WordPress Core


Ignore:
Timestamp:
06/26/2018 03:04:26 PM (6 years ago)
Author:
flixos90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r43378 r43381  
    555555            }
    556556            break;
    557         case 'upgrade_php':
     557        case 'update_php':
    558558            if ( is_multisite() && ! is_super_admin( $user_id ) ) {
    559559                $caps[] = 'do_not_allow';
Note: See TracChangeset for help on using the changeset viewer.