I18N: Move the strings for default user roles to `wp-includes/capabilities.php`, to make the translations available on the front end as well.
Props keraweb, ocean90. Fixes #37539. Built from https://develop.svn.wordpress.org/trunk@44976 git-svn-id: http://core.svn.wordpress.org/trunk@44807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30491f2410
commit
8dcd3a09a8
|
@ -708,18 +708,6 @@ function populate_roles() {
|
|||
function populate_roles_160() {
|
||||
// Add roles
|
||||
|
||||
// Dummy gettext calls to get strings in the catalog.
|
||||
/* translators: user role */
|
||||
_x( 'Administrator', 'User role' );
|
||||
/* translators: user role */
|
||||
_x( 'Editor', 'User role' );
|
||||
/* translators: user role */
|
||||
_x( 'Author', 'User role' );
|
||||
/* translators: user role */
|
||||
_x( 'Contributor', 'User role' );
|
||||
/* translators: user role */
|
||||
_x( 'Subscriber', 'User role' );
|
||||
|
||||
add_role( 'administrator', 'Administrator' );
|
||||
add_role( 'editor', 'Editor' );
|
||||
add_role( 'author', 'Author' );
|
||||
|
|
|
@ -978,3 +978,17 @@ function wp_maybe_grant_resume_extensions_caps( $allcaps ) {
|
|||
|
||||
return $allcaps;
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
// Dummy gettext calls to get strings in the catalog.
|
||||
/* translators: user role for administrators */
|
||||
_x( 'Administrator', 'User role' );
|
||||
/* translators: user role for editors */
|
||||
_x( 'Editor', 'User role' );
|
||||
/* translators: user role for authors */
|
||||
_x( 'Author', 'User role' );
|
||||
/* translators: user role for contributors */
|
||||
_x( 'Contributor', 'User role' );
|
||||
/* translators: user role for subscriber */
|
||||
_x( 'Subscriber', 'User role' );
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-alpha-44975';
|
||||
$wp_version = '5.2-alpha-44976';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue