Upgrade/Install: Make sure `translate_level_to_role()` always returns a value.

Props diddledan.
Fixes #46848.
Built from https://develop.svn.wordpress.org/trunk@45747


git-svn-id: http://core.svn.wordpress.org/trunk@45558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-05 07:48:58 +00:00
parent 69bbdc4022
commit f7b8423b12
2 changed files with 2 additions and 1 deletions

View File

@ -3171,6 +3171,7 @@ function translate_level_to_role( $level ) {
case 1:
return 'contributor';
case 0:
default:
return 'subscriber';
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-alpha-45746';
$wp_version = '5.3-alpha-45747';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.