X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/138998bbd8f7a1ac38b2f1eacbdf7cd522be4b13..c81aba3d563f7459dc79140e4c5be67bcf506b92:/wp-includes/general-template.php diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index f554e1fd..79b42e9c 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -471,7 +471,7 @@ function wp_login_form( $args = array() ) { $login_form_bottom = apply_filters( 'login_form_bottom', '', $args ); $form = ' -
+ ' . $login_form_top . '

@@ -856,8 +856,8 @@ function wp_get_document_title() { /* translators: %s: search phrase */ $title['title'] = sprintf( __( 'Search Results for “%s”' ), get_search_query() ); - // If on the home or front page, use the site title. - } elseif ( is_home() && is_front_page() ) { + // If on the front page, use the site title. + } elseif ( is_front_page() ) { $title['title'] = get_bloginfo( 'name', 'display' ); // If on a post type archive, use the post type archive title. @@ -869,14 +869,10 @@ function wp_get_document_title() { $title['title'] = single_term_title( '', false ); /* - * If we're on the blog page and that page is not the homepage or a single - * page that is designated as the homepage, use the container page's title. + * If we're on the blog page that is not the homepage or + * a single post of any post type, use the post title. */ - } elseif ( ( is_home() && ! is_front_page() ) || ( ! is_home() && is_front_page() ) ) { - $title['title'] = single_post_title( '', false ); - - // If on a single post of any post type, use the post title. - } elseif ( is_singular() ) { + } elseif ( is_home() || is_singular() ) { $title['title'] = single_post_title( '', false ); // If on a category or tag archive, use the term title. @@ -904,7 +900,7 @@ function wp_get_document_title() { } // Append the description or site title to give context. - if ( is_home() && is_front_page() ) { + if ( is_front_page() ) { $title['tagline'] = get_bloginfo( 'description', 'display' ); } else { $title['site'] = get_bloginfo( 'name', 'display' );