diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index d61bb07a7a..0c5bb5f5b1 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -37,7 +37,7 @@ function wp_dashboard_setup() { // PHP Version. $response = wp_check_php_version(); - if ( $response && isset( $response['is_acceptable'] ) && ! $response['is_acceptable'] && current_user_can( 'upgrade_php' ) ) { + if ( $response && isset( $response['is_acceptable'] ) && ! $response['is_acceptable'] && current_user_can( 'update_php' ) ) { add_filter( 'postbox_classes_dashboard_dashboard_php_nag', 'dashboard_php_nag_class' ); wp_add_dashboard_widget( 'dashboard_php_nag', __( 'PHP Update Required' ), 'wp_dashboard_php_nag' ); } diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index e574b3f809..592995a120 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -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 { diff --git a/wp-includes/version.php b/wp-includes/version.php index 7a45ed8cb5..46d290704b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43380'; +$wp_version = '5.0-alpha-43381'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.