Make WordPress Core

Ticket #24766: 24766.2.diff

File 24766.2.diff, 10.7 KB (added by sabreuse, 11 years ago)
  • wp-includes/default-widgets.php

     
    574573                <ul>
    575574                <?php while ( $r->have_posts() ) : $r->the_post(); ?>
    576575                        <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>
    578577                        <?php if ( $show_date ) : ?>
    579578                                <span class="post-date"><?php echo get_the_date(); ?></span>
    580579                        <?php endif; ?>
     
    904903                if ( $link == '' ) {
    905904                        echo "<li>$title{$date}{$summary}{$author}</li>";
    906905                } 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>";
    908907                }
    909908        }
    910909        echo '</ul>';
  • wp-includes/comment-template.php

     
    10311031        if ( !empty( $css_class ) ) {
    10321032                echo ' class="'.$css_class.'" ';
    10331033        }
    1034         $title = the_title_attribute( array('echo' => 0 ) );
    10351034
    10361035        echo apply_filters( 'comments_popup_link_attributes', '' );
    10371036
    1038         echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">';
    10391037        comments_number( $zero, $one, $more );
    10401038        echo '</a>';
    10411039}
     
    16841682                'fields'               => apply_filters( 'comment_form_default_fields', $fields ),
    16851683                '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>',
    16861684                '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>',
    16881686                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
    16891687                '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>',
    16901688                'id_form'              => 'commentform',
  • wp-includes/class-wp-theme.php

     
    649649                                break;
    650650                        case 'Author' :
    651651                                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 );
    656653                                } elseif ( ! $value ) {
    657654                                        $value = __( 'Anonymous' );
    658655                                }
  • wp-includes/class-wp-customize-section.php

     
    8080        protected function render() {
    8181                ?>
    8282                <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>
    8484                        <ul class="accordion-section-content">
    8585                                <?php if ( ! empty( $this->description ) ) : ?>
    8686                                <li><p class="description"><?php echo $this->description; ?></p></li>
  • wp-includes/category-template.php

     
    5656        }
    5757
    5858        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;
    6060        else
    6161                $chain .= $name.$separator;
    6262        return $chain;
     
    171171                                case 'multiple':
    172172                                        if ( $category->parent )
    173173                                                $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>';
    175175                                        break;
    176176                                case 'single':
    177177                                        $thelist .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '" ' . $rel . '>';
     
    824824                $cat_name = esc_attr( $category->name );
    825825                $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    826826                $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                 else
    830                         $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
    831827                $link .= '>';
    832828                $link .= $cat_name . '</a>';
    833829
     
    842838                        if ( empty($feed) ) {
    843839                                $alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"';
    844840                        } else {
    845                                 $title = ' title="' . $feed . '"';
    846841                                $alt = ' alt="' . $feed . '"';
    847842                                $name = $feed;
    848                                 $link .= $title;
     843                                $link .= $alt;
    849844                        }
    850845
    851846                        $link .= '>';
  • wp-includes/author-template.php

     
    171171 */
    172172function get_the_author_link() {
    173173        if ( get_the_author_meta('url') ) {
    174                 return '<a href="' . esc_url( get_the_author_meta('url') ) . '" title="' . esc_attr( sprintf(__("Visit %s&#8217;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>';
    175175        } else {
    176176                return get_the_author();
    177177        }
     
    236236        if ( !is_object( $authordata ) )
    237237                return false;
    238238        $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>',
    240240                esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ),
    241                 esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
    242241                get_the_author()
    243242        );
    244243
     
    369368                        $return .= '<li>';
    370369                }
    371370
    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>';
    373372
    374373                if ( !empty( $feed_image ) || !empty( $feed ) ) {
    375374                        $link .= ' ';
     
    379378
    380379                        $link .= '<a href="' . get_author_feed_link( $author->ID ) . '"';
    381380
    382                         $alt = $title = '';
     381                        $alt = '';
    383382                        if ( !empty( $feed ) ) {
    384                                 $title = ' title="' . esc_attr( $feed ) . '"';
    385383                                $alt = ' alt="' . esc_attr( $feed ) . '"';
    386384                                $name = $feed;
    387                                 $link .= $title;
     385                                $link .= $alt;
    388386                        }
    389387
    390388                        $link .= '>';
    391389
    392390                        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 . ' />';
    394392                        else
    395393                                $link .= $name;
    396394
  • wp-includes/general-template.php

     
    891891        elseif ('option' == $format)
    892892                $link_html = "\t<option value='$url'>$before $text $after</option>\n";
    893893        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";
    895895        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";
    897897
    898898        $link_html = apply_filters( 'get_archives_link', $link_html );
    899899
     
    12271227        $calendar_output .= "\n\t\t".'<td class="pad">&nbsp;</td>';
    12281228
    12291229        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)) . ' &raquo;</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)) . ' &raquo;</a></td>';
    12311231        } else {
    12321232                $calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>';
    12331233        }
     
    12951295                        $calendar_output .= '<td>';
    12961296
    12971297                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>";
    12991299                else
    13001300                        $calendar_output .= $day;
    13011301                $calendar_output .= '</td>';