Ticket #24766: 24766.diff
File 24766.diff, 21.0 KB (added by , 11 years ago) |
---|
-
wp-login.php
112 112 </head> 113 113 <body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>"> 114 114 <div id="login"> 115 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' ); ?></a></h1>115 <h1><a href="<?php echo esc_url( $login_header_url ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 116 116 <?php 117 117 118 118 unset( $login_header_url, $login_header_title ); … … 156 156 157 157 // Don't allow interim logins to navigate away from the page. 158 158 if ( ! $interim_login ): ?> 159 <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Are you lost?' ); ?>"><?php printf( __( '← Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p>159 <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php printf( __( '← Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p> 160 160 <?php endif; ?> 161 161 162 162 </div> … … 577 577 578 578 <p id="nav"> 579 579 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> | 580 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ) ?>"><?php _e( 'Lost your password?' ); ?></a>580 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 581 581 </p> 582 582 583 583 <?php … … 722 722 <?php if ( get_option( 'users_can_register' ) ) : ?> 723 723 <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?> | 724 724 <?php endif; ?> 725 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>725 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 726 726 <?php endif; ?> 727 727 </p> 728 728 <?php } ?> -
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 . '>'; … … 671 671 $tag_link = '#' != $tag->link ? esc_url( $tag->link ) : '#'; 672 672 $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key; 673 673 $tag_name = $tags[ $key ]->name; 674 $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( $topic_count_text_callback, $real_count, $tag, $args ) ) . "'style='font-size: " .674 $a[] = "<a href='$tag_link' class='tag-link-$tag_id' style='font-size: " . 675 675 str_replace( ',', '.', ( $smallest + ( ( $count - $min_count ) * $font_step ) ) ) 676 676 . "$unit;'>$tag_name</a>"; 677 677 } … … 826 826 $cat_name = esc_attr( $category->name ); 827 827 $cat_name = apply_filters( 'list_cats', $cat_name, $category ); 828 828 $link = '<a href="' . esc_url( get_term_link($category) ) . '" '; 829 if ( $use_desc_for_title == 0 || empty($category->description) )830 $link .= 'title="' . esc_attr( sprintf(__( 'View all posts filed under %s' ), $cat_name) ) . '"';831 else832 $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';833 829 $link .= '>'; 834 830 $link .= $cat_name . '</a>'; 835 831 … … 844 840 if ( empty($feed) ) { 845 841 $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; 846 842 } else { 847 $title = ' title="' . $feed . '"';848 843 $alt = ' alt="' . $feed . '"'; 849 844 $name = $feed; 850 $link .= $ title;845 $link .= $alt; 851 846 } 852 847 853 848 $link .= '>'; -
wp-includes/media-template.php
29 29 30 30 <script type="text/html" id="tmpl-media-modal"> 31 31 <div class="<?php echo $class; ?>"> 32 <a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>32 <a class="media-modal-close" href="#"><span class="media-modal-icon"></span></a> 33 33 <div class="media-modal-content"></div> 34 34 </div> 35 35 <div class="media-modal-backdrop"></div> … … 145 145 <# } #> 146 146 147 147 <# if ( data.buttons.close ) { #> 148 <a class="close media-modal-icon" href="#" title="<?php _e('Remove'); ?>"></a>148 <a class="close media-modal-icon" href="#"></a> 149 149 <# } #> 150 150 151 151 <# if ( data.buttons.check ) { #> 152 <a class="check" href="#" title="<?php _e('Deselect'); ?>"><div class="media-modal-icon"></div></a>152 <a class="check" href="#"><div class="media-modal-icon"></div></a> 153 153 <# } #> 154 154 </div> 155 155 <# -
wp-includes/post-template.php
910 910 $class = ''; 911 911 if ( is_front_page() && !is_paged() ) 912 912 $class = 'class="current_page_item"'; 913 $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';913 $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; 914 914 // If the front page is a page, add it to the exclude list 915 915 if (get_option('show_on_front') == 'page') { 916 916 if ( !empty( $list_args['exclude'] ) ) { … … 1191 1191 if ( trim( $link_text ) == '' ) 1192 1192 $link_text = $_post->post_title; 1193 1193 1194 return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon, $text );1194 return apply_filters( 'wp_get_attachment_link', "<a href='$url'>$link_text</a>", $id, $size, $permalink, $icon, $text ); 1195 1195 } 1196 1196 1197 1197 /** -
wp-includes/user.php
87 87 $user = get_user_by('login', $username); 88 88 89 89 if ( !$user ) 90 return new WP_Error( 'invalid_username', sprintf( __( '<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?' ), wp_lostpassword_url() ) );90 return new WP_Error( 'invalid_username', sprintf( __( '<strong>ERROR</strong>: Invalid username. <a href="%s">Lost your password</a>?' ), wp_lostpassword_url() ) ); 91 91 92 92 if ( is_multisite() ) { 93 93 // Is user marked as spam? … … 107 107 return $user; 108 108 109 109 if ( !wp_check_password($password, $user->user_pass, $user->ID) ) 110 return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ),110 return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s">Lost your password</a>?' ), 111 111 $username, wp_lostpassword_url() ) ); 112 112 113 113 return $user; -
wp-includes/general-template.php
874 874 elseif ('option' == $format) 875 875 $link_html = "\t<option value='$url'>$before $text $after</option>\n"; 876 876 elseif ('html' == $format) 877 $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";877 $link_html = "\t<li>$before<a href='$url'>$text</a>$after</li>\n"; 878 878 else // custom 879 $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";879 $link_html = "\t$before<a href='$url'>$text</a>$after\n"; 880 880 881 881 $link_html = apply_filters( 'get_archives_link', $link_html ); 882 882 … … 1210 1210 $calendar_output .= "\n\t\t".'<td class="pad"> </td>'; 1211 1211 1212 1212 if ( $next ) { 1213 $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>';1213 $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>'; 1214 1214 } else { 1215 1215 $calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>'; 1216 1216 } … … 1278 1278 $calendar_output .= '<td>'; 1279 1279 1280 1280 if ( in_array($day, $daywithpost) ) // any posts today? 1281 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . '" title="' . esc_attr( $ak_titles_for_day[ $day ] ) ."\">$day</a>";1281 $calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . "\">$day</a>"; 1282 1282 else 1283 1283 $calendar_output .= $day; 1284 1284 $calendar_output .= '</td>'; -
wp-includes/link-template.php
724 724 if ( empty( $link ) ) 725 725 $link = __('Edit This'); 726 726 727 $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '" title="' . $link . '">' . $link . '</a>';727 $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '">' . $link . '</a>'; 728 728 $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; 729 729 730 730 if ( $echo ) … … 935 935 $link = __('Edit This'); 936 936 937 937 $post_type_obj = get_post_type_object( $post->post_type ); 938 $link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr( $post_type_obj->labels->edit_item ) . '">' . $link . '</a>';938 $link = '<a class="post-edit-link" href="' . $url . '">' . $link . '</a>'; 939 939 echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; 940 940 } 941 941 … … 1009 1009 if ( null === $link ) 1010 1010 $link = __('Edit This'); 1011 1011 1012 $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . esc_attr__( 'Edit comment' ) . '">' . $link . '</a>';1012 $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">' . $link . '</a>'; 1013 1013 echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after; 1014 1014 } 1015 1015 … … 1050 1050 if ( empty($link) ) 1051 1051 $link = __('Edit This'); 1052 1052 1053 $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '" title="' . esc_attr__( 'Edit Link' ) . '">' . $link . '</a>';1053 $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '">' . $link . '</a>'; 1054 1054 echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after; 1055 1055 } 1056 1056 -
wp-includes/default-widgets.php
313 313 <ul> 314 314 <?php wp_register(); ?> 315 315 <li><?php wp_loginout(); ?></li> 316 <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>317 <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo esc_attr(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>318 <?php echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>',316 <li><a href="<?php bloginfo('rss2_url'); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> 317 <li><a href="<?php bloginfo('comments_rss2_url'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> 318 <?php echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s">%s</a></li>', 319 319 esc_url( __( 'http://wordpress.org/' ) ), 320 esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),321 320 _x( 'WordPress.org', 'meta widget link text' ) 322 321 ) ); ?> 323 322 <?php wp_meta(); ?> … … 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; ?> … … 785 784 $url = esc_url(strip_tags($url)); 786 785 $icon = includes_url('images/rss.png'); 787 786 if ( $title ) 788 $title = "<a class='rsswidget' href='$url' title='" . esc_attr__( 'Syndicate this content' ) ."'><img style='border:0' width='14' height='14' src='$icon' alt='RSS' /></a> <a class='rsswidget' href='$link' title='$desc'>$title</a>";787 $title = "<a class='rsswidget' href='$url'><img style='border:0' width='14' height='14' src='$icon' alt='RSS' /></a> <a class='rsswidget' href='$link'>$title</a>"; 789 788 790 789 echo $before_widget; 791 790 if ( $title ) … … 903 902 if ( $link == '' ) { 904 903 echo "<li>$title{$date}{$summary}{$author}</li>"; 905 904 } else { 906 echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";905 echo "<li><a class='rsswidget' href='$link'>$title</a>{$date}{$summary}{$author}</li>"; 907 906 } 908 907 } 909 908 echo '</ul>'; -
wp-includes/comment-template.php
1006 1006 if ( !empty( $css_class ) ) { 1007 1007 echo ' class="'.$css_class.'" '; 1008 1008 } 1009 $title = the_title_attribute( array('echo' => 0 ) );1010 1009 1011 1010 echo apply_filters( 'comments_popup_link_attributes', '' ); 1012 1011 1013 echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">';1014 1012 comments_number( $zero, $one, $more ); 1015 1013 echo '</a>'; 1016 1014 } … … 1626 1624 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 1627 1625 '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>', 1628 1626 '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>', 1629 '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>',1627 '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>', 1630 1628 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 1631 1629 '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>', 1632 1630 'id_form' => 'commentform', -
wp-includes/author-template.php
134 134 */ 135 135 function get_the_author_link() { 136 136 if ( get_the_author_meta('url') ) { 137 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>';137 return '<a href="' . esc_url( get_the_author_meta('url') ) . '" rel="author external">' . get_the_author() . '</a>'; 138 138 } else { 139 139 return get_the_author(); 140 140 } … … 199 199 if ( !is_object( $authordata ) ) 200 200 return false; 201 201 $link = sprintf( 202 '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',202 '<a href="%1$s" rel="author">%2$s</a>', 203 203 esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), 204 esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),205 204 get_the_author() 206 205 ); 207 206 echo apply_filters( 'the_author_posts_link', $link ); … … 315 314 $return .= '<li>'; 316 315 } 317 316 318 $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $author->display_name) ) . '">' . $name . '</a>';317 $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '">' . $name . '</a>'; 319 318 320 319 if ( !empty( $feed_image ) || !empty( $feed ) ) { 321 320 $link .= ' '; … … 325 324 326 325 $link .= '<a href="' . get_author_feed_link( $author->ID ) . '"'; 327 326 328 $alt = $title ='';327 $alt = ''; 329 328 if ( !empty( $feed ) ) { 330 $title = ' title="' . esc_attr( $feed ) . '"';331 329 $alt = ' alt="' . esc_attr( $feed ) . '"'; 332 330 $name = $feed; 333 $link .= $ title;331 $link .= $alt; 334 332 } 335 333 336 334 $link .= '>'; 337 335 338 336 if ( !empty( $feed_image ) ) 339 $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . $title .' />';337 $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . ' />'; 340 338 else 341 339 $link .= $name; 342 340 -
wp-includes/class-wp-admin-bar.php
426 426 if ( ! empty( $node->meta['target'] ) ) : 427 427 ?> target="<?php echo esc_attr( $node->meta['target'] ); ?>"<?php 428 428 endif; 429 if ( ! empty( $node->meta['title'] ) ) : 430 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 431 endif; 429 432 430 ?>><?php 433 431 else: 434 432 ?><div class="ab-item ab-empty-item" <?php echo $aria_attributes; 435 if ( ! empty( $node->meta['title'] ) ) :436 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php437 endif;438 433 ?>><?php 439 434 endif; 440 435 -
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" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>83 <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?></h3> 84 84 <ul class="accordion-section-content"> 85 85 <?php 86 86 foreach ( $this->controls as $control ) -
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 }