Update/Install error messages: do not escape from the template, escape the error message string before inserting it.

Props swissspidy, ocean90.
Fixes #37623 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@38240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2016-08-10 19:02:09 +00:00
parent a9717f8ef0
commit a0a6262f17
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1608,7 +1608,7 @@
wp.updates.addAdminNotice( {
id: 'unknown_error',
className: 'notice-error is-dismissible',
message: errorMessage
message: _.escape( errorMessage )
} );
// Remove the lock, and clear the queue.