[wp-trac] [WordPress Trac] #42998: Custom HTML Widget uses widget_text twice in markup
WordPress Trac
noreply at wordpress.org
Sat Dec 30 07:25:02 UTC 2017
#42998: Custom HTML Widget uses widget_text twice in markup
--------------------------+------------------------------
Reporter: dreamwhisper | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.8.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Changes (by alexvorn2):
* keywords: => needs-patch
Comment:
I have the same problem!
I can add custom class name "widget_text" for Custom HTML widget in the
PHP widget name class, or we can change how it CSS class name is added to
the string...
Like checking for ID of the widget...
Example:
{{{#!php
<?php
$widget_box_array['before_widget'] = str_replace( 'id="' . $widget_id . '"
class="', 'id="' . $widget_id . '" class="widget_text ',
$widget_box_array['before_widget'] );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42998#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list