Home Forums Themes LEVANTE levante_get_dev_mode always returns true

levante_get_dev_mode always returns true

  • Author
    Posts
  • #14889

    adig
    Participant

    In function.php there is a check to see if to load the minified (.min.js) javascript files. This check will always tell to load the plain version and not the minified version because the levante_get_dev_mode() function always returns true (Line 341).

    While I can get around it by unregistering the scripts and registering them again with the .min.js version when WP_DEBUG is false. It seems like a needless overhead, plus not really safe for when you release an update and one of the scripts you use changes.

    Can you please fix this function.

    Thanks,
    Adi

You must be logged in to reply to this topic. Click here to login or register