Plugin Directory

Changeset 2014386


Ignore:
Timestamp:
01/17/2019 07:38:18 PM (7 years ago)
Author:
seismicpixels
Message:

1.8.9 commit

Location:
optimize-scripts-styles/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • optimize-scripts-styles/trunk/library/admin.php

    r1938888 r2014386  
    131131
    132132function spos_settings_section_callback() {
    133     echo __( 'Choose from the settings below.', 'spos' );
     133    echo __( 'Choose from the settings below. Some options may not work with your particular configuration, so be sure to test before using on a production site.', 'spos' );
    134134}
    135135
  • optimize-scripts-styles/trunk/library/functions.php

    r1966596 r2014386  
    135135function spos_minify_head_scripts() {
    136136    global $spos_settings;
    137     if ( !is_admin() && !isset( $spos_settings['processed_header'] ) ) {
     137    $remove_script_type = isset( $spos_settings['remove_script_type'] ) && $spos_settings['remove_script_type'] == 1 ? true : false;
     138   
     139    if ( !is_admin() ) {
    138140        $start_time = microtime(true);
    139141        global $wp_scripts;
     
    294296
    295297                wp_register_script( 'min-' . $md5, $script_url, '', filemtime( $script_path ), $footer );
    296                 wp_enqueue_script( 'min-' . $md5 );             
     298                wp_enqueue_script( 'min-' . $md5 );
    297299           
    298300                // flag file
     
    317319            }
    318320        }
    319    
    320         // set processed_header = true so this only runs once
    321         $spos_settings['processed_header'] = true;
    322321    }
    323322}
     
    329328function spos_minify_footer_scripts() {
    330329    global $spos_settings;
     330    $remove_script_type = isset( $spos_settings['remove_script_type'] ) && $spos_settings['remove_script_type'] == 1 ? true : false;
     331   
    331332    if ( !is_admin() ) {
    332333        $start_time = microtime(true);
     
    525526function spos_minify_styles() {
    526527    global $spos_settings;
     528    $remove_style_type = isset( $spos_settings['remove_style_type'] ) && $spos_settings['remove_style_type'] == 1 ? true : false;
     529   
    527530    if ( !is_admin() ) {
    528531        $start_time = microtime(true);
  • optimize-scripts-styles/trunk/readme.txt

    r1966596 r2014386  
    44Tags: scripts, styles, optimize, optimization, minify, compress, seo, performance, combine
    55Requires at least: 4.0
    6 Tested up to: 4.9.7
     6Tested up to: 5.0.3
    77Requires PHP: 5.6
    8 Stable tag: 1.8.8
     8Stable tag: 1.8.9
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9191== Changelog ==
    9292
     93= 1.8.9 =
     94* Fixed an unset variable error for remove_script_type and remove_style_type
     95* Verified WordPress 5.0/Gutenberg compatibility. Optimize Scripts & Styles will work along-side the Gutenberg blocks scripts, but the Gutenberg blocks handle their own enqueue, concatenation and minification.
     96
    9397= 1.8.8 =
    9498* Tweaked localized script output to only remove the type='text/javscript' if that option is set in the admin
    9599* Added location (header or footer) to the cached files description
    96100* The plugin no longer initializes on AJAX requests
    97 * Added a hash to the script handles to allow them be unique
    98 * The header scripts optimization now only runs once. This fixes issues with plugins like Gravity Forms loading their AJAX scripts using the same hooks. Their inline scripts now load as intended, but are not optimized. This is safer since they call inline code that relies on their scripts being loaded, and users won't need to add the handles to the Ignore Scripts section of this plugin.
     101* Added a hash to the script handles to allow them be unique. This fixed a problem with Gravity Forms using AJAX
    99102
    100103= 1.8.7 =
  • optimize-scripts-styles/trunk/sp-optimize-scripts.php

    r1966596 r2014386  
    33 * Plugin Name: Optimize Scripts & Styles
    44 * Description: Provides a quick way to combine and minify all scripts and styles and cache them in your content folder.
    5  * Version: 1.8.8
     5 * Version: 1.8.9
    66 * Author: Seismic Pixels
    77 * Author URI: http://www.seismicpixels.com
    8  * Copyright 2018 Sean Michaud - Seismic Pixels
     8 * Copyright 2019 Sean Michaud - Seismic Pixels
    99*/
    1010
    1111global $spos_version;
    1212//global $spos_db_version;
    13 $spos_version = '1.8.8';
     13$spos_version = '1.8.9';
    1414
    1515//global $spos_dir;
Note: See TracChangeset for help on using the changeset viewer.