mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Text Changes: Unify/merge two more permission error messages.
Props ramiy. Fixes #34521. git-svn-id: https://develop.svn.wordpress.org/trunk@38037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -879,7 +879,7 @@ class WP_REST_Server {
|
||||
if ( is_wp_error( $permission ) ) {
|
||||
$response = $permission;
|
||||
} else if ( false === $permission || null === $permission ) {
|
||||
$response = new WP_Error( 'rest_forbidden', __( "You don't have permission to do this." ), array( 'status' => 403 ) );
|
||||
$response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => 403 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user