Ticket #29127: 29127.twentythirteen.patch
File 29127.twentythirteen.patch, 3.4 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentythirteen/functions.php
146 146 'family' => urlencode( implode( '|', $font_families ) ), 147 147 'subset' => urlencode( 'latin,latin-ext' ), 148 148 ); 149 $fonts_url = add_query_arg( $query_args, "//fonts.googleapis.com/css");149 $fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); 150 150 } 151 151 152 152 return $fonts_url; … … 319 319 */ 320 320 function twentythirteen_entry_meta() { 321 321 if ( is_sticky() && is_home() && ! is_paged() ) 322 echo '<span class="featured-post">' . __( 'Sticky', 'twentythirteen' ) . '</span>';322 echo '<span class="featured-post">' . esc_html__( 'Sticky', 'twentythirteen' ) . '</span>'; 323 323 324 324 if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) 325 325 twentythirteen_entry_date(); … … 413 413 'post_type' => 'attachment', 414 414 'post_mime_type' => 'image', 415 415 'order' => 'ASC', 416 'orderby' => 'menu_order ID' 416 'orderby' => 'menu_order ID', 417 417 ) ); 418 418 419 419 // If there is more than 1 attachment in a gallery... -
wp-content/themes/twentythirteen/inc/custom-header.php
217 217 */ 218 218 function twentythirteen_admin_header_image() { 219 219 ?> 220 <div id="headimg" style="background: url(<?php header_image(); ?>) no-repeat scroll top; background-size: 1600px auto;"> 221 <?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?> 220 <div id="headimg" style="background: url(<?php echo esc_url( get_header_image() ); ?>) no-repeat scroll top; background-size: 1600px auto;"> 221 <?php 222 $style = 'color: #' . get_header_textcolor() . ';'; 223 if ( ! display_header_text() ) { 224 $style = 'display: none;'; 225 } 226 ?> 222 227 <div class="home-link"> 223 <h1 class="displaying-header-text"><a id="name" <?php echo $style; ?>onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>224 <h2 id="desc" class="displaying-header-text" <?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>228 <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1> 229 <h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2> 225 230 </div> 226 231 </div> 227 232 <?php } -
wp-content/themes/twentythirteen/taxonomy-post_format.php
20 20 21 21 <?php if ( have_posts() ) : ?> 22 22 <header class="archive-header"> 23 <h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . get_post_format_string( get_post_format() ) . '</span>' ); ?></h1>23 <h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . esc_html( get_post_format_string( get_post_format() ) ) . '</span>' ); ?></h1> 24 24 </header><!-- .archive-header --> 25 25 26 26 <?php /* The loop */ ?>