mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Fix warnings related to static pages. props zeo for initial patch. fixes #13830.
git-svn-id: https://develop.svn.wordpress.org/trunk@15227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2402,6 +2402,7 @@ function sanitize_option($option, $value) {
|
||||
case 'mailserver_port':
|
||||
case 'comment_max_links':
|
||||
case 'page_on_front':
|
||||
case 'page_for_posts':
|
||||
case 'rss_excerpt_length':
|
||||
case 'default_category':
|
||||
case 'default_email_category':
|
||||
|
||||
@@ -585,7 +585,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
|
||||
// If there is a post
|
||||
if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) {
|
||||
$post = $wp_query->get_queried_object();
|
||||
$title = apply_filters( 'single_post_title', empty( $post->post_title ) ? '' : $post->post_title );
|
||||
$title = apply_filters( 'single_post_title', $post->post_title );
|
||||
}
|
||||
|
||||
// If there's a taxonomy
|
||||
|
||||
Reference in New Issue
Block a user