Support » Plugin: AG Custom Admin » [Plugin: AG Custom Admin] Conflict with Theme My Login resolved

  • Resolved Mad Max

    (@mad_max)


    Hi Argonius, here I am again!
    I’ve found (and resolved) a problem when both Theme My Login and AGCA are active and you request the page that TML uses to show register/login/profile page.
    When wordpress show its login page, your plugin adds the print_login_head action to ‘login_head‘ hook to add some js code to the login page, but it loads jquery library without checking if it was already loaded by WP, the active theme or by some other plugin.

    To correctly check if a script has been already loaded before you can use wp_script_is function. So to patch the plugin, go to line 1178 (or so) of plugin.php and change this

    $this->reloadScript();

    with this:

    if( !wp_script_is('jquery')) {
    	$this->reloadScript();
    }

    http://wordpress.org/extend/plugins/ag-custom-admin/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: AG Custom Admin] Conflict with Theme My Login resolved’ is closed to new replies.