Changes between Initial Version and Version 1 of Ticket #19559, comment 1
- Timestamp:
- 12/15/2011 04:33:35 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19559, comment 1
initial v1 1 On the contrary, while ''is_user_logged_in'' doesnt do anything, this works perfectly: 2 1 Same issue with: 3 2 4 3 {{{ 5 4 $current_user = wp_get_current_user(); 6 if ( 0 == $current_user->ID ) { 7 // do something 5 if ( 0 == $current_user->ID ) { 6 // Not logged in. 7 } else { 8 // Logged in. 8 9 } 9 10 }}} 11 12 Are we missing important documentation here, or is it really a bug?