Plugin Directory

Changeset 610643


Ignore:
Timestamp:
10/11/2012 07:30:53 AM (13 years ago)
Author:
attosoft
Message:

Uses minified resources even when WP_DEBUG mode

  • Inserted file comment to thickbox.min.js minified with Closure Compiler
  • Updated thickbox.min.css minified with cssmin.js
  • Added download.min.php minified with Tiny PHP
  • Deleted thickbox.js, thickbox.css and download.php
Location:
auto-thickbox-plus/trunk
Files:
1 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • auto-thickbox-plus/trunk/auto-thickbox.php

    r610621 r610643  
    134134            wp_deregister_script('thickbox');
    135135            $in_footer = $this->options['script_place'] == 'footer';
    136             wp_register_script('thickbox', $this->util->plugins_url(WP_DEBUG ? 'thickbox.js' :'thickbox.min.js'), array('jquery'), AUTO_THICKBOX_PLUS_VER, $in_footer);
     136            wp_register_script('thickbox', $this->util->plugins_url('thickbox.min.js'), array('jquery'), AUTO_THICKBOX_PLUS_VER, $in_footer);
    137137        }
    138138        wp_enqueue_script('thickbox');
     
    154154                case 'download':
    155155                    $l10n['download'] = $this->util->__('Download');
    156                     $l10n['forceDL'] = $this->util->plugins_url('download.php');
     156                    $l10n['forceDL'] = $this->util->plugins_url('download.min.php');
    157157                    break;
    158158                case 'expand_shrink':
     
    173173        if ( $this->options['thickbox_type'] == 'modified' ) {
    174174            wp_deregister_style('thickbox');
    175             wp_register_style('thickbox', $this->util->plugins_url(WP_DEBUG ? 'thickbox.css' : 'thickbox.min.css'), false, AUTO_THICKBOX_PLUS_VER);
     175            wp_register_style('thickbox', $this->util->plugins_url('thickbox.min.css'), false, AUTO_THICKBOX_PLUS_VER);
    176176        }
    177177        wp_enqueue_style('thickbox');
Note: See TracChangeset for help on using the changeset viewer.