• Resolved Marcin Pietrzak

    (@iworks)


    Hi @wpdevart

    Could you change call enqueue_requeried_scripts() function to more private space? Could you load it only on post.php and post-new.php or on another page where it is required?

    Currently, you load your script & styles in the whole admin area and it broke our plugin CoursePress – it adds opacity, change a calendar UI widget.

    Could you change file youtube-embed.php – just this line:

    
    add_action( 'admin_head',  array($this,'enqueue_requeried_scripts') );
    

    To this:

    
    add_action( 'admin_head-post.php',  array($this,'enqueue_requeried_scripts') );                            
    add_action( 'admin_head-post-new.php',  array($this,'enqueue_requeried_scripts') );
    

    Thank you in advance.

    Marcin

Viewing 1 replies (of 1 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi.

    Thanks a lot for this information.

    We will try to fix and update our plugin as soon as it possible.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Please do not enqueue your scripts on whole admin’ is closed to new replies.