WordPress.org

Make WordPress Core


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

Translations in title attributes require esc_attr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r17023 r17102  
    240240            $theme_data['Author'] = $theme_data['AuthorName'];
    241241        } else {
    242             $theme_data['Author'] = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $theme_data['AuthorURI'], __( 'Visit author homepage' ), $theme_data['AuthorName'] );
     242            $theme_data['Author'] = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $theme_data['AuthorURI'], esc_attr__( 'Visit author homepage' ), $theme_data['AuthorName'] );
    243243        }
    244244    }
Note: See TracChangeset for help on using the changeset viewer.