Plugin Directory

Changeset 186082


Ignore:
Timestamp:
12/22/2009 11:03:18 AM (16 years ago)
Author:
julienappert
Message:

0.1.1 : bugfix

Location:
external-files-optimizer
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • external-files-optimizer/trunk/external-files-optimizer.php

    r181058 r186082  
    55Author: Julien Appert
    66Author URI: http://julienappert.com
    7 Version: 0.1
     7Version: 0.1.1
    88Description: automatically combine and compress css/js files generate with wp_head and wp_footer
    99*/
  • external-files-optimizer/trunk/load-scripts.php

    r181058 r186082  
    4444    }
    4545}
    46 
     46 
     47 
    4748header('Content-Type: application/x-javascript; charset=UTF-8');
    4849header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
  • external-files-optimizer/trunk/load-styles.php

    r181058 r186082  
    4343   
    4444    // remplace les url() par les url absolues si nécessaire
    45     preg_match_all("/url\(['|\"]*(.*)['|\"]*\)/", $content, $matches);
    46     if(count($matches[1])>0){
    47         foreach($matches[1] as $match){
    48             if(substr($match,0,7) != 'http://'){
    49                 $content = str_replace($match,dirname($extfiles['styles'][$handle]).'/'.$match,$content);
    50             }
    51         }
    52     }   
     45$content = preg_replace("/url\(['|\"]*([^http:\/\/].*)['|\"]*\)/", "url(".dirname($extfiles['styles'][$handle])."/$1)", $content); 
    5346   
    5447    $out .= $content ;
    5548}
    56 
    57 
    5849
    5950header('Content-Type: text/css');
  • external-files-optimizer/trunk/readme.txt

    r181058 r186082  
    44Requires at leat: 2.7
    55Tested up to:2.8.6
    6 Stable tag:0.1
     6Stable tag:0.1.1
    77
    88Description: automatically combine and compress css/js files generate with wp_head() and wp_footer()
     
    13132. Activate the plugin through the 'Plugins' menu in WordPress
    14143. That's it !
     15
     16== Changelog ==
     17
     18= 0.1.1 =
     19* bugfix about relative url in css files
Note: See TracChangeset for help on using the changeset viewer.