[wp-trac] [WordPress Trac] #21335: add_rewrite_endpoint() malfunction
WordPress Trac
wp-trac at lists.automattic.com
Sun Jul 22 08:56:17 UTC 2012
#21335: add_rewrite_endpoint() malfunction
---------------------------+----------------------
Reporter: Fike | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Rewrite Rules | Version: 3.4.1
Severity: minor | Resolution: invalid
Keywords: |
---------------------------+----------------------
Changes (by duck_):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Replying to [comment:2 Fike]:
> Calling $wp_rewrite->flush_rules() after adding new endpoint did the job
(saving new permalinks in settings didn't). Now i'm completely lost - why
add_rewrite_endpoint() should be called during each request, while it is
added once and forever after flush_rules()?
Because if rules get flushed again at a later point (e.g. user visiting
permalinks options page) then your endpoint will be lost as it wasn't
registered on that page load.
Closing this ticket as invalid.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21335#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list