[wp-trac] [WordPress Trac] #17276: custom post type problems needs addressed

WordPress Trac wp-trac at lists.automattic.com
Sun May 1 13:27:05 UTC 2011


#17276: custom post type problems needs addressed
-------------------------+------------------------------
 Reporter:  squeeky      |       Owner:  squeeky
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------

Comment (by squeeky):

 so are you actually saying that the FUNCTION register_post_type is called
 on every page load ??? > AND that's how where i placed
 "$wp_rewrite->flush_rules" gets called on every page load...

 OR are you saying somehow the area i placed that line gets called without
 actually calling the FUNCTION register_post_type ???

 neither case makes sense to me - if you could explain what i might be
 missing, that might help - if not > i understand you're very busy...

 I mean I figured what I did was not "right" or the best way to do it - but
 "called on every page load" - i'm sorry > but now i'm really lost (and so
 many of my years programming just flew out the window)

 but if you can explain this to me, perhaps then you could also explain how
 while in the FUNCTION register_post_type the "$wp_rewrite->flush_rules"
 line would get called on every page load / BUT in the FUNCTION
 wp_delete_post and the FUNCTION _save_post_hook "$wp_rewrite->flush_rules"
 would not be called on every page load (both also in post.php) - ?

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


More information about the wp-trac mailing list