Support » Plugin: WP Minify Fix » Issue when header does not contain any scripts.

  • Hello,

    First of all thank you for this “finally” good minifier.
    secondly, in the line 892 (wp-minify.php), there is an if condition for checking of $js_locations, which contains only Header scripts, but if header has no scripts like in my theme, it will not include JS minified file even if theres is one generated by wp-minify-fix from the footer scripts.

    So, please replace this line 892 in wp-minify.php
    if (count($js_locations) > 0) {
    with
    if (count($js_locations) > 0 || count($js_locations_footer) > 0) {

    Best,
    Sidati

    https://wordpress.org/plugins/wp-minify-fix/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Issue when header does not contain any scripts.’ is closed to new replies.