WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19559, comment 1


Ignore:
Timestamp:
12/15/11 04:33:35 (4 years ago)
Author:
Dukessa
Comment:

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  
     1Same issue with: 
    32 
    43{{{ 
    54$current_user = wp_get_current_user(); 
    6 if ( 0 == $current_user->ID ) {  
    7 // do something 
     5if ( 0 == $current_user->ID ) { 
     6    // Not logged in. 
     7} else { 
     8    // Logged in. 
    89} 
    910}}} 
     11 
     12Are we missing important documentation here, or is it really a bug?