Plugin Directory

Changeset 677326


Ignore:
Timestamp:
03/07/2013 05:37:44 AM (13 years ago)
Author:
prometh
Message:

v0.5.4.2

Location:
wp-html-compression
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-html-compression/trunk/readme.txt

    r677319 r677326  
    8181== Changelog ==
    8282
     83= 0.5.4.2 =
     84* PHP errors hidden if/when plugin file is accessed directly
     85
    8386= 0.5.4.1 =
    8487* Fixed typo on variable
  • wp-html-compression/trunk/wp-html-compression.php

    r677319 r677326  
    44Plugin URI: http://www.svachon.com/blog/html-minify/
    55Description: Reduce file size by shortening URLs and safely removing all standard comments and unnecessary whitespace from an HTML document.
    6 Version: 0.5.4.1
     6Version: 0.5.4.2
    77Author: Steven Vachon
    88Author URI: http://www.svachon.com/
     
    3030
    3131
    32 if (!is_admin())
     32// Prevents errors when this file is accessed directly
     33if (function_exists('is_admin'))
    3334{
    34     @add_action('template_redirect', 'wp_html_compression_start', -1);
    35    
    36     // In case above fails (it does sometimes.. ??)
    37     add_action('get_header', 'wp_html_compression_start');
    38 }
    39 else
    40 {
    41     // For v0.6
    42     //require_once dirname(__FILE__) . '/admin.php';
     35    if (!is_admin())
     36    {
     37        add_action('template_redirect', 'wp_html_compression_start', -1);
     38       
     39        // In case above fails (it does sometimes.. ??)
     40        add_action('get_header', 'wp_html_compression_start');
     41    }
     42    else
     43    {
     44        // For v0.6
     45        //require_once dirname(__FILE__) . '/admin.php';
     46    }
    4347}
    4448
Note: See TracChangeset for help on using the changeset viewer.