diff --git a/src/wp-content/themes/twentysixteen/404.php b/src/wp-content/themes/twentysixteen/404.php
index bb122f2f41..9bf9376e66 100644
|
a
|
b
|
get_header(); ?>
|
| 14 | 14 | |
| 15 | 15 | <section class="error-404 not-found"> |
| 16 | 16 | <header class="page-header"> |
| 17 | | <h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'twentysixteen' ); ?></h1> |
| | 17 | <h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'twentysixteen' ); ?></h1> |
| 18 | 18 | </header><!-- .page-header --> |
| 19 | 19 | |
| 20 | 20 | <div class="page-content"> |
| 21 | | <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentysixteen' ); ?></p> |
| | 21 | <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentysixteen' ); ?></p> |
| 22 | 22 | |
| 23 | 23 | <?php get_search_form(); ?> |
| 24 | 24 | </div><!-- .page-content --> |
diff --git a/src/wp-content/themes/twentysixteen/functions.php b/src/wp-content/themes/twentysixteen/functions.php
index d098a1ebde..86dcaaf703 100644
|
a
|
b
|
if ( ! function_exists( 'twentysixteen_setup' ) ) :
|
| 226 | 226 | // Add support for custom line height controls. |
| 227 | 227 | add_theme_support( 'custom-line-height' ); |
| 228 | 228 | } |
| 229 | | endif; // twentysixteen_setup() |
| | 229 | endif; |
| 230 | 230 | add_action( 'after_setup_theme', 'twentysixteen_setup' ); |
| 231 | 231 | |
| 232 | 232 | /** |
| … |
… |
function twentysixteen_content_width() {
|
| 243 | 243 | } |
| 244 | 244 | add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 ); |
| 245 | 245 | |
| 246 | | /** |
| 247 | | * Add preconnect for Google Fonts. |
| 248 | | * |
| 249 | | * @since Twenty Sixteen 1.6 |
| 250 | | * @deprecated Twenty Sixteen 2.9 Disabled filter because, by default, fonts are self-hosted. |
| 251 | | * |
| 252 | | * @param array $urls URLs to print for resource hints. |
| 253 | | * @param string $relation_type The relation type the URLs are printed. |
| 254 | | * @return array URLs to print for resource hints. |
| 255 | | */ |
| 256 | | function twentysixteen_resource_hints( $urls, $relation_type ) { |
| 257 | | if ( wp_style_is( 'twentysixteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) { |
| 258 | | $urls[] = array( |
| 259 | | 'href' => 'https://fonts.gstatic.com', |
| 260 | | 'crossorigin', |
| 261 | | ); |
| 262 | | } |
| 263 | | |
| 264 | | return $urls; |
| 265 | | } |
| 266 | | // add_filter( 'wp_resource_hints', 'twentysixteen_resource_hints', 10, 2 ); |
| 267 | 246 | |
| 268 | 247 | /** |
| 269 | 248 | * Registers a widget area. |
diff --git a/src/wp-content/themes/twentysixteen/header.php b/src/wp-content/themes/twentysixteen/header.php
index 2ad0f66c67..d95a67c787 100644
|
a
|
b
|
|
| 28 | 28 | <a class="skip-link screen-reader-text" href="#content"> |
| 29 | 29 | <?php |
| 30 | 30 | /* translators: Hidden accessibility text. */ |
| 31 | | _e( 'Skip to content', 'twentysixteen' ); |
| | 31 | esc_html_e( 'Skip to content', 'twentysixteen' ); |
| 32 | 32 | ?> |
| 33 | 33 | </a> |
| 34 | 34 | |
| … |
… |
|
| 47 | 47 | $description = get_bloginfo( 'description', 'display' ); |
| 48 | 48 | if ( $description || is_customize_preview() ) : |
| 49 | 49 | ?> |
| 50 | | <p class="site-description"><?php echo $description; ?></p> |
| | 50 | <p class="site-description"><?php echo wp_kses_post( $description ); ?></p> |
| 51 | 51 | <?php endif; ?> |
| 52 | 52 | </div><!-- .site-branding --> |
| 53 | 53 | |
| 54 | 54 | <?php if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) ) : ?> |
| 55 | | <button id="menu-toggle" class="menu-toggle"><?php _e( 'Menu', 'twentysixteen' ); ?></button> |
| | 55 | <button id="menu-toggle" class="menu-toggle"><?php esc_html_e( 'Menu', 'twentysixteen' ); ?></button> |
| 56 | 56 | |
| 57 | 57 | <div id="site-header-menu" class="site-header-menu"> |
| 58 | 58 | <?php if ( has_nav_menu( 'primary' ) ) : ?> |
diff --git a/src/wp-content/themes/twentysixteen/template-parts/content-none.php b/src/wp-content/themes/twentysixteen/template-parts/content-none.php
index ad401cf9ec..2a78bccf0d 100644
|
a
|
b
|
|
| 10 | 10 | |
| 11 | 11 | <section class="no-results not-found"> |
| 12 | 12 | <header class="page-header"> |
| 13 | | <h1 class="page-title"><?php _e( 'Nothing Found', 'twentysixteen' ); ?></h1> |
| | 13 | <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'twentysixteen' ); ?></h1> |
| 14 | 14 | </header><!-- .page-header --> |
| 15 | 15 | |
| 16 | 16 | <div class="page-content"> |
| … |
… |
|
| 25 | 25 | |
| 26 | 26 | <?php elseif ( is_search() ) : ?> |
| 27 | 27 | |
| 28 | | <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p> |
| | 28 | <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p> |
| 29 | 29 | <?php get_search_form(); ?> |
| 30 | 30 | |
| 31 | 31 | <?php else : ?> |
| 32 | 32 | |
| 33 | | <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentysixteen' ); ?></p> |
| | 33 | <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentysixteen' ); ?></p> |
| 34 | 34 | <?php get_search_form(); ?> |
| 35 | 35 | |
| 36 | 36 | <?php endif; ?> |
diff --git a/src/wp-content/themes/twentysixteen/template-parts/content.php b/src/wp-content/themes/twentysixteen/template-parts/content.php
index bd2ee145c4..660dafe96d 100644
|
a
|
b
|
|
| 11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 12 | 12 | <header class="entry-header"> |
| 13 | 13 | <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> |
| 14 | | <span class="sticky-post"><?php _e( 'Featured', 'twentysixteen' ); ?></span> |
| | 14 | <span class="sticky-post"><?php esc_html_e( 'Featured', 'twentysixteen' ); ?></span> |
| 15 | 15 | <?php endif; ?> |
| 16 | 16 | |
| 17 | 17 | <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> |