WordPress.org

Make WordPress Core

Changeset 47262


Ignore:
Timestamp:
02/11/2020 04:38:55 AM (4 months ago)
Author:
antpb
Message:

Media: Reset aspect ratio constraints when width and height fields fail numeric validation.

Props TBschen, valentinbora.
Fixes #49073.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/lib/image-edit.js

    r47229 r47262  
    11141114
    11151115        if ( false === this.validateNumeric( el ) ) {
     1116            this.iasapi.setOptions({
     1117                aspectRatio: null
     1118            });
     1119
    11161120            return;
    11171121        }
Note: See TracChangeset for help on using the changeset viewer.