Widgets: Avoid to move focus to the Image Widget "Insert from URL" field.

Fixes a bug after [45499], where the backbone view element isn't the input field any longer. Also, managing focus programmatically is often an assumption on a specific user flow and should generally be avoided, see #43169.

Props dufresnesteven.
See #43169.
Fixes #48588.

Built from https://develop.svn.wordpress.org/trunk@46745


git-svn-id: http://core.svn.wordpress.org/trunk@46545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-11-18 16:23:02 +00:00
parent 306045277e
commit eec579dd86
3 changed files with 2 additions and 6 deletions

View File

@ -417,10 +417,6 @@ wp.mediaWidgets = ( function( $ ) {
}).render();
this.content.set( view );
if ( ! wp.media.isTouchDevice ) {
view.url.focus();
}
}
});

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-46744';
$wp_version = '5.4-alpha-46745';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.