diff --git a/admin.php b/admin.php index af2f259..8f9dfe8 100644 --- a/admin.php +++ b/admin.php @@ -84,10 +84,10 @@ function rest_oauth1_profile_messages() { } if ( ! empty( $_GET['rest_oauth1_revoked'] ) ) { - printf( '

%s

', esc_html( __( 'Token revoked.', 'rest_oauth1' ) ) ); + printf( '

%s

', esc_html__( 'Token revoked.', 'rest_oauth1' ) ); } if ( ! empty( $_GET['rest_oauth1_revocation_failed'] ) ) { - printf( '

%s

', esc_html( __( 'Unable to revoke token.', 'rest_oauth1' ) ) ); + printf( '

%s

', esc_html__( 'Unable to revoke token.', 'rest_oauth1' ) ); } } diff --git a/lib/class-wp-rest-oauth1-admin.php b/lib/class-wp-rest-oauth1-admin.php index 9d1da57..fcba04e 100644 --- a/lib/class-wp-rest-oauth1-admin.php +++ b/lib/class-wp-rest-oauth1-admin.php @@ -236,7 +236,7 @@ protected static function handle_edit_submit( $consumer ) { */ public static function render_edit_page() { if ( ! current_user_can( 'edit_users' ) ) { - wp_die( esc_html( __( 'You do not have permission to access this page.', 'rest_oauth1' ) ) ); + wp_die( esc_html__( 'You do not have permission to access this page.', 'rest_oauth1' ) ); } // Are we editing? @@ -251,7 +251,7 @@ public static function render_edit_page() { } if ( empty( $consumer ) ) { - wp_die( esc_html( __( 'Invalid consumer ID.', 'rest_oauth1' ) ) ); + wp_die( esc_html__( 'Invalid consumer ID.', 'rest_oauth1' ) ); } $form_action = self::get_url( @@ -426,8 +426,8 @@ public static function handle_delete() { wp_die( sprintf( '

%s

%s

', - esc_html( __( 'You are not allowed to delete this application.', 'rest_oauth1' ) ), - esc_html( __( 'An error has occurred.', 'rest_oauth1' ) ) + esc_html__( 'You are not allowed to delete this application.', 'rest_oauth1' ), + esc_html__( 'An error has occurred.', 'rest_oauth1' ) ), '', array( 'response' => (int) $code ) @@ -444,8 +444,8 @@ public static function handle_delete() { wp_die( sprintf( '

%s

%s

', - esc_html( __( 'An error has occurred.', 'rest_oauth1' ) ), - esc_html( __( 'Invalid consumer ID', 'rest_oauth1' ) ) + esc_html__( 'An error has occurred.', 'rest_oauth1' ), + esc_html__( 'Invalid consumer ID', 'rest_oauth1' ) ), '', array( 'response' => (int) $code ) @@ -472,8 +472,8 @@ public static function handle_regenerate() { wp_die( sprintf( '

%s

%s

', - esc_html( __( 'An error has occurred.', 'rest_oauth1' ) ), - esc_html( __( 'You are not allowed to edit this application.', 'rest_oauth1' ) ) + esc_html__( 'An error has occurred.', 'rest_oauth1' ), + esc_html__( 'You are not allowed to edit this application.', 'rest_oauth1' ) ), '', array( 'response' => (int) $code )