Ticket #34521: 34521-one-more-permission-string.patch
File 34521-one-more-permission-string.patch, 702 bytes (added by , 7 years ago) |
---|
-
wp-includes/rest-api/class-wp-rest-server.php
879 879 if ( is_wp_error( $permission ) ) { 880 880 $response = $permission; 881 881 } else if ( false === $permission || null === $permission ) { 882 $response = new WP_Error( 'rest_forbidden', __( "You don't have permission to do this."), array( 'status' => 403 ) );882 $response = new WP_Error( 'rest_forbidden', __( 'Sorry, you are not allowed to do that.' ), array( 'status' => 403 ) ); 883 883 } 884 884 } 885 885 }