[wp-trac] [WordPress Trac] #15460: Feed format parameter for is_feed()
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 18 02:22:00 UTC 2010
#15460: Feed format parameter for is_feed()
-------------------------+--------------------------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
`is_feed()` should accept an optional parameter so the feed format can be
specified.
For example, a plugin of mine adds a feed format and a helper plugin which
works with it needs a simple way to determine the format of the current
feed.
I currently use:
{{{
function is_flow_feed() {
return ( 'flow' === get_query_var( 'feed' ) );
}
}}}
Patch coming up.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15460>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list