Make WordPress Core

Ticket #27015: is_category.patch

File is_category.patch, 479 bytes (added by tivnet, 12 years ago)

get_queried_object may be NULL in is_category

  • wp-includes/query.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    34443444                        return true;
    34453445
    34463446                $cat_obj = $this->get_queried_object();
     3447                if ( is_null( $cat_obj ) ) {
     3448                        return false;
     3449                }
    34473450
    34483451                $category = (array) $category;
    34493452