WordPress.org

Plugin Directory

Changeset 379598


Ignore:
Timestamp:
05/01/11 21:44:30 (3 years ago)
Author:
madeinthayaland
Message:

1.1.6

  • Extra precautions when printing last modified time variable (?m= vs. &m=)
Location:
wp-minify/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-minify/trunk/readme.txt

    r379410 r379598  
    55Requires at least: 2.7 
    66Tested up to: 3.1.2 
    7 Stable Tag: 1.1.5 
     7Stable Tag: 1.1.6 
    88 
    99This plugin uses the Minify engine to combine and compress JS and CSS files 
     
    3838== Changelog == 
    3939 
     40= 1.1.6 = 
     41* Extra precautions when printing last modified time variable (?m= vs. &m=) 
     42 
    4043= 1.1.5 = 
    4144* Fixed documentation. 
  • wp-minify/trunk/wp-minify.php

    r379410 r379598  
    44Plugin URI: http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/ 
    55Description: This plugin uses the Minify engine to combine and compress JS and CSS files to improve page load time. 
    6 Version: 1.1.5 
     6Version: 1.1.6 
    77Author: Thaya Kareeson 
    88Author URI: http://omninoggin.com 
     
    3434  var $name_proper = 'WP Minify';  
    3535  var $required_wp_version = '2.7'; 
    36   var $version = '1.1.5'; 
     36  var $version = '1.1.6'; 
    3737 
    3838  var $c = null; 
     
    744744        $mtime = filemtime($path); 
    745745        if ($latest_modified < $mtime) { 
    746           if ($wpm_options['pretty_url']) 
    747             $latest_modified = '?m='.$mtime; 
    748           else 
    749             $latest_modified = '&amp;m='.$mtime; 
     746          $latest_modified = $mtime; 
    750747        } 
    751748      } 
     
    754751        if ($this->debug) 
    755752          echo 'Minify URL:'.$minify_url; 
     753        if (strpos($minify_url, '?') != false) { 
     754          // if has GET parameters already 
     755          $minify_url = $minify_url.'&amp;m='.$latest_modified; 
     756        } else { 
     757          $minify_url = $minify_url.'?m='.$latest_modified; 
     758        } 
    756759        $minify_url = apply_filters('wp_minify_css_url', $minify_url); // Allow plugins to modify final minify URL 
    757         $css_tags .= "<link rel='stylesheet' href='$minify_url$latest_modified' type='text/css' media='screen' />"; 
     760        $css_tags .= "<link rel='stylesheet' href='$minify_url' type='text/css' media='screen' />"; 
    758761      } 
    759762 
     
    856859        $mtime = filemtime($path); 
    857860        if ($latest_modified < $mtime) { 
    858           if ($wpm_options['pretty_url']) 
    859             $latest_modified = '?m='.$mtime; 
    860           else 
    861             $latest_modified = '&amp;m='.$mtime; 
     861          $latest_modified = $mtime; 
    862862        } 
    863863      } 
     
    866866        if ($this->debug) 
    867867          echo 'Minify URL:'.$minify_url; 
     868        if (strpos($minify_url, '?') != false) { 
     869          // if has GET parameters already 
     870          $minify_url = $minify_url.'&amp;m='.$latest_modified; 
     871        } else { 
     872          $minify_url = $minify_url.'?m='.$latest_modified; 
     873        } 
    868874        $minify_url = apply_filters('wp_minify_js_url', $minify_url); // Allow plugins to modify final minify URL 
    869         $js_tags .= "<script type='text/javascript' src='$minify_url$latest_modified'></script>"; 
     875        $js_tags .= "<script type='text/javascript' src='$minify_url'></script>"; 
    870876      } 
    871877 
Note: See TracChangeset for help on using the changeset viewer.