core =& $core; $this->logic =& $core->logic; } /** * Provide more useful OpenID error message to the user. * * @filter: login_errors **/ function login_form_hide_username_password_errors($r) { if( $_POST['openid_url'] or $_GET['action'] == 'loginopenid' or $_GET['action'] == 'commentopenid' ) return $this->logic->error; return $r; } /** * Add OpenID input field to wp-login.php * * @action: login_form **/ function login_form() { ?>
For faster registration, just login with OpenID!
]* class=[^>]+>/', $html)) { return preg_replace( '/(]* class=[\'"]?)/', '\\1openid_link ' , $html ); } else { return preg_replace( '/(]*)/', '\\1 class="openid_link"' , $html ); } } return $html; } /** * Enqueue required javascript libraries. * * @action: init **/ function js_setup() { wp_enqueue_script( 'jquery' ); wp_enqueue_script('jquery.textnode', $this->core->path . '/files/jquery.textnode.js', array('jquery'), WPOPENID_PLUGIN_REVISION); wp_enqueue_script('jquery.xpath', $this->core->path . '/files/jquery.xpath.js', array('jquery'), WPOPENID_PLUGIN_REVISION); wp_enqueue_script('openid', $this->core->path . '/files/openid.js', array('jquery','jquery.textnode'), WPOPENID_PLUGIN_REVISION); } /** * Include internal stylesheet. * * @action: wp_head, login_head **/ function style() { $css_path = $this->core->fullpath . '/files/openid.css?ver='.WPOPENID_PLUGIN_REVISION; echo ' '; } /** * Print jQuery call for slylizing profile link. * * @action: comment_form **/ function comment_profilelink() { if (is_user_openid()) { echo ''; } } /** * Print jQuery call to modify comment form. * * @action: comment_form **/ function comment_form() { global $user_ID; if (!$user_ID) { echo ''; } } /** * Spam up the admin interface with warnings. **/ function admin_notices_plugin_problem_warning() { ?>The WordPress OpenID plugin is not active. Check OpenID Options for a full diagnositic report.
At least one of OpenID options was NOT updated'.$error.'
Open ID options updated
Success: '.$this->logic->error.'
Error: '.$this->logic->error.'
The following Identity URLs ? are tied to this user account. You can login with equivalent permissions using any of the following identities.
logic->store->get_my_identities(); if( count($urls) ) : ?>There are identities associated with this WordPress user.
| ID | Identity Url | Action |
|---|---|---|
| Delete |
Status information: All Systems Nominal (Toggle More/Less)
Plugin is currently disabled. Fix the problem, then Deactivate/Reactivate the plugin.