WordPress.org

Make WordPress Core

Changeset 28673


Ignore:
Timestamp:
06/05/2014 04:51:55 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Remove redundant 'Visit author homepage' title attributes for plugins and themes.

props joedolson.
fixes #26554.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r28493 r28673  
    495495                        $author = $plugin_data['Author'];
    496496                        if ( !empty( $plugin_data['AuthorURI'] ) )
    497                             $author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
     497                            $author = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
    498498                        $plugin_meta[] = sprintf( __( 'By %s' ), $author );
    499499                    }
    500500                    if ( ! empty( $plugin_data['PluginURI'] ) )
    501                         $plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin site' ) . '">' . __( 'Visit plugin site' ) . '</a>';
     501                        $plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '">' . __( 'Visit plugin site' ) . '</a>';
    502502
    503503                    /**
  • trunk/src/wp-admin/includes/plugin.php

    r28644 r28673  
    161161    if ( $markup ) {
    162162        if ( $plugin_data['PluginURI'] && $plugin_data['Name'] )
    163             $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin homepage' ) . '">' . $plugin_data['Name'] . '</a>';
     163            $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '">' . $plugin_data['Name'] . '</a>';
    164164
    165165        if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] )
    166             $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
     166            $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
    167167
    168168        $plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
  • trunk/src/wp-includes/class-wp-theme.php

    r28547 r28673  
    663663            case 'Author' :
    664664                if ( $this->get('AuthorURI') ) {
    665                     static $attr = null;
    666                     if ( ! isset( $attr ) )
    667                         $attr = esc_attr__( 'Visit author homepage' );
    668                     $value = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value );
     665                    $value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value );
    669666                } elseif ( ! $value ) {
    670667                    $value = __( 'Anonymous' );
Note: See TracChangeset for help on using the changeset viewer.