WordPress.org

Make WordPress Core

Changeset 15224


Ignore:
Timestamp:
06/11/2010 04:30:59 PM (10 years ago)
Author:
wpmuguru
Message:

fix warning when page on front missing, see #13830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r15148 r15224  
    586586    if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) {
    587587        $post = $wp_query->get_queried_object();
    588         $title = apply_filters( 'single_post_title', $post->post_title );
     588        $title = apply_filters( 'single_post_title', empty( $post->post_title ) ? '' : $post->post_title );
    589589    }
    590590
Note: See TracChangeset for help on using the changeset viewer.