diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php index 5d0b0a38d8..6dfd91b92b 100644 --- a/src/wp-content/themes/twentythirteen/functions.php +++ b/src/wp-content/themes/twentythirteen/functions.php @@ -146,7 +146,7 @@ function twentythirteen_fonts_url() { 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); - $fonts_url = add_query_arg( $query_args, "//fonts.googleapis.com/css" ); + $fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); } return $fonts_url; @@ -319,7 +319,7 @@ if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : */ function twentythirteen_entry_meta() { if ( is_sticky() && is_home() && ! is_paged() ) - echo '' . __( 'Sticky', 'twentythirteen' ) . ''; + echo '' . esc_html__( 'Sticky', 'twentythirteen' ) . ''; if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) twentythirteen_entry_date(); @@ -413,7 +413,7 @@ function twentythirteen_the_attached_image() { 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', - 'orderby' => 'menu_order ID' + 'orderby' => 'menu_order ID', ) ); // If there is more than 1 attachment in a gallery... diff --git a/src/wp-content/themes/twentythirteen/inc/custom-header.php b/src/wp-content/themes/twentythirteen/inc/custom-header.php index 61bc6aff7b..43ee3b287f 100644 --- a/src/wp-content/themes/twentythirteen/inc/custom-header.php +++ b/src/wp-content/themes/twentythirteen/inc/custom-header.php @@ -216,12 +216,15 @@ function twentythirteen_admin_header_style() { * @since Twenty Thirteen 1.0 */ function twentythirteen_admin_header_image() { + $style = 'color: #' . get_header_textcolor() . ';'; + if ( ! display_header_text() ) { + $style = 'display: none;'; + } ?> -
- +
-

' . get_post_format_string( get_post_format() ) . '' ); ?>

+

' . esc_html( get_post_format_string( get_post_format() ) ) . '' ); ?>