Make WordPress Core


Ignore:
Timestamp:
12/10/2011 07:18:51 PM (14 years ago)
Author:
ryan
Message:

More consistent attribute escaping. Props nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r19289 r19582  
    568568        esc_html( get_the_date() ),
    569569        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    570         sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
    571         esc_html( get_the_author() )
     570        esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
     571        get_the_author()
    572572    );
    573573}
     
    583583function twentyeleven_body_classes( $classes ) {
    584584
    585     if ( ! is_multi_author() ) {
     585    if ( function_exists( 'is_multi_author' ) && ! is_multi_author() )
    586586        $classes[] = 'single-author';
    587     }
    588587
    589588    if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) )
Note: See TracChangeset for help on using the changeset viewer.