Title not being displayed – plugin 0.2.7
-
I have just updated this plugin to the latest version – 0.2.7 – and the titles of widgets are now not being displayed. I put some debug code into one of my own widgets and got the following output:
[31-Aug-2016 09:34:32 UTC] recent notices: instance: Array ( [title] => Recent Notices [number] => 5 ) [31-Aug-2016 09:34:32 UTC] recent notices: args: Array ( [before_widget] => <div id="recent-notices-7" class="widget ahpp-widget-recent-notices"> [after_widget] => </div> [before_title] => <!-- widget_shortcode_before_title --> [after_title] => <!-- widget_shortcode_after_title --> [name] => Arbitrary [id] => arbitrary [description] => This widget area can be used for [widget] shortcode. [widget_id] => recent-notices-7 [widget_name] => Recent Notices )
So it seems that the before_title and after_title settings are comments. Furthermore, somehow this setting is causing the widget’s title output to get filtered out.
I haven’t been able to pin down where the filter is, but when I echo just the title it appears, when I add the before_title and after_title, the whole title disappears so WP must have a filter on this output that removes lines with comments in them (or something like that).
It seems to me this is a bug? The docs say the before_title and after_title are h2 tags.
- The topic ‘Title not being displayed – plugin 0.2.7’ is closed to new replies.