mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Media: Display the unsaved changes dialog in image edit form using jQuery .text()
function.
This ensures that HTML entities like non-breaking spaces are properly displayed instead of being encoded. Props jdy68, sebastienserre, audrasjb, mukesh27, SergeyBiryukov. Fixes #54232. Built from https://develop.svn.wordpress.org/trunk@51907 git-svn-id: http://core.svn.wordpress.org/trunk@51500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
000a1202ad
commit
8b8b5d8ecc
@ -893,7 +893,7 @@
|
|||||||
pop = this.intval( $('#imgedit-undone-' + postid).val() );
|
pop = this.intval( $('#imgedit-undone-' + postid).val() );
|
||||||
|
|
||||||
if ( pop < history.length ) {
|
if ( pop < history.length ) {
|
||||||
if ( confirm( $('#imgedit-leaving-' + postid).html() ) ) {
|
if ( confirm( $('#imgedit-leaving-' + postid).text() ) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
2
wp-admin/js/image-edit.min.js
vendored
2
wp-admin/js/image-edit.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-51906';
|
$wp_version = '5.9-alpha-51907';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user