[wp-trac] [WordPress Trac] #17276: custom post type problems needs addressed
WordPress Trac
wp-trac at lists.automattic.com
Wed May 4 13:48:42 UTC 2011
#17276: custom post type problems needs addressed
-------------------------+------------------------------
Reporter: squeeky | Owner: squeeky
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+------------------------------
Comment (by squeeky):
LOL - no, i'm not about to ask that post types are stored persistently
somewhere - but i will say this :
what really confused me is the names of the functions...
- register_post_type
- register_taxonomy
i'm not saying change this (fact is i don't want you to change it) - i'm
only commenting on what confused me so - and that is:
the functions really 'should' be called
- recognize_post_type
- recognize_taxonomy
because it seems that's what the functions are actually doing -
"recognizing" (acknowledging) rather than registering
- to register something, by definition, means to gather its info and store
it persistently somewhere - by definition: to add it to a book or list
again, i am not saying this should be changed, i am only saying what
confused me > a function called "register_..." that does not register
anything - who would of thunk it.
______________________________________
but no > the auto-flush method i thought of does not involve storing post
types persistently somewhere ;)
and maybe the method i thought is not as efficient as i thought because of
that - but i'm sure you can figure out hoe efficient it would be...
first thing within register_post_type run test to see if post type is
"registered" yet / if not set flag $new_post_type to TRUE
then where fitting:
IF( $new_post_type ) auto-flush
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17276#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list