[wp-trac] Re: [WordPress Trac] #2652: category_exists() checks using slug

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 9 08:22:01 GMT 2006


#2652: category_exists() checks using slug
----------------------------+-----------------------------------------------
       Id:  2652            |      Status:  new                     
Component:  Administration  |    Modified:  Sun Apr  9 08:22:01 2006
 Severity:  trivial         |   Milestone:                          
 Priority:  lowest          |     Version:  2.0.2                   
    Owner:  anonymous       |    Reporter:  Viper007Bond            
----------------------------+-----------------------------------------------
Changes (by Viper007Bond):

  * severity:  normal => trivial
  * priority:  normal => lowest

Comment:

 Er, meant to hit preview rather than submit.

 Anyway, if it is just used to check for slug collisions, shouldn't this be
 called like "category_slug_exists()" or something? I was going to use this
 function for a script I'm writing that manually creates posts and any
 needed categories, but I want to check my category name, not the slug (I'm
 currently manually querying).

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


More information about the wp-trac mailing list