diff --git a/src/wp-content/themes/twentyfourteen/404.php b/src/wp-content/themes/twentyfourteen/404.php
index 7f5bef8412..4eecbd33af 100644
|
a
|
b
|
get_header(); ?>
|
| 14 | 14 | <div id="content" class="site-content" role="main"> |
| 15 | 15 | |
| 16 | 16 | <header class="page-header"> |
| 17 | | <h1 class="page-title"><?php _e( 'Not Found', 'twentyfourteen' ); ?></h1> |
| | 17 | <h1 class="page-title"><?php esc_html_e( 'Not Found', 'twentyfourteen' ); ?></h1> |
| 18 | 18 | </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?', 'twentyfourteen' ); ?></p> |
| | 21 | <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen' ); ?></p> |
| 22 | 22 | |
| 23 | 23 | <?php get_search_form(); ?> |
| 24 | 24 | </div><!-- .page-content --> |
diff --git a/src/wp-content/themes/twentyfourteen/comments.php b/src/wp-content/themes/twentyfourteen/comments.php
index fdeaf767a5..07cf3c0256 100644
|
a
|
b
|
if ( post_password_required() ) {
|
| 50 | 50 | <h1 class="screen-reader-text"> |
| 51 | 51 | <?php |
| 52 | 52 | /* translators: Hidden accessibility text. */ |
| 53 | | _e( 'Comment navigation', 'twentyfourteen' ); |
| | 53 | esc_html_e( 'Comment navigation', 'twentyfourteen' ); |
| 54 | 54 | ?> |
| 55 | 55 | </h1> |
| 56 | 56 | <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> |
| … |
… |
if ( post_password_required() ) {
|
| 75 | 75 | <h1 class="screen-reader-text"> |
| 76 | 76 | <?php |
| 77 | 77 | /* translators: Hidden accessibility text. */ |
| 78 | | _e( 'Comment navigation', 'twentyfourteen' ); |
| | 78 | esc_html_e( 'Comment navigation', 'twentyfourteen' ); |
| 79 | 79 | ?> |
| 80 | 80 | </h1> |
| 81 | 81 | <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> |
| … |
… |
if ( post_password_required() ) {
|
| 84 | 84 | <?php endif; // Check for comment navigation. ?> |
| 85 | 85 | |
| 86 | 86 | <?php if ( ! comments_open() ) : ?> |
| 87 | | <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p> |
| | 87 | <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'twentyfourteen' ); ?></p> |
| 88 | 88 | <?php endif; ?> |
| 89 | 89 | |
| 90 | | <?php endif; // have_comments() ?> |
| | 90 | <?php endif; ?> |
| 91 | 91 | |
| 92 | 92 | <?php comment_form(); ?> |
| 93 | 93 | |
diff --git a/src/wp-content/themes/twentyfourteen/content-none.php b/src/wp-content/themes/twentyfourteen/content-none.php
index 7e35a72071..1982080f25 100644
|
a
|
b
|
|
| 9 | 9 | ?> |
| 10 | 10 | |
| 11 | 11 | <header class="page-header"> |
| 12 | | <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1> |
| | 12 | <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'twentyfourteen' ); ?></h1> |
| 13 | 13 | </header> |
| 14 | 14 | |
| 15 | 15 | <div class="page-content"> |
| … |
… |
|
| 24 | 24 | |
| 25 | 25 | <?php elseif ( is_search() ) : ?> |
| 26 | 26 | |
| 27 | | <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> |
| | 27 | <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p> |
| 28 | 28 | <?php get_search_form(); ?> |
| 29 | 29 | |
| 30 | 30 | <?php else : ?> |
| 31 | 31 | |
| 32 | | <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> |
| | 32 | <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p> |
| 33 | 33 | <?php get_search_form(); ?> |
| 34 | 34 | |
| 35 | 35 | <?php endif; ?> |
diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php
index 22305e5b97..107277743f 100644
|
a
|
b
|
if ( ! function_exists( 'twentyfourteen_setup' ) ) :
|
| 212 | 212 | // Indicate widget sidebars can use selective refresh in the Customizer. |
| 213 | 213 | add_theme_support( 'customize-selective-refresh-widgets' ); |
| 214 | 214 | } |
| 215 | | endif; // twentyfourteen_setup() |
| | 215 | endif; |
| 216 | 216 | add_action( 'after_setup_theme', 'twentyfourteen_setup' ); |
| 217 | 217 | |
| 218 | 218 | /** |
diff --git a/src/wp-content/themes/twentyfourteen/header.php b/src/wp-content/themes/twentyfourteen/header.php
index ad3e128b0c..3cbbc99514 100644
|
a
|
b
|
|
| 24 | 24 | <title><?php wp_title( '|', true, 'right' ); ?></title> |
| 25 | 25 | <link rel="profile" href="https://gmpg.org/xfn/11"> |
| 26 | 26 | <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> |
| 27 | | <!--[if lt IE 9]> |
| 28 | | <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0"></script> |
| 29 | | <![endif]--> |
| 30 | 27 | <?php wp_head(); ?> |
| 31 | 28 | </head> |
| 32 | 29 | |
| … |
… |
|
| 36 | 33 | <?php if ( get_header_image() ) : ?> |
| 37 | 34 | <div id="site-header"> |
| 38 | 35 | <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
| 39 | | <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /> |
| | 36 | <img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /> |
| 40 | 37 | </a> |
| 41 | 38 | </div> |
| 42 | 39 | <?php endif; ?> |
| … |
… |
|
| 49 | 46 | <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"> |
| 50 | 47 | <?php |
| 51 | 48 | /* translators: Hidden accessibility text. */ |
| 52 | | _e( 'Search', 'twentyfourteen' ); |
| | 49 | esc_html_e( 'Search', 'twentyfourteen' ); |
| 53 | 50 | ?> |
| 54 | 51 | </a> |
| 55 | 52 | </div> |
| 56 | 53 | |
| 57 | 54 | <nav id="primary-navigation" class="site-navigation primary-navigation"> |
| 58 | | <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button> |
| | 55 | <button class="menu-toggle"><?php esc_html_e( 'Primary Menu', 'twentyfourteen' ); ?></button> |
| 59 | 56 | <a class="screen-reader-text skip-link" href="#content"> |
| 60 | 57 | <?php |
| 61 | 58 | /* translators: Hidden accessibility text. */ |
| 62 | | _e( 'Skip to content', 'twentyfourteen' ); |
| | 59 | esc_html_e( 'Skip to content', 'twentyfourteen' ); |
| 63 | 60 | ?> |
| 64 | 61 | </a> |
| 65 | 62 | <?php |
diff --git a/src/wp-content/themes/twentyfourteen/image.php b/src/wp-content/themes/twentyfourteen/image.php
index ed5a9f2e65..5ddb63b3e3 100644
|
a
|
b
|
|
| 9 | 9 | |
| 10 | 10 | // Retrieve attachment metadata. |
| 11 | 11 | $metadata = wp_get_attachment_metadata(); |
| | 12 | global $post; |
| 12 | 13 | |
| 13 | 14 | get_header(); |
| 14 | 15 | ?> |
diff --git a/src/wp-content/themes/twentyfourteen/inc/custom-header.php b/src/wp-content/themes/twentyfourteen/inc/custom-header.php
index d6692dbb41..0cdd876bb8 100644
|
a
|
b
|
if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
|
| 91 | 91 | </style> |
| 92 | 92 | <?php |
| 93 | 93 | } |
| 94 | | endif; // twentyfourteen_header_style() |
| | 94 | endif; |
| 95 | 95 | |
| 96 | 96 | |
| 97 | 97 | if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) : |
| … |
… |
if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
|
| 130 | 130 | </style> |
| 131 | 131 | <?php |
| 132 | 132 | } |
| 133 | | endif; // twentyfourteen_admin_header_style() |
| | 133 | endif; |
| 134 | 134 | |
| 135 | 135 | if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) : |
| 136 | 136 | /** |
| … |
… |
if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
|
| 150 | 150 | </div> |
| 151 | 151 | <?php |
| 152 | 152 | } |
| 153 | | endif; // twentyfourteen_admin_header_image() |
| | 153 | endif; |
diff --git a/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php b/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php
index 9cf9083cee..1441ab8b7e 100644
|
a
|
b
|
get_header(); ?>
|
| 27 | 27 | <h1 class="archive-title"> |
| 28 | 28 | <?php |
| 29 | 29 | if ( is_tax( 'post_format', 'post-format-aside' ) ) : |
| 30 | | _e( 'Asides', 'twentyfourteen' ); |
| | 30 | esc_html_e( 'Asides', 'twentyfourteen' ); |
| 31 | 31 | |
| 32 | 32 | elseif ( is_tax( 'post_format', 'post-format-image' ) ) : |
| 33 | | _e( 'Images', 'twentyfourteen' ); |
| | 33 | esc_html_e( 'Images', 'twentyfourteen' ); |
| 34 | 34 | |
| 35 | 35 | elseif ( is_tax( 'post_format', 'post-format-video' ) ) : |
| 36 | | _e( 'Videos', 'twentyfourteen' ); |
| | 36 | esc_html_e( 'Videos', 'twentyfourteen' ); |
| 37 | 37 | |
| 38 | 38 | elseif ( is_tax( 'post_format', 'post-format-audio' ) ) : |
| 39 | | _e( 'Audio', 'twentyfourteen' ); |
| | 39 | esc_html_e( 'Audio', 'twentyfourteen' ); |
| 40 | 40 | |
| 41 | 41 | elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : |
| 42 | | _e( 'Quotes', 'twentyfourteen' ); |
| | 42 | esc_html_e( 'Quotes', 'twentyfourteen' ); |
| 43 | 43 | |
| 44 | 44 | elseif ( is_tax( 'post_format', 'post-format-link' ) ) : |
| 45 | | _e( 'Links', 'twentyfourteen' ); |
| | 45 | esc_html_e( 'Links', 'twentyfourteen' ); |
| 46 | 46 | |
| 47 | 47 | elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) : |
| 48 | | _e( 'Galleries', 'twentyfourteen' ); |
| | 48 | esc_html_e( 'Galleries', 'twentyfourteen' ); |
| 49 | 49 | |
| 50 | 50 | else : |
| 51 | | _e( 'Archives', 'twentyfourteen' ); |
| | 51 | esc_html_e( 'Archives', 'twentyfourteen' ); |
| 52 | 52 | |
| 53 | 53 | endif; |
| 54 | 54 | ?> |