Skip to content

Commit

Permalink
Plugins: Escape output in error messages.
Browse files Browse the repository at this point in the history
Props tykoted, paulkevan, peterwilsoncc.

git-svn-id: https://develop.svn.wordpress.org/trunk@53960 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Aug 30, 2022
1 parent dc874c5 commit 21ebdbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@
/* translators: 1: Plugin file, 2: Error message. */
__( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
'<code>' . esc_html( $plugin_file ) . '</code>',
$error->get_error_message()
esc_html( $error->get_error_message() )
);
echo '</p></div>';
}
Expand Down Expand Up @@ -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() )
);
?>
</p>
Expand Down

0 comments on commit 21ebdbc

Please sign in to comment.