/** * Get the OpenID identities for the specified user. * * @param mixed $id_or_name the username or ID. If not provided, the current user will be used. * @return array array of user's OpenID identities * @access public * @since 3.0 */ function get_user_openids($id_or_name = null) { $user = get_userdata_by_various($id_or_name); if ( $user ) { global $wpdb; return $wpdb->get_col( $wpdb->prepare('SELECT url FROM '.openid_identity_table().' WHERE user_id = %s', $user->ID) ); } else { return array(); } }
/** * Get the OpenID identities for the specified user. * * @param mixed $id_or_name the username or ID. If not provided, the current user will be used. * @return array array of user's OpenID identities * @access public * @since 3.0 */ function get_user_openids($id_or_name = null) { $user = get_userdata_by_various($id_or_name); return _get_user_openids($user->ID); }