diff --git src/wp-admin/includes/update.php src/wp-admin/includes/update.php
index 3bc11d8..74899e3 100644
|
|
function maintenance_nag() { |
631 | 631 | function wp_print_admin_notice_templates() { |
632 | 632 | ?> |
633 | 633 | <script id="tmpl-wp-updates-admin-notice" type="text/html"> |
634 | | <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{ data.message }}</p></div> |
| 634 | <div <# if ( data.id ) { #>id="{{ data.id }}"<# } #> class="notice {{ data.className }}"><p>{{{ data.message }}}</p></div> |
635 | 635 | </script> |
636 | 636 | <script id="tmpl-wp-bulk-updates-admin-notice" type="text/html"> |
637 | 637 | <div id="{{ data.id }}" class="{{ data.className }} notice <# if ( data.errors ) { #>notice-error<# } else { #>notice-success<# } #>"> |
diff --git src/wp-admin/js/updates.js src/wp-admin/js/updates.js
index ac6e2cf..e64b6e3 100644
|
|
|
1602 | 1602 | |
1603 | 1603 | // Messages are escaped, remove HTML tags to make them more readable. |
1604 | 1604 | error = error.replace( /<[\/a-z][^<>]*>/gi, '' ); |
| 1605 | error = _.escape( error ); |
1605 | 1606 | errorMessage = errorMessage.replace( '%s', error ); |
1606 | 1607 | |
1607 | 1608 | // Add admin notice. |