WordPress.org

Ready to get started?Download WordPress

Forums

AG Custom Admin
[resolved] Conflict with Theme My Login resolved (2 posts)

  1. Daniele
    Member
    Posted 1 year ago #

    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/

  2. argonius
    Member
    Plugin Author

    Posted 1 year ago #

    Will be included in next release. Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic