Plugin Directory

Changeset 592530


Ignore:
Timestamp:
08/30/2012 05:16:56 PM (13 years ago)
Author:
codepress
Message:

0.3

Location:
css-crush-for-wordpress
Files:
53 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • css-crush-for-wordpress/trunk/css-crush-for-wordpress.php

    r589673 r592530  
    22/*
    33Plugin Name:        CSS Crush for WordPress
    4 Version:            0.2
     4Version:            0.3
    55Description:        Integrates an extensible CSS preprocessor for WordPress: upload, activate, and you're done. No further configuration needed.
    66Author:             Codepress
     
    2727*/
    2828
    29 define( 'CPCC_VERSION',     '0.2' );
     29define( 'CPCC_VERSION',     '0.3' );
    3030define( 'CPCC_TEXTDOMAIN',  'css-crush-for-wordpress' );
    3131define( 'CPCC_SLUG',        'css-crush' );
     
    9191        $src_local = str_replace(WP_CONTENT_URL, WP_CONTENT_DIR, $src_no_ver);
    9292       
    93         $src       = csscrush::file( $src_local, array(
     93        // remove possible crushed stylesheets
     94        if ( strstr($src, '.crush.css') )
     95            return $src;
     96       
     97        $src = csscrush::file( $src_local, array(
    9498            'cache' => $cache,
    9599            'debug' => $debug,
    96         )); 
    97        
    98         return $src;   
    99     }
    100 
     100        ));         
     101
     102        // get root url
     103        $parse      = parse_url(get_bloginfo('url'));
     104        $port       = !empty($parse['port']) ? ":{$parse['port']}" : '';
     105        $root_url   = "{$parse['scheme']}://{$parse['host']}{$port}";
     106   
     107        return $root_url.$src; 
     108    }
     109   
     110
     111
     112   
    101113    /**
    102114     * Enabled?
     
    214226                'label'     => __('Caching', CPCC_TEXTDOMAIN),
    215227                'descr'     => __('Turn caching on or off', CPCC_TEXTDOMAIN),
    216                 'note'      => __('When turned on a cached file is returned when a file has not been monified. This increases performance. Default is <code>on</code>.', CPCC_TEXTDOMAIN),
     228                'note'      => __('When turned on a cached file is returned when a file has not been modified. This increases performance. Default is <code>on</code>.', CPCC_TEXTDOMAIN),
    217229                'default'   => true
    218230            ),
  • css-crush-for-wordpress/trunk/readme.txt

    r589673 r592530  
    55Requires at least: 3.1
    66Tested up to: 3.4
    7 Stable tag: 0.2
     7Stable tag: 0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    101101== Changelog ==
    102102
     103= 0.3 =
     104
     105* added bug fix for incorrect stylesheet url
     106
    103107= 0.2 =
    104108
Note: See TracChangeset for help on using the changeset viewer.