Support » Plugin: AppBanners » Improved enqueuing scripts

  • Resolved net

    (@krstarica)


    ‘app-banners-custom-scripts’ script depends on ‘app-banners-scripts’ being loaded before it, so:

    wp_register_script( 'app-banners-custom-scripts', plugins_url( '/js/config.min.js', __FILE__ ), array( 'jquery' ), false, true );

    should be changed to:

    wp_register_script( 'app-banners-custom-scripts', plugins_url( '/js/config.min.js', __FILE__ ), array( 'jquery', 'app-banners-scripts' ), false, true );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Improved enqueuing scripts’ is closed to new replies.