[wp-trac] [WordPress Trac] #30939: Missing title attribute in anchor tag in function start_el

WordPress Trac noreply at wordpress.org
Wed Jan 7 12:41:36 UTC 2015


#30939: Missing title attribute in anchor tag in function start_el
-------------------------+-----------------------------
 Reporter:  sireneweb    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  4.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 From usability point of view and as per WCAG guideline, each anchor tag
 should have title attribute.
 In few of wordpress core files there are few anchor tag markup, which
 missed this title attribute.
 For example in wp-includes/post-template.php file on line number 1345,
 there is code as below:


 {{{
 /** This filter is documented in wp-includes/post-template.php */
                 $output .= $indent . sprintf(
                         '<li class="%s"><a href="%s">%s%s%s</a>',
                         $css_classes,
                         get_permalink( $page->ID ),
                         $args['link_before'],
                         apply_filters( 'the_title', $page->post_title,
 $page->ID ),
                         $args['link_after']
                 );
 }}}

 {{{
 /** This filter is documented in wp-includes/post-template.php */
                 $output .= $indent . sprintf(
                         '<li class="%s"><a href="%s"
 title="%s">%s%s%s</a>',
                         $css_classes,
                         get_permalink( $page->ID ),
                         apply_filters( 'the_title', $page->post_title,
 $page->ID ),
                         $args['link_before'],
                         apply_filters( 'the_title', $page->post_title,
 $page->ID ),
                         $args['link_after']
                 );
 }}}

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


More information about the wp-trac mailing list