Twenty Twelve: fix escaping and minor code style issues. See #29127.
Built from https://develop.svn.wordpress.org/trunk@31261 git-svn-id: http://core.svn.wordpress.org/trunk@31242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c25f0ae8f8
commit
078de57052
|
@ -29,7 +29,7 @@ get_header(); ?>
|
|||
?>
|
||||
|
||||
<header class="archive-header">
|
||||
<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>
|
||||
<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>
|
||||
</header><!-- .archive-header -->
|
||||
|
||||
<?php
|
||||
|
|
|
@ -279,14 +279,12 @@ if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
|
|||
function twentytwelve_content_nav( $html_id ) {
|
||||
global $wp_query;
|
||||
|
||||
$html_id = esc_attr( $html_id );
|
||||
|
||||
if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||
<nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
|
||||
<nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
|
||||
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
|
||||
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
|
||||
</nav><!-- #<?php echo $html_id; ?> .navigation -->
|
||||
</nav><!-- .navigation -->
|
||||
<?php endif;
|
||||
}
|
||||
endif;
|
||||
|
|
|
@ -66,7 +66,7 @@ if ( count( $attachments ) > 1 ) :
|
|||
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
|
||||
else :
|
||||
// or get the URL of the first image attachment
|
||||
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
|
||||
$next_attachment_url = get_attachment_link( $attachments[0]->ID );
|
||||
endif;
|
||||
else :
|
||||
// or, if there's only 1 image, get the URL of the image
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31260';
|
||||
$wp_version = '4.2-alpha-31261';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue