Open 1ucay opened 2 years ago
also there should be LOGGED_IN_COOKIE
private static function _is_logged_in() {
/* Logged in */
if ( is_user_logged_in() ) {
return true;
}
/* Cookie? */
if ( empty( $_COOKIE ) ) {
return false;
}
/* Loop */
foreach ( $_COOKIE as $k => $v ) {
if ( preg_match( '/^(wp-postpass|wordpress_logged_in|comment_author)_/', $k ) ) {
return true;
}
}
return false;
}
Hello, thank you for you work.
In wp-config.php I have some personal changes
Also I have
define( 'WP_CONTENT_DIR', WEB_ROOT . '/app' );
So these lines
Shoul be generated over
LOGGED_IN_COOKIE
,admin_url()
,WP_CONTENT_DIR
Thank you.