WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/src/wp-includes/general-template.php

    r35706 r36169  
    472472
    473473    $form = '
    474         <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( wp_login_url() ) . '" method="post">
     474        <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( site_url( 'wp-login.php', 'login_post' ) ) . '" method="post">
    475475            ' . $login_form_top . '
    476476            <p class="login-username">
     
    857857        $title['title'] = sprintf( __( 'Search Results for &#8220;%s&#8221;' ), get_search_query() );
    858858
    859     // If on the home or front page, use the site title.
    860     } elseif ( is_home() && is_front_page() ) {
     859    // If on the front page, use the site title.
     860    } elseif ( is_front_page() ) {
    861861        $title['title'] = get_bloginfo( 'name', 'display' );
    862862
     
    870870
    871871    /*
    872      * If we're on the blog page and that page is not the homepage or a single
    873      * page that is designated as the homepage, use the container page's title.
    874      */
    875     } elseif ( ( is_home() && ! is_front_page() ) || ( ! is_home() && is_front_page() ) ) {
    876         $title['title'] = single_post_title( '', false );
    877 
    878     // If on a single post of any post type, use the post title.
    879     } elseif ( is_singular() ) {
     872     * If we're on the blog page that is not the homepage or
     873     * a single post of any post type, use the post title.
     874     */
     875    } elseif ( is_home() || is_singular() ) {
    880876        $title['title'] = single_post_title( '', false );
    881877
     
    905901
    906902    // Append the description or site title to give context.
    907     if ( is_home() && is_front_page() ) {
     903    if ( is_front_page() ) {
    908904        $title['tagline'] = get_bloginfo( 'description', 'display' );
    909905    } else {
Note: See TracChangeset for help on using the changeset viewer.