Support » Developing with WordPress » 4.8.1 enqueue script version problem

  • Resolved jodayeah


    Hi guys,

    since updating to 4.8.1 I am having a problem with my enqueued scripts. This is how I try to load isotope script in a custom plugin:

    function isotope_plugin() {
    	wp_enqueue_script('isotope', '', array('jquery'), false, false);
    add_action( 'wp_enqueue_scripts', 'isotope_plugin' );  

    However I get an error because the script can’t be found. I checked and this is because my current WordPress version 4.8.1 gets added to the script src so that it reads “”. That is although I specifically asked to add no version number. The same happens if I just define the handle and the src like so

    function isotope_plugin() {
    	wp_enqueue_script('isotope', '');
    add_action( 'wp_enqueue_scripts', 'isotope_plugin' );  

    I can’t seem to get rid of the Worpdress version number.
    This happens with all scripts I enqueue through this plugin.

    • This topic was modified 1 year ago by  jodayeah.
Viewing 3 replies - 1 through 3 (of 3 total)
  • chrispink


    wp_enqueue_script(‘isotope’, ‘’, array(‘jquery’), null, false);

    Moderator Steve Stern


    Support Volunteer

    You should be using null, not false.

    (string|bool|null) (Optional) String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If version is set to false, a version number is automatically added equal to current installed WordPress version. If set to null, no version is added.
    Default value: false



    Ah, damn, right. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘4.8.1 enqueue script version problem’ is closed to new replies.