Title: [Plugin: OpenID] Missing check for $wp_scripts
Last modified: August 19, 2016

---

# [Plugin: OpenID] Missing check for $wp_scripts

 *  [Three](https://wordpress.org/support/users/three/)
 * (@three)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-openid-missing-check-for-wp_scripts/)
 * When signed in with an OpenID, the following error was being displayed at the
   bottom of the post page:
 * >  PHP Fatal error: Call to a member function query() on a non-object in /blog/
   > wp-content/plugins/openid/comments.php on line 182
 * There was a missing `isset($wp_scripts)`. The code sample below includes my fix
   and corrects a typo in your comment 😛
 *     ```
       /**
        * Print jQuery call for stylizing profile link.
        *
        * @action: comment_form
        **/
       function openid_comment_profilelink() {
       	global $wp_scripts;
       	if ((is_single() || is_comments_popup()) && is_user_openid() && isset($wp_scripts) && $wp_scripts->query('openid')) {
       		echo '<script type="text/javascript">stylize_profilelink()</script>';
       	}
       }
       ```
   
 * Is there perhaps a more serious problem, in that $wp_scripts isn’t set?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Three](https://wordpress.org/support/users/three/)
 * (@three)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-openid-missing-check-for-wp_scripts/#post-919804)
 * Hmm, it seems I was using an older version of the plugin and WordPress wasn’t
   pushing it to me.
 * The problem still exists in OpenID v3.1.4, but it is now on line 195, rather 
   than 182.
 *  [Will Norris](https://wordpress.org/support/users/wnorris/)
 * (@wnorris)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-openid-missing-check-for-wp_scripts/#post-919839)
 * kinda strange that this is happening… I can’t seem to reproduce it. In any event,
   I’ve updated trunk so that it will be in the next release (3.1.5).
 *  [Gary Pendergast](https://wordpress.org/support/users/pento/)
 * (@pento)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-openid-missing-check-for-wp_scripts/#post-919973)
 * It seems this fix has been reverted at some point. I’m seeing this error in OpenID
   3.3.1, it’s now on line 239.
 * (And the comment typo is back. :p)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: OpenID] Missing check for $wp_scripts’ is closed to new replies.

## Tags

 * [isset](https://wordpress.org/support/topic-tag/isset/)

 * 3 replies
 * 3 participants
 * Last reply from: [Gary Pendergast](https://wordpress.org/support/users/pento/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-openid-missing-check-for-wp_scripts/#post-919973)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
