[wp-trac] Re: [WordPress Trac] #4619: add_feed does not generate
rewrite rules
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 13 12:05:32 GMT 2007
#4619: add_feed does not generate rewrite rules
-------------------------------+--------------------------------------------
Reporter: cavemonkey50 | Owner: westi
Type: defect | Status: assigned
Priority: normal | Milestone: 2.3 (trunk)
Component: Administration | Version: 2.2.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+--------------------------------------------
Changes (by westi):
* keywords: => reporter-feedback
* owner: anonymous => westi
* status: new => assigned
Comment:
Can you provide simple example code demonstrating this issue?
You should not be calling add_feed when your plugin is included but in an
action on the init hook and then all will work fine.
Plugins should not really run any code at include time apart from hooking
onto init (or maybe plugins_loaded) to run there initialisation code.
You cannot guarantee that WordPress has loaded and is ready for you to
call it's API until the init hook fires.
--
Ticket URL: <http://trac.wordpress.org/ticket/4619#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list