Changeset 40772
- Timestamp:
- 05/17/2017 01:58:16 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/widgets/media-widgets.js
r40660 r40772 143 143 * Fetch media. 144 144 * 145 * This is a TEMPORARY measure until the WP API supports an oEmbed proxy endpoint. See #40450.146 *147 * @see https://core.trac.wordpress.org/ticket/40450148 145 * @returns {void} 149 146 */ … … 153 150 if ( embedLinkView.dfd && 'pending' === embedLinkView.dfd.state() ) { 154 151 embedLinkView.dfd.abort(); 152 } 153 154 // Abort if the URL field was emptied out. 155 if ( ! embedLinkView.model.get( 'url' ) ) { 156 embedLinkView.setErrorNotice( '' ); 157 return; 155 158 } 156 159 -
trunk/src/wp-includes/js/media-views.js
r40628 r40772 4740 4740 4741 4741 url: function( event ) { 4742 this.model.set( 'url', event.target.value);4742 this.model.set( 'url', $.trim( event.target.value ) ); 4743 4743 }, 4744 4744 -
trunk/src/wp-includes/js/media/views/embed/url.js
r33337 r40772 61 61 62 62 url: function( event ) { 63 this.model.set( 'url', event.target.value);63 this.model.set( 'url', $.trim( event.target.value ) ); 64 64 }, 65 65
Note: See TracChangeset
for help on using the changeset viewer.