[wp-trac] [WordPress Trac] #49588: Cannot remove <div class="textwidget custom-html-widget">

WordPress Trac noreply at wordpress.org
Fri Mar 6 18:02:24 UTC 2020


#49588: Cannot remove <div class="textwidget custom-html-widget">
-----------------------------+-----------------------------
 Reporter:  jasom            |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Widgets          |    Version:
 Severity:  minor            |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 I cannot remove wrapping class in html widget:

 <div class="textwidget custom-html-widget">
 ...
 </div>

 It is defined here: https://github.com/WordPress/WordPress/blob/master/wp-
 includes/widgets/class-wp-widget-custom-html.php

 I think it is job for some `apply_filters`.

 Do we really need another `<div>` wrap? There can be `<div>` wrap added by
 `register_sidebar` or using `widget_text` filter

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49588>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list