[wp-trac] [WordPress Trac] #35488: wp_logout() not working as it should
WordPress Trac
noreply at wordpress.org
Sat Jan 16 17:34:39 UTC 2016
#35488: wp_logout() not working as it should
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
I have test:
{{{#!php
<?php
include 'wp-load.php';
echo 'content for guest<br />';
if ( is_user_logged_in() ) {
echo 'content for user logged in<br />';
} else {
echo 'content for user logged in - go to login form<br />';
}
wp_logout();
echo 'content for guest<br />';
if ( is_user_logged_in() ) {
echo 'content for user logged in';
} else {
echo 'content for user logged in - go to login form<br />';
}
}}}
Output should be:
{{{
content for user logged in
content for user logged in - go to login form
}}}
but output is:
{{{
content for user logged in
content for user logged in
}}}
I think that this is bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35488>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list