[wp-trac] [WordPress Trac] #10997: XHTML in comments_popup_link title attribute

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 21 21:08:42 UTC 2009


#10997: XHTML in comments_popup_link title attribute
--------------------------+-------------------------------------------------
 Reporter:  ewestp        |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Comments      |     Version:  2.8.4     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 If a post title contains XHTML markup, the markup is included in the title
 attribute of the Comments link. See
 [http://wordpress.org/support/topic/205790]. To fix the problem, I suggest
 that line 973 in wp-includes/comments-template.php (version 2.8.5) be
 changed from
 {{{
 $title = esc_attr( get_the_title() );
 }}}
 to
 {{{
 $title = the_title_attribute('echo=0');
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10997>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list