Make WordPress Core

Changeset 51701


Ignore:
Timestamp:
08/31/2021 01:49:23 PM (3 years ago)
Author:
desrosj
Message:

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.

Location:
trunk/src/js/_enqueues/wp/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/widgets/custom-html.js

    r50001 r51701  
    357357        }
    358358
    359         idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
     359        idBase = widgetForm.find( '.id_base' ).val();
    360360        if ( -1 === component.idBases.indexOf( idBase ) ) {
    361361            return;
  • trunk/src/js/_enqueues/wp/widgets/media.js

    r50547 r51701  
    12131213        }
    12141214
    1215         idBase = widgetForm.find( '> .widget-control-actions > .id_base' ).val();
     1215        idBase = widgetForm.find( '.id_base' ).val();
    12161216
    12171217        ControlConstructor = component.controlConstructors[ idBase ];
Note: See TracChangeset for help on using the changeset viewer.