Changeset 2982107
- Timestamp:
- 10/21/2023 08:51:19 PM (17 months ago)
- Location:
- fcp-first-screen-css/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fcp-first-screen-css/trunk/first-screen.php
r2982085 r2982107 3 3 Plugin Name: First Screen CSS & Settings 4 4 Description: This is a professional tool to manipulate enqueued styles and scripts on your website and add custom CSS to first screen and not first screen optionally. Use it to improve your Core Web Vitals score or just add custom styling. 5 Version: 1.6. 25 Version: 1.6.3 6 6 Requires at least: 5.8 7 7 Tested up to: 6.3 … … 16 16 defined( 'ABSPATH' ) || exit; 17 17 18 define( 'FCPFSC_DEV', true );19 define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) ); 18 define( 'FCPFSC_DEV', false ); // for own assets and minifying inlined styles 19 define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) ); // only for own plugin's assets 20 20 21 21 define( 'FCPFSC_SLUG', 'fcpfsc' ); … … 70 70 // ++don't show rest meta box if the storing dir is absent or is not writable or/and the permission error 71 71 // ++get the list of css to unload with jQuery.html() && regexp, or ?query in url to print loaded scripts 72 // ++dont minify if local dev mode is on + add the comment for the content source -
fcp-first-screen-css/trunk/inc/apply/inline-and-defer.php
r2973591 r2982107 55 55 list( $errors, $sanitized ) = sanitize_css( $content ); 56 56 if ( !empty( $errors ) ) { return $tag; } 57 $sanitized = FCPFSC_DEV ? css_minify( $sanitized ) : $sanitized;57 $sanitized = FCPFSC_DEV ? $sanitized : css_minify( $sanitized ); 58 58 return '<style id="'.$handle.'-css">'.$sanitized.'</style>'; 59 59 }, $priority, 2 ); -
fcp-first-screen-css/trunk/readme.txt
r2982085 r2982107 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.6. 27 Stable tag: 1.6.3 8 8 Author: Vadim Volkov, Firmcatalyst 9 9 Author URI: https://firmcatalyst.com
Note: See TracChangeset
for help on using the changeset viewer.