WordPress.org

Ready to get started?Download WordPress

Forums

OpenID server not declared on WP 2.7 (5 posts)

  1. Jehy
    Member
    Posted 5 years ago #

    Seems like I had this problem for years, but know I had time and found the reason.
    Digging into openid/server.php:

    if (is_front_page()) {
    		if (!defined('OPENID_DISALLOW_OWNER') || !OPENID_DISALLOW_OWNER) {
    
    			$user = get_userdatabylogin(get_option('openid_blog_owner'));
    		}
    	} else if (is_author()) {
    		global $wp_query;
    		$user = $wp_query->get_queried_object();
    	}

    For some strange reason conditional tag if is_front_page() returns false. People also say that it only works in templates...
    Either way, if I replace is_front_page with is_home then everything is allright and server declares itself...

    http://wordpress.org/extend/plugins/openid/

  2. Jehy
    Member
    Posted 5 years ago #

    Yeah, now, with this replace, everything is working great...

  3. Will Norris
    Member
    Posted 5 years ago #

  4. Jehy
    Member
    Posted 5 years ago #

    Yeah, thanks.
    I have no pages on my blog, and it could be the reason function didn't behave properly.

  5. mvstudio
    Member
    Posted 5 years ago #

    Well, I have pages and posts on my blog, and still openID is not working as it should. I can't comment on blogger or anywhere for that matter.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags