Warning fixes

git-svn-id: https://develop.svn.wordpress.org/trunk@9475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-02 20:53:15 +00:00
parent a86a3ea96a
commit fa7377cd36
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
}
// tack on any additional query vars
if ( $redirect_url && $redirect['query'] ) {
if ( $redirect_url && !empty($redirect['query']) ) {
if ( strpos($redirect_url, '?') !== false )
$redirect_url .= '&';
else

View File

@ -62,7 +62,7 @@ function get_category_link( $category_id ) {
return $category;
$category_nicename = $category->slug;
if ( $parent == $category_id ) // recursive recursion
if ( $category->parent == $category_id ) // recursive recursion
$category->parent = 0;
if ( $parent = $category->parent )