[Plugin: Google Analytics for WordPress] Logic problem on GA_Admin::authenticate()
-
define(‘GAWP_VERSION’, ‘4.2.2’);
GA_Admin::_construct()
add_action('admin_init', array(&$this, 'authenticate') );GA_Admin::authenticate()
function authenticate() { if ( isset( $_REQUEST['oauth_token'] ) ) { ...snip... wp_redirect( menu_page_url( $this->hook, false ) ); }OAuth is not GAWP own.
Many plugins that use OAuth is affected.Please check the below patch.
function authenticate() { + if ( !isset( $_REQUEST['page'] ) || $_REQUEST['page'] != $this->hook ) return; if ( isset( $_REQUEST['oauth_token'] ) ) { $o = get_option( $this->optionname );or strpos($_SERVER[‘REQUEST_URI’], menu_page_url($this->hook, false))
or better your solutionsThanks.
http://wordpress.org/extend/plugins/google-analytics-for-wordpress/
The topic ‘[Plugin: Google Analytics for WordPress] Logic problem on GA_Admin::authenticate()’ is closed to new replies.