Ticket #29127: 29127.twentyfourteen.patch
File 29127.twentyfourteen.patch, 7.2 KB (added by , 10 years ago) |
---|
-
wp-content/themes/twentyfourteen/comments.php
40 40 <ol class="comment-list"> 41 41 <?php 42 42 wp_list_comments( array( 43 'style' => 'ol',44 'short_ping' => true,45 'avatar_size' => 34,43 'style' => 'ol', 44 'short_ping' => true, 45 'avatar_size' => 34, 46 46 ) ); 47 47 ?> 48 48 </ol><!-- .comment-list --> -
wp-content/themes/twentyfourteen/featured-content.php
22 22 foreach ( (array) $featured_posts as $order => $post ) : 23 23 setup_postdata( $post ); 24 24 25 25 // Include the featured content template. 26 26 get_template_part( 'content', 'featured-post' ); 27 27 endforeach; 28 28 -
wp-content/themes/twentyfourteen/functions.php
211 211 * by Lato, translate this to 'off'. Do not translate into your own language. 212 212 */ 213 213 if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) { 214 $font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css");214 $font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), '//fonts.googleapis.com/css' ); 215 215 } 216 216 217 217 return $font_url; -
wp-content/themes/twentyfourteen/image.php
28 28 29 29 <span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span> 30 30 31 <span class="full-size-link"><a href="<?php echo esc_url( wp_get_attachment_url() ); ?>"><?php echo $metadata['width']; ?> × <?php echo $metadata['height']; ?></a></span>31 <span class="full-size-link"><a href="<?php echo esc_url( wp_get_attachment_url() ); ?>"><?php echo esc_html( $metadata['width'] ); ?> × <?php echo esc_html( $metadata['height'] ); ?></a></span> 32 32 33 33 <span class="parent-post-link"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" rel="gallery"><?php echo get_the_title( $post->post_parent ); ?></a></span> 34 34 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> -
wp-content/themes/twentyfourteen/inc/custom-header.php
140 140 <?php if ( get_header_image() ) : ?> 141 141 <img src="<?php header_image(); ?>" alt=""> 142 142 <?php endif; ?> 143 <h1 class="displaying-header-text"><a id="name" <?php echo sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?>onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>143 <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( sprintf( 'color: #%s;', get_header_textcolor() ) ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 144 144 </div> 145 145 <?php 146 146 } -
wp-content/themes/twentyfourteen/inc/featured-content.php
327 327 } 328 328 329 329 $settings = self::get_setting(); 330 foreach ( $terms as $order => $term ) {330 foreach ( $terms as $order => $term ) { 331 331 if ( ( $settings['tag-id'] === $term->term_id || $settings['tag-name'] === $term->name ) && 'post_tag' === $term->taxonomy ) { 332 332 unset( $terms[ $order ] ); 333 333 } … … 371 371 } 372 372 373 373 $settings = self::get_setting(); 374 foreach ( $terms as $order => $term ) {374 foreach ( $terms as $order => $term ) { 375 375 if ( ( $settings['tag-id'] === $term->term_id || $settings['tag-name'] === $term->name ) && 'post_tag' === $term->taxonomy ) { 376 376 unset( $terms[ $term->term_id ] ); 377 377 } -
wp-content/themes/twentyfourteen/inc/widgets.php
107 107 echo $args['before_widget']; 108 108 ?> 109 109 <h1 class="widget-title <?php echo esc_attr( $format ); ?>"> 110 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( $format ) ); ?>"><?php echo $title; ?></a>110 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( $format ) ); ?>"><?php echo esc_html( $title ); ?></a> 111 111 </h1> 112 112 <ol> 113 113 … … 261 261 <p><label for="<?php echo esc_attr( $this->get_field_id( 'format' ) ); ?>"><?php _e( 'Post format to show:', 'twentyfourteen' ); ?></label> 262 262 <select id="<?php echo esc_attr( $this->get_field_id( 'format' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'format' ) ); ?>"> 263 263 <?php foreach ( $this->formats as $slug ) : ?> 264 <option value="<?php echo esc_attr( $slug ); ?>"<?php selected( $format, $slug ); ?>><?php echo get_post_format_string( $slug); ?></option>264 <option value="<?php echo esc_attr( $slug ); ?>"<?php selected( $format, $slug ); ?>><?php echo esc_html( get_post_format_string( $slug ) ); ?></option> 265 265 <?php endforeach; ?> 266 266 </select> 267 267 <?php -
wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js
14 14 url = $( '.entry-attachment a' ).attr( 'href' ); 15 15 } 16 16 17 if ( url && ( ! $( 'textarea, input' ).is( ':focus' ) ) ) {17 if ( url && ( ! $( 'textarea, input' ).is( ':focus' ) ) ) { 18 18 window.location = url; 19 19 } 20 20 } ); -
wp-content/themes/twentyfourteen/js/slider.js
524 524 slider.doMath = function() { 525 525 var slide = slider.slides.first(); 526 526 527 slider.w = ( slider.viewport ===undefined ) ? slider.width() : slider.viewport.width();527 slider.w = ( slider.viewport === undefined ) ? slider.width() : slider.viewport.width(); 528 528 slider.h = slide.height(); 529 529 slider.boxPadding = slide.outerWidth() - slide.width(); 530 530