WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
Show-stopper for other plugins using OAuth authentication (3 posts)

  1. Oliver Schloebe
    Member
    Posted 1 year ago #

    Hey Yoast,

    some people just noticed that your plugin "Google Analytics for WordPress" seems to be a show-stopper for other plugins providing OAuth authentication. While your plugin is active and authenticating via OAuth in other plugins, the user gets redirected to your plugin's admin page.

    I nailed it down to line 846 in googleanalytics.php. Everything is working as expected after removing
    exit;

    Plugins I tested that don't work with "Google Analytics for WordPress" include:
    - Twitter Blog
    - WordPress Dashboard Twitter

    Thanks!

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

  2. I've hit a similar problem developing a plugin which uses Twitter OAuth. The GAWP plugin assumes it's the only thing which is going to use OAuth and hijacks all incoming OAuth authentication responses.

    Here's a patch (warning: almost entirely untested, but I think it works) for GAWP which adds a specific parameter to the OAuth callback URL which GAWP tests for, instead of the generic OAuth GET params:

    http://pastebin.com/eSfnJRRg

  3. An alternative would be to change line 79 in googleanalytics.php so it doesn't hook admin_init, but instead hooks the load action for the GAWP admin page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic