Ticket #51307: 51307.2.patch
File 51307.2.patch, 1.4 KB (added by , 5 years ago) |
---|
-
src/wp-includes/general-template.php
1152 1152 /* translators: %s: Search query. */ 1153 1153 $title['title'] = sprintf( __( 'Search Results for “%s”' ), get_search_query() ); 1154 1154 1155 // If on the frontpage, use the site title.1156 } elseif ( is_front_page() ) {1155 // If we're on the front page or blog page, use the site title. 1156 } elseif ( is_front_page() || is_home() ) { 1157 1157 $title['title'] = get_bloginfo( 'name', 'display' ); 1158 1158 1159 1159 // If on a post type archive, use the post type archive title. … … 1164 1164 } elseif ( is_tax() ) { 1165 1165 $title['title'] = single_term_title( '', false ); 1166 1166 1167 /* 1168 * If we're on the blog page that is not the homepage 1169 * or a single post of any post type, use the post title. 1170 */ 1167 // If on a single post of any post type, use the post title. 1171 1168 } elseif ( is_home() || is_singular() ) { 1172 1169 $title['title'] = single_post_title( '', false ); 1173 1170 … … 1198 1195 } 1199 1196 1200 1197 // Append the description or site title to give context. 1201 if ( is_front_page() ) {1198 if ( is_front_page() || is_home() ) { 1202 1199 $title['tagline'] = get_bloginfo( 'description', 'display' ); 1203 1200 } else { 1204 1201 $title['site'] = get_bloginfo( 'name', 'display' );