Return a plain text error string

This is used in an alert box, so it can't contain HTML
This commit is contained in:
Kelly Dwan 2019-11-22 15:45:06 -05:00
parent 3515a6eef1
commit 53a1d9b294
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -30,7 +30,7 @@ function manage_contributors_handler() {
if ( is_wp_error( $authenticated ) ) {
wp_die( wp_json_encode( [
'success' => false,
'message' => $authenticated->get_error_message(),
'message' => __( 'Sorry, you don\'t have permissions to do that.', 'wporg-5ftf' ),
] ) );
}