Init vars before use. Props Alex King. fixes #3180

git-svn-id: https://develop.svn.wordpress.org/trunk@4277 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-10-03 15:41:44 +00:00
parent 8f25e35913
commit fa4a39b0c7
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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) ) {