From e5275dcedbda545d5802b1daa0e2c4bfc3bd65f2 Mon Sep 17 00:00:00 2001 From: iandstewart Date: Tue, 28 Oct 2014 21:02:02 +0000 Subject: [PATCH] Twenty Fifteen: Use a heading heirarchy to provide a better navigation experience when using screenreading software. Props davidakennedy, rianrietveld, iamtakashi, afercia, davidakennedy, fixes #30065. git-svn-id: https://develop.svn.wordpress.org/trunk@30072 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/author-bio.php | 2 +- .../themes/twentyfifteen/content-link.php | 8 +++++++- .../themes/twentyfifteen/content-search.php | 2 +- src/wp-content/themes/twentyfifteen/content.php | 2 +- src/wp-content/themes/twentyfifteen/functions.php | 4 ++-- src/wp-content/themes/twentyfifteen/header.php | 14 ++++++++++++-- .../themes/twentyfifteen/inc/template-tags.php | 6 +++--- src/wp-content/themes/twentyfifteen/index.php | 6 ++++++ src/wp-content/themes/twentyfifteen/style.css | 2 ++ 9 files changed, 35 insertions(+), 11 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/author-bio.php b/src/wp-content/themes/twentyfifteen/author-bio.php index a3c2a9cf86..e7d839c118 100644 --- a/src/wp-content/themes/twentyfifteen/author-bio.php +++ b/src/wp-content/themes/twentyfifteen/author-bio.php @@ -24,7 +24,7 @@ ?>
-

+

', esc_url( twentyfifteen_get_link_url() ) ), '' ); ?> + ', esc_url( twentyfifteen_get_link_url() ) ), '' ); + else : + the_title( sprintf( '

', esc_url( twentyfifteen_get_link_url() ) ), '

' ); + endif; + ?>
diff --git a/src/wp-content/themes/twentyfifteen/content-search.php b/src/wp-content/themes/twentyfifteen/content-search.php index 1d625f9672..05fa74d8c8 100644 --- a/src/wp-content/themes/twentyfifteen/content-search.php +++ b/src/wp-content/themes/twentyfifteen/content-search.php @@ -14,7 +14,7 @@
- ', esc_url( get_permalink() ) ), '' ); ?> + ', esc_url( get_permalink() ) ), '' ); ?>
diff --git a/src/wp-content/themes/twentyfifteen/content.php b/src/wp-content/themes/twentyfifteen/content.php index 82a3aa3cbb..5cc937aa90 100644 --- a/src/wp-content/themes/twentyfifteen/content.php +++ b/src/wp-content/themes/twentyfifteen/content.php @@ -18,7 +18,7 @@ if ( is_single() ) : the_title( '

', '

' ); else : - the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); + the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); endif; ?> diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index c1c5281743..dccfc451e2 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -119,8 +119,8 @@ function twentyfifteen_widgets_init() { 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentyfifteen' ), 'before_widget' => '', - 'before_title' => '

', - 'after_title' => '

', + 'before_title' => '

', + 'after_title' => '

', ) ); } add_action( 'widgets_init', 'twentyfifteen_widgets_init' ); diff --git a/src/wp-content/themes/twentyfifteen/header.php b/src/wp-content/themes/twentyfifteen/header.php index a58512e6f2..8fbfa465da 100644 --- a/src/wp-content/themes/twentyfifteen/header.php +++ b/src/wp-content/themes/twentyfifteen/header.php @@ -29,8 +29,18 @@