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. Built from https://develop.svn.wordpress.org/branches/5.8@51710 git-svn-id: http://core.svn.wordpress.org/branches/5.8@51316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
af2f290084
commit
a80100db11
|
@ -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;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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 ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8.1-alpha-51708';
|
||||
$wp_version = '5.8.1-alpha-51710';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue