[wp-trac] Re: [WordPress Trac] #9460: Add custom_url_func to be run
in template-loader.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 6 04:53:25 GMT 2009
#9460: Add custom_url_func to be run in template-loader.php
--------------------------+-------------------------------------------------
Reporter: mikeschinkel | Owner: mikeschinkel
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Permalinks | Version: 2.8
Severity: normal | Keywords: custom url
--------------------------+-------------------------------------------------
Comment(by mikeschinkel):
So I'm now working on a plugin to make it easy to add rewrite rules by
specifying templates.
However, I'm still running into numerous "challenges" with core. For
example, if I add the following rewrite rule as the first "courses/(.*)"
it gets matched but $wp_query->is_home is set to true. It seems that
$wp->parse_query() doesn't know how to handle a "custom" rewrite rule.
Further, there appears to be no way to tell WordPress to not query posts.
There are many use cases where I don't want to automatically run a query
for posts in the database;
Can I get confirmation that these issues I mention are not intended
behavior and also some indication on what would be an acceptable way to
get these issues resolved?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9460#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list