mirror of
git://develop.git.wordpress.org/
synced 2025-04-11 23:52:01 +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. Fixes #53641. git-svn-id: https://develop.svn.wordpress.org/trunk@51701 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6b3019b03e
commit
af99f0e6ef
@ -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