Changeset 3309
- Timestamp:
- 12/15/2005 04:31:41 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-admin/list-manipulation.php (modified) (1 diff)
-
wp-includes/classes.php (modified) (1 diff)
-
wp-includes/pluggable-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/list-manipulation.php
r3104 r3309 5 5 6 6 get_currentuserinfo(); 7 if ( ! $current_user)7 if ( !is_user_logged_in() ) 8 8 die('-1'); 9 9 -
trunk/wp-includes/classes.php
r3303 r3309 1564 1564 global $current_user; 1565 1565 @header('X-Pingback: '. get_bloginfo('pingback_url')); 1566 if ( $current_user)1566 if ( is_user_logged_in() ) 1567 1567 nocache_headers(); 1568 1568 if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) { -
trunk/wp-includes/pluggable-functions.php
r3302 r3309 150 150 } 151 151 } 152 } 153 endif; 154 155 if ( !function_exists('is_user_logged_in') ) : 156 function is_user_logged_in() { 157 global $current_user; 158 159 if ( $current_user->id == 0 ) 160 return false; 161 return true; 152 162 } 153 163 endif;
Note: See TracChangeset
for help on using the changeset viewer.