Ticket #25690: 25690.ternary.diff
File 25690.ternary.diff, 470 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/user.php
212 212 * @return int The current user's ID 213 213 */ 214 214 function get_current_user_id() { 215 $user = wp_get_current_user();215 $user = function_exists( 'wp_get_current_user' ) ? wp_get_current_user() : new WP_User; 216 216 return ( isset( $user->ID ) ? (int) $user->ID : 0 ); 217 217 } 218 218