Plugin Directory

Changeset 2982107


Ignore:
Timestamp:
10/21/2023 08:51:19 PM (17 months ago)
Author:
firmcatalyst
Message:

mode & minify issues fixed

Location:
fcp-first-screen-css/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fcp-first-screen-css/trunk/first-screen.php

    r2982085 r2982107  
    33Plugin Name: First Screen CSS & Settings
    44Description: 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.2
     5Version: 1.6.3
    66Requires at least: 5.8
    77Tested up to: 6.3
     
    1616defined( 'ABSPATH' ) || exit;
    1717
    18 define( 'FCPFSC_DEV', true );
    19 define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) );
     18define( 'FCPFSC_DEV', false ); // for own assets and minifying inlined styles
     19define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) ); // only for own plugin's assets
    2020
    2121define( 'FCPFSC_SLUG', 'fcpfsc' );
     
    7070// ++don't show rest meta box if the storing dir is absent or is not writable or/and the permission error
    7171// ++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  
    5555        list( $errors, $sanitized ) = sanitize_css( $content );
    5656        if ( !empty( $errors ) ) { return $tag; }
    57         $sanitized = FCPFSC_DEV ? css_minify( $sanitized ) : $sanitized;
     57        $sanitized = FCPFSC_DEV ? $sanitized : css_minify( $sanitized );
    5858        return '<style id="'.$handle.'-css">'.$sanitized.'</style>';
    5959    }, $priority, 2 );
  • fcp-first-screen-css/trunk/readme.txt

    r2982085 r2982107  
    55Tested up to: 6.3
    66Requires PHP: 7.4
    7 Stable tag: 1.6.2
     7Stable tag: 1.6.3
    88Author: Vadim Volkov, Firmcatalyst
    99Author URI: https://firmcatalyst.com
Note: See TracChangeset for help on using the changeset viewer.