From fa4a39b0c7d237ab660727d46001c27839ee6350 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 3 Oct 2006 15:41:44 +0000 Subject: [PATCH] Init vars before use. Props Alex King. fixes #3180 git-svn-id: https://develop.svn.wordpress.org/trunk@4277 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category-template.php | 2 ++ wp-includes/general-template.php | 1 + 2 files changed, 3 insertions(+) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index c6d1e45223..e2a8c6959f 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -4,6 +4,8 @@ function get_category_children($id, $before = '/', $after = '') { if ( 0 == $id ) return ''; + $chain = ''; + $cat_ids = get_all_category_ids(); foreach ( $cat_ids as $cat_id ) { if ( $cat_id == $id) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 3860e0887e..17f2114248 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -154,6 +154,7 @@ function wp_title($sep = '»', $display = true) { $category_name = get_query_var('category_name'); $author = get_query_var('author'); $author_name = get_query_var('author_name'); + $title = ''; // If there's a category if ( !empty($cat) ) {