Nope. It’s still writing an error message to the domain error_log:
client denied by server configuration: /home/user/public_html/clubzone/blog-it/wp-cron.php
function wp_logout() {
wp_clear_auth_cookie();
do_action(‘wp_logout’);
}
I’m thinking it’s clearing the authentication cache, then trying to do some other things but it is no longer authenticated.
I’ve looked at do_action, but I haven’t been able to find the location where the variables are set up for the do_action function to perform the logout. Does anyone know where the initialization occurs for all of the do_action calls?
I’m calling wp_logout from a directory above the blog.
Using:
<?php
require_once($_SERVER[‘DOCUMENT_ROOT’].”/../conf/wp_conf.php” );
require_once($_SERVER[‘DOCUMENT_ROOT’].$base.”wp-includes/user.php”);
require_once($_SERVER[‘DOCUMENT_ROOT’].$base.”wp-includes/registration.php”);
require_once($_SERVER[‘DOCUMENT_ROOT’].$base.”wp-includes/pluggable.php” );
wp_logout();
?>