[wp-trac] [WordPress Trac] #9674: Better support for custom post types

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 1 01:17:18 UTC 2010


#9674: Better support for custom post types
------------------------------------+---------------------------------------
 Reporter:  wnorris                 |        Owner:  ryan    
     Type:  task (blessed)          |       Status:  reopened
 Priority:  normal                  |    Milestone:  3.0     
Component:  Administration          |      Version:  2.9     
 Severity:  normal                  |   Resolution:          
 Keywords:  has-patch tested early  |  
------------------------------------+---------------------------------------

Comment(by mikeschinkel):

 Replying to [comment:192 strider72]:
 > So my thought is, implement a **default** permalink structure, but if a
 plugin author wants it to be something else, that should be do-able (e.g.
 replace the default entirely with something custom, via a hook:
 'custom_[type]_permalink' or somesuch.)

 Definitely, a plugin should be able to override but as it seems you agree
 a default structure managed by core minimizes potential for conflict.

 > The danger though:
 > Replying to prettyboymp
 > >Multiple plugins shouldn't define the url structure for a single post
 type. A plugin should only create its own post_types and manage only the
 url structures for those post_types. I don't know of a reason a plugin
 should mess with post_types it didn't create.
 >
 > That's not the problem.  Two plugins could create permalink structures
 that conflict with each other.  They wouldn't have to be for the same post
 type necessarily.

 Exactly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:193>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list