[wp-hackers] Any way to bypass $wp->query_posts()?
SoJ Web
sojweb at indiana.edu
Wed Apr 8 18:55:00 GMT 2009
On Apr 8, 2009, at 14:07 PM, Mike Schinkel wrote:
> My plugin allows a themer or plugin developer to define any
> arbitrary URL they want to have processed and have it routed to run
> whatever they want to run. Basically it lets a themer or plugin dev
> start a page with a (mostly) clean slate. With this plugin and in
> some use-cases running get_posts() makes no sense because the
> process flow never makes it to running a page template or even any
> of the "if" logic template-loader.php.
At that point, why not just have the plugin modify the htaccess file
and bypass WordPress altogether? Anyone who needs this kind of control
surely has write permissions to the root. If you don't need post
content or any template logic, I don't see why you'd need WordPress at
all. The plugin could have its own database table to store things, and
not worry about anything else; I've done this on the site I manage and
it works like a charm.
-Jeff
More information about the wp-hackers
mailing list