Make WordPress Core

Ticket #53641: 53641.diff

File 53641.diff, 984 bytes (added by sabernhardt, 2 years ago)
  • src/js/_enqueues/wp/widgets/custom-html.js

     
    356356                        return;
    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;
    362362                }
  • src/js/_enqueues/wp/widgets/media.js

     
    12121212                        return;
    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 ];
    12181218                if ( ! ControlConstructor ) {