mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 01:01:18 +03:00
Return a plain text error string
This is used in an alert box, so it can't contain HTML
This commit is contained in:
parent
3515a6eef1
commit
53a1d9b294
|
@ -30,7 +30,7 @@ function manage_contributors_handler() {
|
||||||
if ( is_wp_error( $authenticated ) ) {
|
if ( is_wp_error( $authenticated ) ) {
|
||||||
wp_die( wp_json_encode( [
|
wp_die( wp_json_encode( [
|
||||||
'success' => false,
|
'success' => false,
|
||||||
'message' => $authenticated->get_error_message(),
|
'message' => __( 'Sorry, you don\'t have permissions to do that.', 'wporg-5ftf' ),
|
||||||
] ) );
|
] ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue