[wp-trac] [WordPress Trac] #14669: get_categories returns only after page reload all cats
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 14:06:07 UTC 2011
#14669: get_categories returns only after page reload all cats
-----------------------------+-----------------------------
Reporter: christian_gnoth | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Cache | Version: 3.2.1
Severity: major | Resolution:
Keywords: |
-----------------------------+-----------------------------
Changes (by christian_gnoth):
* version: 3.0.1 => 3.2.1
Comment:
still with version 3.2.1 I have the same problem. During plugin activation
action I have the following code:
{{{
// check if default cat exists
if ( !get_cat_ID('Support Tickets') )
{
$cat_id = wp_create_category( 'Support Tickets' );
$cat_id = wp_create_category( 'New Tickets', $cat_id );
}
}}}
In the posts->catgories section I get only the "Support Tickets" category,
the child category is not listed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14669#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list