Skip to content
Permalink
Browse files

Upgrade/Install: Make sure `translate_level_to_role()` always returns…

… a value.

Props diddledan.
Fixes #46848.

git-svn-id: https://develop.svn.wordpress.org/trunk@45747 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 5, 2019
1 parent 89c1d39 commit 62f6907bfa5ae42abcf57eda4e14fc6b4c54cfe2
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/wp-admin/includes/upgrade.php
@@ -3171,6 +3171,7 @@ function translate_level_to_role( $level ) {
case 1:
return 'contributor';
case 0:
default:
return 'subscriber';
}
}

0 comments on commit 62f6907

Please sign in to comment.
You can’t perform that action at this time.