Media: Reset aspect ratio constraints when width and height fields fail numeric validation.
Props TBschen, valentinbora. Fixes #49073. Built from https://develop.svn.wordpress.org/trunk@47262 git-svn-id: http://core.svn.wordpress.org/trunk@47062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
12709269c1
commit
036eca242a
|
@ -1113,6 +1113,10 @@
|
||||||
h = $('#image-preview-' + postid).height();
|
h = $('#image-preview-' + postid).height();
|
||||||
|
|
||||||
if ( false === this.validateNumeric( el ) ) {
|
if ( false === this.validateNumeric( el ) ) {
|
||||||
|
this.iasapi.setOptions({
|
||||||
|
aspectRatio: null
|
||||||
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-47261';
|
$wp_version = '5.4-alpha-47262';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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