[wp-trac] Re: [WordPress Trac] #9476: add_rewrite_endpoint()
doesn't work
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 7 12:10:07 GMT 2009
#9476: add_rewrite_endpoint() doesn't work
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Permalinks | Version: 2.8
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
Comment(by filosofo):
Replying to [ticket:9476 Denis-de-Bernardy]:
> Shouldn't it flush the rules automatically?
No. Adding an endpoint and generating the rewrite rules are two separate
actions. When you add an endpoint, you're adding an endpoint to the pool
of potential endpoints, which will be used the next time the rewrite rules
are generated. So whereas one regenerates the rewrite rules only
infrequently (for example, when a plugin is activated), the endpoint needs
to be added to the pool of potential endpoints on every load of WP, so
that it will be available to use in the case that something else flushes
and regenerates the rules.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9476#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list