[wp-trac] [WordPress Trac] #11699: adjacent_post_link fails to strip anchor tags from post titles

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 14 20:45:45 UTC 2010


#11699: adjacent_post_link fails to strip anchor tags from post titles
--------------------------+-------------------------------------------------
 Reporter:  jaylett       |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Template      |     Version:  2.9
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by blepoxp):

 I agree. I thought about sanitizing get_the_post_title before returning
 the value but several functions skip that function and call $post->title
 directly. Most of them use apply_filters('the_title') though. That's why I
 was wondering if it might be appropriate to sanitize it with in default-
 filter... plugin and theme authors could remove that filter if needed...
 or strip it on the way into the DB.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11699#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list