diff --git a/wp-includes/class-wp-roles.php b/wp-includes/class-wp-roles.php index f620fb5a05..6f7a7fbc84 100644 --- a/wp-includes/class-wp-roles.php +++ b/wp-includes/class-wp-roles.php @@ -268,11 +268,7 @@ class WP_Roles { * @return WP_Role|null WP_Role object if found, null if the role does not exist. */ public function get_role( $role ) { - if ( isset( $this->role_objects[ $role ] ) ) { - return $this->role_objects[ $role ]; - } else { - return null; - } + return $this->role_objects[ $role ] ?? null; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 0856da5843..af45aca00b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61403'; +$wp_version = '7.0-alpha-61404'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.