WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/21/2010 05:17:58 PM (8 years ago)
Author:
ryan
Message:

Translations in title attributes require esc_attr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r16831 r17102  
    134134    if ( $markup ) {
    135135        if ( ! empty($plugin_data['PluginURI']) && ! empty($plugin_data['Name']) )
    136             $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . __( 'Visit plugin homepage' ) . '">' . $plugin_data['Name'] . '</a>';
     136            $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin homepage' ) . '">' . $plugin_data['Name'] . '</a>';
    137137        else
    138138            $plugin_data['Title'] = $plugin_data['Name'];
    139139
    140140        if ( ! empty($plugin_data['AuthorURI']) && ! empty($plugin_data['Author']) )
    141             $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
     141            $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
    142142
    143143        $plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
Note: See TracChangeset for help on using the changeset viewer.