diff --git a/src/wp-admin/plugins.php b/src/wp-admin/plugins.php index 9a1945f6be6a3..dd8f8679d8555 100644 --- a/src/wp-admin/plugins.php +++ b/src/wp-admin/plugins.php @@ -612,7 +612,7 @@ /* translators: 1: Plugin file, 2: Error message. */ __( 'The plugin %1$s has been deactivated due to an error: %2$s' ), '' . esc_html( $plugin_file ) . '', - $error->get_error_message() + esc_html( $error->get_error_message() ) ); echo '

'; } @@ -676,7 +676,7 @@ printf( /* translators: %s: Error message. */ __( 'Plugin could not be deleted due to an error: %s' ), - $delete_result->get_error_message() + esc_html( $delete_result->get_error_message() ) ); ?>