/** * Finish OpenID authentication. After doing the basic stuff, the action method is called to complete the * process. Action methods are based on the action name passed in and are of the form * '_finish_openid_$action'. Action methods are passed the verified identity URL, or null if OpenID * authentication failed. * * @param string $action login action that is being performed */ function finish_openid($action) { global $openid; if (!WordPressOpenID_Logic::late_bind()) { return; } // something is broken $identity_url = WordPressOpenID_Logic::finish_openid_auth(); if (!empty($action) && method_exists('WordPressOpenID_Logic', '_finish_openid_' . $action)) { call_user_func(array('WordPressOpenID_Logic', '_finish_openid_' . $action), $identity_url); } global $action; $action = $openid->action; }