Widgets: Show title and media select fields in Accessibility Mode.

This updates the Custom HTML and Media widgets to display the correct fields when adding or editing a widget when using accessibility mode through the Classic Widgets experience.

Follow up to [49973].

Props mark-k, sabernhardt, alexstine, circlecube, audrasjb.
Merges [51701] to the 5.8 branch.
Fixes .

git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2021-09-01 00:28:29 +00:00
parent b45f595aab
commit f2293e968c
2 changed files with 2 additions and 2 deletions
src/js/_enqueues/wp/widgets

@ -356,7 +356,7 @@ wp.customHtmlWidgets = ( function( $ ) {
return;
}
idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
idBase = widgetForm.find( '.id_base' ).val();
if ( -1 === component.idBases.indexOf( idBase ) ) {
return;
}

@ -1212,7 +1212,7 @@ wp.mediaWidgets = ( function( $ ) {
return;
}
idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
idBase = widgetForm.find( '.id_base' ).val();
ControlConstructor = component.controlConstructors[ idBase ];
if ( ! ControlConstructor ) {