[wp-trac] Re: [WordPress Trac] #6035: Category to Tag Converter fails to convert the default category

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 19 04:06:38 GMT 2008


#6035: Category to Tag Converter fails to convert the default category
-------------------------------------+--------------------------------------
 Reporter:  westi                    |        Owner:  anonymous
     Type:  defect                   |       Status:  new      
 Priority:  normal                   |    Milestone:  2.9      
Component:  Administration           |      Version:  2.7      
 Severity:  normal                   |   Resolution:           
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Changes (by sillybean):

  * keywords:  needs-patch => has-patch needs-testing
  * version:  2.5 => 2.7

Comment:

 My patch does a couple of things:
 1. prevents the default category from being selected for conversion
 2. sets the default category on all posts that have no categories after
 the conversion

 There must be a better way to get all post IDs than to select them
 straight from the db, but I couldn't get get_posts to work with
 numberposts=-1 as the codex indicated.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6035#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list