Make WordPress Core

Changeset 2387


Ignore:
Timestamp:
02/27/2005 04:47:38 AM (21 years ago)
Author:
ryan
Message:

Make sure get_the_category() returns an array.

File:
1 edited

Legend:

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

    r2379 r2387  
    2121                if (!empty($categories))
    2222                        sort($categories);
     23                else
     24                        $categories = array();
    2325
    2426                return $categories;
Note: See TracChangeset for help on using the changeset viewer.