Ryan,
It looks like you and I were typing at the same time. :) Please see my last
e-mail for an explanation on where/how load_template gets called.
I'll test out the idea of calling all of the main() functions except
handle_404() when I get home. Thanks for the idea.
On the handle_404 specifically, I just looked at
http://trac.wordpress.org/file/tags/1.5.2/wp-includes/classes.php and
confirmed
my suspicion (voiced in my last e-mail) that the entire function was not there
before. And I couldn't find a "200" in all of the 1.5.2 classes.php.
It would
be interesting if there are any notes or discussions on the logic for
handle_404
and the problem that it was intended to solve when included in 2.0.
Roger to delaying until 2.1. I was looking at the timeline on the Trac
roadmap
and thought that 2.0.1 wasn't going to be released until Feb 16. I was
surprised when it came out an hour after shifting 2360 to 2.1!
Thanks to you and Andy for taking time on this!
Cheers,
Kirk
Quoting Ryan Boren <[EMAIL PROTECTED]>:
That's in load_template(), which should never be called when only
loading wp-config.php. Curious.
If you look at the wp() call in functions.php, you'll see that it
calls WP::main() in classes.php. main() does the basic init for a WP
session. You can call any of those functions individually, leaving
out ones such as handle_404() that you don't want to run. You can
try this:
require('./wp-config.php');
$wp->init();
$wp-parse_request();
$wp->send_headers();
$wp->query_posts();
//Skip built-in 404 and do your own thing.
// $wp->handle_404();
custom_404_handler();
$wp->register_globals();
Of course, fixin WP in a way that accomodates everyone would be
preferable. I didn't do the suggested change for 2.0.1 simply
because I was afraid it would break other setups. We can nail this
down for the next release.
Ryan
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers