From 2808673b0c74ae141434b874a17a01272670a937 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 10 May 2014 23:56:12 +0000 Subject: [PATCH] Remove the `title` attribute from markup generated in `wp-includes/category-template.php`: * `get_category_parents()` * `get_the_category_list()` * `wp_generate_tag_cloud()` * `Walker_Category::start_el()` Props joedolson. Fixes #26557. git-svn-id: https://develop.svn.wordpress.org/trunk@28359 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index e627bdc35a..7912ca7bfd 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -56,7 +56,7 @@ function get_category_parents( $id, $link = false, $separator = '/', $nicename = } if ( $link ) - $chain .= 'name ) ) . '">'.$name.'' . $separator; + $chain .= ''.$name.'' . $separator; else $chain .= $name.$separator; return $chain; @@ -183,17 +183,17 @@ function get_the_category_list( $separator = '', $parents='', $post_id = false ) case 'multiple': if ( $category->parent ) $thelist .= get_category_parents( $category->parent, true, $separator ); - $thelist .= 'name ) ) . '" ' . $rel . '>' . $category->name.''; + $thelist .= '' . $category->name.''; break; case 'single': - $thelist .= 'name ) ) . '" ' . $rel . '>'; + $thelist .= ''; if ( $category->parent ) $thelist .= get_category_parents( $category->parent, false, $separator ); $thelist .= $category->name.''; break; case '': default: - $thelist .= 'name ) ) . '" ' . $rel . '>' . $category->name.''; + $thelist .= '' . $category->name.''; } } $thelist .= ''; @@ -206,17 +206,17 @@ function get_the_category_list( $separator = '', $parents='', $post_id = false ) case 'multiple': if ( $category->parent ) $thelist .= get_category_parents( $category->parent, true, $separator ); - $thelist .= 'name ) ) . '" ' . $rel . '>' . $category->name.''; + $thelist .= '' . $category->name.''; break; case 'single': - $thelist .= 'name ) ) . '" ' . $rel . '>'; + $thelist .= ''; if ( $category->parent ) $thelist .= get_category_parents( $category->parent, false, $separator ); $thelist .= "$category->name"; break; case '': default: - $thelist .= 'name ) ) . '" ' . $rel . '>' . $category->name.''; + $thelist .= '' . $category->name.''; } ++$i; } @@ -966,7 +966,7 @@ class Walker_Category extends Walker { $link = 'description) ) { - $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"'; + $link .= ''; } else { /** * Filter the category description for display. @@ -993,7 +993,6 @@ class Walker_Category extends Walker { if ( empty($feed) ) { $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; } else { - $title = ' title="' . $feed . '"'; $alt = ' alt="' . $feed . '"'; $name = $feed; $link .= $title; @@ -1004,7 +1003,7 @@ class Walker_Category extends Walker { if ( empty($feed_image) ) $link .= $name; else - $link .= "'; + $link .= "'; $link .= '';