[wp-trac] [WordPress Trac] #40907: Introduce widget dedicated for HTML code

WordPress Trac noreply at wordpress.org
Tue Jul 18 03:14:54 UTC 2017


#40907: Introduce widget dedicated for HTML code
--------------------------------------+--------------------------
 Reporter:  westonruter               |       Owner:  westonruter
     Type:  feature request           |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.8.1
Component:  Widgets                   |     Version:  4.8
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by westonruter):

 @slewisma there would still be:

 * the `widget_custom_html_content` filter that ''only'' applies to the
 Custom HTML widget, and
 * the `widget_text_content` filter that ''only'' applies to the Text
 widget

 My suggestion is that we take the `widget_text` filter which currently
 applies before the `widget_text_content` filter, to also apply it before
 the `widget_custom_html_content` filter. Thus the `widget_text` filter
 would apply in ''both'' widgets.

 This would remain in place going forward, but eventually the `widget_text`
 filter could get marked as deprecated, in favor of using the
 `widget_text_content` and `widget_custom_html_content` filters only.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40907#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list