wp_set_current_user instead of wp_get_current_user?
-
Hello,
I’ve noticed on the file plf-filter.php there this block of code:
if ( !function_exists('is_user_logged_in') ) : function is_user_logged_in() { if ( ! function_exists( 'wp_set_current_user' ) ) return false; $user = wp_get_current_user(); if ( ! $user->exists() ) return false; return true; } endif;
Shouldn’t
if ( ! function_exists( 'wp_set_current_user' ) )
really beif ( ! function_exists( 'wp_get_current_user' ) )
?Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_set_current_user instead of wp_get_current_user?’ is closed to new replies.