[wp-trac] [WordPress Trac] #35897: wp_strip_all_tags the titles in Recent Posts widget

WordPress Trac noreply at wordpress.org
Sun Feb 21 22:57:52 UTC 2016


#35897: wp_strip_all_tags the titles in Recent Posts widget
--------------------------+-----------------------------
 Reporter:  alexvorn2     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  4.4.2
 Severity:  normal        |   Keywords:
  Focuses:  ui, template  |
--------------------------+-----------------------------
 In the Recent Posts the titles are not stripped by tags, so when adding a
 <br> tag in the post title, it adds a new line.

 http://alexvorn.com/wp-content/uploads/2016/02/br-tags-bug-in-recent-
 posts-widget.png

 to fix this we just use this function
 https://codex.wordpress.org/Function_Reference/wp_strip_all_tags .

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


More information about the wp-trac mailing list