Changeset 2014386
- Timestamp:
- 01/17/2019 07:38:18 PM (7 years ago)
- Location:
- optimize-scripts-styles/trunk
- Files:
-
- 4 edited
-
library/admin.php (modified) (1 diff)
-
library/functions.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
sp-optimize-scripts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
optimize-scripts-styles/trunk/library/admin.php
r1938888 r2014386 131 131 132 132 function 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' ); 134 134 } 135 135 -
optimize-scripts-styles/trunk/library/functions.php
r1966596 r2014386 135 135 function spos_minify_head_scripts() { 136 136 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() ) { 138 140 $start_time = microtime(true); 139 141 global $wp_scripts; … … 294 296 295 297 wp_register_script( 'min-' . $md5, $script_url, '', filemtime( $script_path ), $footer ); 296 wp_enqueue_script( 'min-' . $md5 ); 298 wp_enqueue_script( 'min-' . $md5 ); 297 299 298 300 // flag file … … 317 319 } 318 320 } 319 320 // set processed_header = true so this only runs once321 $spos_settings['processed_header'] = true;322 321 } 323 322 } … … 329 328 function spos_minify_footer_scripts() { 330 329 global $spos_settings; 330 $remove_script_type = isset( $spos_settings['remove_script_type'] ) && $spos_settings['remove_script_type'] == 1 ? true : false; 331 331 332 if ( !is_admin() ) { 332 333 $start_time = microtime(true); … … 525 526 function spos_minify_styles() { 526 527 global $spos_settings; 528 $remove_style_type = isset( $spos_settings['remove_style_type'] ) && $spos_settings['remove_style_type'] == 1 ? true : false; 529 527 530 if ( !is_admin() ) { 528 531 $start_time = microtime(true); -
optimize-scripts-styles/trunk/readme.txt
r1966596 r2014386 4 4 Tags: scripts, styles, optimize, optimization, minify, compress, seo, performance, combine 5 5 Requires at least: 4.0 6 Tested up to: 4.9.76 Tested up to: 5.0.3 7 7 Requires PHP: 5.6 8 Stable tag: 1.8. 88 Stable tag: 1.8.9 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 91 91 == Changelog == 92 92 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 93 97 = 1.8.8 = 94 98 * Tweaked localized script output to only remove the type='text/javscript' if that option is set in the admin 95 99 * Added location (header or footer) to the cached files description 96 100 * 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 99 102 100 103 = 1.8.7 = -
optimize-scripts-styles/trunk/sp-optimize-scripts.php
r1966596 r2014386 3 3 * Plugin Name: Optimize Scripts & Styles 4 4 * Description: Provides a quick way to combine and minify all scripts and styles and cache them in your content folder. 5 * Version: 1.8. 85 * Version: 1.8.9 6 6 * Author: Seismic Pixels 7 7 * Author URI: http://www.seismicpixels.com 8 * Copyright 201 8Sean Michaud - Seismic Pixels8 * Copyright 2019 Sean Michaud - Seismic Pixels 9 9 */ 10 10 11 11 global $spos_version; 12 12 //global $spos_db_version; 13 $spos_version = '1.8. 8';13 $spos_version = '1.8.9'; 14 14 15 15 //global $spos_dir;
Note: See TracChangeset
for help on using the changeset viewer.