Ticket #24766: 24766.2.diff
File 24766.2.diff, 10.7 KB (added by , 11 years ago) |
---|
-
wp-includes/default-widgets.php
574 573 <ul> 575 574 <?php while ( $r->have_posts() ) : $r->the_post(); ?> 576 575 <li> 577 <a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ? get_the_title() : get_the_ID() ); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a>576 <a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a> 578 577 <?php if ( $show_date ) : ?> 579 578 <span class="post-date"><?php echo get_the_date(); ?></span> 580 579 <?php endif; ?> … … 904 903 if ( $link == '' ) { 905 904 echo "<li>$title{$date}{$summary}{$author}</li>"; 906 905 } else { 907 echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";906 echo "<li><a class='rsswidget' href='$link'>$title</a>{$date}{$summary}{$author}</li>"; 908 907 } 909 908 } 910 909 echo '</ul>'; -
wp-includes/comment-template.php
1031 1031 if ( !empty( $css_class ) ) { 1032 1032 echo ' class="'.$css_class.'" '; 1033 1033 } 1034 $title = the_title_attribute( array('echo' => 0 ) );1035 1034 1036 1035 echo apply_filters( 'comments_popup_link_attributes', '' ); 1037 1036 1038 echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">';1039 1037 comments_number( $zero, $one, $more ); 1040 1038 echo '</a>'; 1041 1039 } … … 1684 1682 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 1685 1683 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 1686 1684 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1687 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',1685 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1688 1686 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 1689 1687 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 1690 1688 'id_form' => 'commentform', -
wp-includes/class-wp-theme.php
649 649 break; 650 650 case 'Author' : 651 651 if ( $this->get('AuthorURI') ) { 652 static $attr = null; 653 if ( ! isset( $attr ) ) 654 $attr = esc_attr__( 'Visit author homepage' ); 655 $value = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value ); 652 $value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value ); 656 653 } elseif ( ! $value ) { 657 654 $value = __( 'Anonymous' ); 658 655 } -
wp-includes/class-wp-customize-section.php
80 80 protected function render() { 81 81 ?> 82 82 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section accordion-section"> 83 <h3 class="accordion-section-title" tabindex="0" ><?php echo esc_html( $this->title ); ?></h3>83 <h3 class="accordion-section-title" tabindex="0" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3> 84 84 <ul class="accordion-section-content"> 85 85 <?php if ( ! empty( $this->description ) ) : ?> 86 86 <li><p class="description"><?php echo $this->description; ?></p></li> -
wp-includes/category-template.php
56 56 } 57 57 58 58 if ( $link ) 59 $chain .= '<a href="' . esc_url( get_category_link( $parent->term_id ) ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $parent->name ) ) . '">'.$name.'</a>' . $separator;59 $chain .= '<a href="' . esc_url( get_category_link( $parent->term_id ) ) . '">' . $name . '</a>' . $separator; 60 60 else 61 61 $chain .= $name.$separator; 62 62 return $chain; … … 171 171 case 'multiple': 172 172 if ( $category->parent ) 173 173 $thelist .= get_category_parents( $category->parent, true, $separator ); 174 $thelist .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '"' . $rel . '>' . $category->name.'</a></li>';174 $thelist .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" ' . $rel . '>' . $category->name.'</a></li>'; 175 175 break; 176 176 case 'single': 177 177 $thelist .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" ' . $rel . '>'; … … 824 824 $cat_name = esc_attr( $category->name ); 825 825 $cat_name = apply_filters( 'list_cats', $cat_name, $category ); 826 826 $link = '<a href="' . esc_url( get_term_link($category) ) . '" '; 827 if ( $use_desc_for_title == 0 || empty($category->description) )828 $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"';829 else830 $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';831 827 $link .= '>'; 832 828 $link .= $cat_name . '</a>'; 833 829 … … 842 838 if ( empty($feed) ) { 843 839 $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; 844 840 } else { 845 $title = ' title="' . $feed . '"';846 841 $alt = ' alt="' . $feed . '"'; 847 842 $name = $feed; 848 $link .= $ title;843 $link .= $alt; 849 844 } 850 845 851 846 $link .= '>'; -
wp-includes/author-template.php
171 171 */ 172 172 function get_the_author_link() { 173 173 if ( get_the_author_meta('url') ) { 174 return '<a href="' . esc_url( get_the_author_meta('url') ) . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '"rel="author external">' . get_the_author() . '</a>';174 return '<a href="' . esc_url( get_the_author_meta('url') ) . '" rel="author external">' . get_the_author() . '</a>'; 175 175 } else { 176 176 return get_the_author(); 177 177 } … … 236 236 if ( !is_object( $authordata ) ) 237 237 return false; 238 238 $link = sprintf( 239 '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',239 '<a href="%1$s" rel="author">%2$s</a>', 240 240 esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), 241 esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),242 241 get_the_author() 243 242 ); 244 243 … … 369 368 $return .= '<li>'; 370 369 } 371 370 372 $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $author->display_name) ) . '">' . $name . '</a>';371 $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '">' . $name . '</a>'; 373 372 374 373 if ( !empty( $feed_image ) || !empty( $feed ) ) { 375 374 $link .= ' '; … … 379 378 380 379 $link .= '<a href="' . get_author_feed_link( $author->ID ) . '"'; 381 380 382 $alt = $title ='';381 $alt = ''; 383 382 if ( !empty( $feed ) ) { 384 $title = ' title="' . esc_attr( $feed ) . '"';385 383 $alt = ' alt="' . esc_attr( $feed ) . '"'; 386 384 $name = $feed; 387 $link .= $ title;385 $link .= $alt; 388 386 } 389 387 390 388 $link .= '>'; 391 389 392 390 if ( !empty( $feed_image ) ) 393 $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . $title .' />';391 $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . ' />'; 394 392 else 395 393 $link .= $name; 396 394 -
wp-includes/general-template.php
891 891 elseif ('option' == $format) 892 892 $link_html = "\t<option value='$url'>$before $text $after</option>\n"; 893 893 elseif ('html' == $format) 894 $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";894 $link_html = "\t<li>$before<a href='$url'>$text</a>$after</li>\n"; 895 895 else // custom 896 $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";896 $link_html = "\t$before<a href='$url'>$text</a>$after\n"; 897 897 898 898 $link_html = apply_filters( 'get_archives_link', $link_html ); 899 899 … … 1227 1227 $calendar_output .= "\n\t\t".'<td class="pad"> </td>'; 1228 1228 1229 1229 if ( $next ) { 1230 $calendar_output .= "\n\t\t".'<td colspan="3" id="next"><a href="' . get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month), date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';1230 $calendar_output .= "\n\t\t".'<td colspan="3" id="next"><a href="' . get_month_link($next->year, $next->month) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>'; 1231 1231 } else { 1232 1232 $calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>'; 1233 1233 } … … 1295 1295 $calendar_output .= '<td>'; 1296 1296 1297 1297 if ( in_array($day, $daywithpost) ) // any posts today? 1298 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . '" title="' . esc_attr( $ak_titles_for_day[ $day ] ) ."\">$day</a>";1298 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . "\">$day</a>"; 1299 1299 else 1300 1300 $calendar_output .= $day; 1301 1301 $calendar_output .= '</td>';