Ticket #1207: 1207.diff

File 1207.diff, 1.3 KB (added by mdawaffe, 6 years ago)

alt

  • wp-includes/classes.php

     
    621621        function start_el($output, $category, $depth, $args) { 
    622622                extract($args); 
    623623         
     624                $cat_name = wp_specialchars( $category->cat_name, 1 ); 
    624625                $link = '<a href="' . get_category_link($category->cat_ID) . '" '; 
    625626                if ( $use_desc_for_title == 0 || empty($category->category_description) ) 
    626                         $link .= 'title="'. sprintf(__("View all posts filed under %s"), wp_specialchars($category->cat_name, 1)) . '"'; 
     627                        $link .= 'title="'. sprintf(__("View all posts filed under %s"), $cat_name) . '"'; 
    627628                else 
    628629                        $link .= 'title="' . wp_specialchars(apply_filters('category_description',$category->category_description,$category),1) . '"'; 
    629630                $link .= '>'; 
     
    642643                                $alt = ' alt="' . $feed . '"'; 
    643644                                $name = $feed; 
    644645                                $link .= $title; 
    645                         } 
    646          
     646                        } else 
     647                                $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; 
     648 
    647649                        $link .= '>'; 
    648650         
    649651                        if ( !empty($feed_image) ) 
    650                                 $link .= "<img src='$feed_image' $alt$title" . ' />'; 
     652                                $link .= "<img src='$feed_image'$alt$title" . ' />'; 
    651653                        else 
    652654                                $link .= $name; 
    653655                        $link .= '</a>';