[wp-trac] [WordPress Trac] #22345: Use different filter for the_title() and the_title_attribute()

WordPress Trac noreply at wordpress.org
Fri Nov 2 02:48:08 UTC 2012


#22345: Use different filter for the_title() and the_title_attribute()
-----------------------------+------------------------------
 Reporter:  zourbuth         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by nacin):

 the_title_attribute() is designed to be the same as the_title(), with the
 exception of sanitizing it for an attribute (which includes, for example,
 stripping markup).

 It makes sense that they run the same underlying filters. If you don't
 want to affect an attribute, you should probably not use
 the_title_attribute().

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


More information about the wp-trac mailing list