mirror of
git://develop.git.wordpress.org/
synced 2025-04-26 23:22:25 +02:00
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 #53641. git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b45f595aab
commit
f2293e968c
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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user