WordPress.org

Make WordPress Core

Changeset 31261


Ignore:
Timestamp:
01/21/2015 08:59:15 PM (6 years ago)
Author:
lancewillett
Message:

Twenty Twelve: fix escaping and minor code style issues. See #29127.

Location:
trunk/src/wp-content/themes/twentytwelve
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwelve/author.php

    r25868 r31261  
    3030
    3131            <header class="archive-header">
    32                 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
     32                <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
    3333            </header><!-- .archive-header -->
    3434
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r30482 r31261  
    280280    global $wp_query;
    281281
    282     $html_id = esc_attr( $html_id );
    283 
    284282    if ( $wp_query->max_num_pages > 1 ) : ?>
    285         <nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
     283        <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
    286284            <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
    287285            <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
    288286            <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div>
    289         </nav><!-- #<?php echo $html_id; ?> .navigation -->
     287        </nav><!-- .navigation -->
    290288    <?php endif;
    291289}
  • trunk/src/wp-content/themes/twentytwelve/image.php

    r28585 r31261  
    6767    else :
    6868        // or get the URL of the first image attachment
    69         $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
     69        $next_attachment_url = get_attachment_link( $attachments[0]->ID );
    7070    endif;
    7171else :
Note: See TracChangeset for help on using the changeset viewer.