Changes in trunk/wp-includes/user.php [14931:15235]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r14931 r15235 210 210 // User option functions 211 211 // 212 213 /** 214 * Get the current user's ID 215 * 216 * @since MU 217 * 218 * @uses wp_get_current_user 219 * 220 * @return int The current user's ID 221 */ 222 function get_current_user_id() { 223 $user = wp_get_current_user(); 224 return ( isset( $user->ID ) ? (int) $user->ID : 0 ); 225 } 212 226 213 227 /**
Note: See TracChangeset
for help on using the changeset viewer.