From b95e4fe3b99c2e0fb92219776da438b335cdd57b Mon Sep 17 00:00:00 2001 From: kurudrive Date: Wed, 2 Dec 2020 00:49:58 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[=20=E4=BB=95=E6=A7=98=E5=A4=89=E6=9B=B4=20?= =?UTF-8?q?]=20=E6=8A=95=E7=A8=BF=E3=82=BF=E3=82=A4=E3=83=97=E3=82=A2?= =?UTF-8?q?=E3=83=BC=E3=82=AB=E3=82=A4=E3=83=96=E3=81=AE=E3=82=A2=E3=83=BC?= =?UTF-8?q?=E3=82=AB=E3=82=A4=E3=83=96=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB?= =?UTF-8?q?=E5=90=8D=E8=A1=A8=E7=A4=BA=E9=83=A8=E5=88=86=E4=BB=95=E6=A7=98?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/template-tags.php | 2 +- index.php | 2 +- template-parts/page-header.php | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 7a114da27..a82f127e1 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -328,7 +328,7 @@ function lightning_get_the_archive_title() { } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { - $title = sprintf( __( 'Author: %s', 'lightning' ), '' . get_the_author() . '' ); + $title = get_the_author(); } elseif ( is_year() ) { $title = get_the_date( _x( 'Y', 'yearly archives date format', 'lightning' ) ); } elseif ( is_month() ) { diff --git a/index.php b/index.php index 2dad13e74..fc8f6c757 100644 --- a/index.php +++ b/index.php @@ -50,7 +50,7 @@ $page_for_posts = lightning_get_page_for_posts(); // Use post top page( Archive title wrap to div ). if ( $page_for_posts['post_top_use'] || get_post_type() !== 'post' ) { - if ( is_year() || is_month() || is_day() || is_tag() || is_author() || is_tax() || is_category() ) { + if ( is_year() || is_month() || is_day() || is_tag() || is_tax() || is_category() ) { $archiveTitle = get_the_archive_title(); $archiveTitle_html = '

' . $archiveTitle . '

'; } diff --git a/template-parts/page-header.php b/template-parts/page-header.php index 277d9cfaf..fd679e22e 100644 --- a/template-parts/page-header.php +++ b/template-parts/page-header.php @@ -7,7 +7,7 @@ // Use post top page( Archive title wrap to div ) if ( $page_for_posts['post_top_use'] ) { - if ( is_category() || is_tag() || is_author() || is_tax() || is_single() || is_date() ) { + if ( is_category() || is_tag() || is_tax() || is_single() || is_date() ) { $pageTitTag = 'div'; } else { $pageTitTag = 'h1'; @@ -46,6 +46,8 @@ $pageTitle = sprintf( __( 'Search Results for : %s', 'lightning' ), $bbp_search ); } elseif ( is_404() ) { $pageTitle = __( 'Not found', 'lightning' ); +} elseif ( is_author() ) { + $pageTitle = get_the_archive_title(); } elseif ( is_category() || is_tag() || is_tax() || is_home() || is_author() || is_archive() || is_single() ) { // Case of post type == 'post' From 2f2d822603851a648f2e1f7aa2bbc8ea5c04f706 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Wed, 2 Dec 2020 01:59:54 +0900 Subject: [PATCH 2/2] [ Change version ] 13.2.0 --- readme.txt | 3 +++ style.css | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 9dece348f..d7473af7d 100644 --- a/readme.txt +++ b/readme.txt @@ -39,6 +39,9 @@ https://www.vektor-inc.co.jp/inquiry/ == Changelog == +v13.2.0 +[ Specification Change ][ Author archive ] change archive title display specification. + v13.1.3 [ Specification Change ] Load Term Color on init diff --git a/style.css b/style.css index 4f1453920..14d0233ca 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Theme URI: https://lightning.nagoya Description: Lightning is a very simple & easy to customize theme which is based on the Bootstrap. It is also very friendly with custom post types and custom taxonomies. When you add a new one, the breadcrumbs will be adjusted and posts will look beautifully without editing or adding a template files. Author: Vektor,Inc. Author URI: https://www.vektor-inc.co.jp -Version: 13.1.3 +Version: 13.2.0 Requires at least: 5.0 Tested up to: 5.5.1 Requires PHP: 5.6.0