Make WordPress Core

Changeset 2509


Ignore:
Timestamp:
04/03/2005 05:09:31 AM (21 years ago)
Author:
ryan
Message:

In get_category(), check for empty category id so that we do not create a malformed SQL query.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r2508 r2509  
    618618        global $cache_categories, $wpdb;
    619619
     620        if ( empty($category) )
     621                return null;
     622
    620623        if ( ! isset($cache_categories))
    621624                update_category_cache();
Note: See TracChangeset for help on using the changeset viewer.