[wp-trac] [WordPress Trac] #3281: Default category not checked when composing new post

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 25 19:10:08 GMT 2006


#3281: Default category not checked when composing new post
----------------------------+-----------------------------------------------
 Reporter:  alexkingorg     |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.1      
 Severity:  major           |    Keywords:           
----------------------------+-----------------------------------------------
 I may be missing something, but I'm not seeing my default category checked
 when composing a new post in WP 2.1 (trunk).

 Tracking back from the 'dropdown_categories' in edit-form-advanced, I see
 a call to 'write_nested_categories' which passes in the array result of
 'get_nested_categories'. So assuming I'm reading this right, the category
 stuff should be set in 'get_nested_categories'.

 In 'get_nested_categories', I see a query to get categories for the post,
 but no call to 'get_option('default_category')' to set the default
 category - instead it is set to the $default argument which is never
 populated in this chain. It *is* populated for links:

 wp-admin/edit-link-form.php:46:  <ul id="categorychecklist"><?php
 dropdown_link_categories(get_option('default_link_category')); ?></ul>

 This seems like a bug to me, but the chain is deep and I don't know the
 ins and outs of the admin logic so I'm not sure exactly at what level it
 needs to be fixed.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3281>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list