• The js and css for this plugin is included on all pages, when as far as I can see it only needs to be on the edit profile page.

    When the scripts are queued on line 419, this:

    if ( is_admin() && ! defined( 'IS_PROFILE_PAGE' ) )
        return;

    Should change to this

    if ( ! is_admin() || ! defined( 'IS_PROFILE_PAGE' ) )
        return;

    and it will only be included on the edit profile page.

    or possibly line 444
    add_action( 'wp_enqueue_scripts', 'avatar_manager_admin_enqueue_scripts' );
    should just be removed? Is there a reason why the front end needs this?

    thanks.

  • The topic ‘js and css is included on every page.’ is closed to new replies.