Plugin Directory

Changeset 3286607


Ignore:
Timestamp:
05/03/2025 01:50:51 AM (10 months ago)
Author:
sethta
Message:

Update to version 1.0.2

Location:
easy-critical-css
Files:
290 added
5 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • easy-critical-css/trunk/easy-critical-css.php

    r3285342 r3286607  
    33 * Plugin Name:       Easy Critical CSS
    44 * Description:       Easily inject Critical CSS and optimized Secondary CSS to improve page speed and performance.
    5  * Version:           1.0.1
     5 * Version:           1.0.2
    66 * Requires at least: 6.2
    7  * Tested up to:      6.8
     7 * Tested up to:      6.8.1
    88 * Requires PHP:      7.4
    99 * Author:            CriticalCSS.net
  • easy-critical-css/trunk/inc/class-critical-css-injector.php

    r3284313 r3286607  
    6262        $identifier     = Critical_CSS::get_page_identifier(); // Get post ID or URL.
    6363        $generated_css  = Critical_CSS::get_generated_css( $identifier );
    64         $is_manual_mode = Settings::get_individual_mode( $identifier );
     64        $is_manual_mode = Settings::get_individual_mode( $identifier ) === 'manual';
    6565        $url_hash       = $generated_css['url_hash'];
    6666        if ( empty( $url_hash ) ) {
     
    123123            }
    124124
     125            // We've already handled Easy Critical CSS styles, so move on.
     126            if ( $handle === 'easy-critical-css' ) {
     127                continue;
     128            }
     129
    125130            // Capture all inline styles.
    126131            if ( ! empty( $style->extra['after'] ) ) {
     
    128133            }
    129134
    130             // Only dequeue if not excluded
     135            // Only dequeue if not excluded.
    131136            if ( in_array( $handle, $excluded_handles, true ) || Helpers::is_excluded_css_file( $src ) ) {
    132137                continue;
  • easy-critical-css/trunk/inc/class-critical-css.php

    r3285342 r3286607  
    276276        }
    277277
     278        // Skip 404 pages
     279        if ( is_404() ) {
     280            return true;
     281        }
     282
    278283        // Is the post published? (Singular only)
    279284        if ( is_singular() ) {
  • easy-critical-css/trunk/inc/class-plugin.php

    r3285342 r3286607  
    1010    private static $instance = null;
    1111
    12     private static $plugin_version = '1.0.1';
     12    private static $plugin_version = '1.0.2';
    1313
    1414    private static $db_version = '1.0';
  • easy-critical-css/trunk/readme.txt

    r3285342 r3286607  
    44Tags: critical css, performance, optimization, speed, lighthouse
    55Requires at least: 6.2
    6 Tested up to:      6.8
     6Tested up to:      6.8.1
    77Requires PHP:      7.4
    88Stable tag:        trunk
     
    104104
    105105= 1.0.1 =
    106 - FIX: Prevent feeds from auto generating Critical CSS
     106- FIX: Prevents feeds from auto generating Critical CSS
     107
     108= 1.0.2 =
     109- FIX: Fixes logic when outputting Secondary CSS
     110- FIX: Prevents 404 pages from auto generating Critical CSS
  • easy-critical-css/trunk/vendor/composer/installed.php

    r3285342 r3286607  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '01d054d8611da04d0e8b65e5ecc44e56524f78ee',
     6        'reference' => '8c6ff810018bbb591d2f526c5971f4108650ca51',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-main',
    3333            'version' => 'dev-main',
    34             'reference' => '01d054d8611da04d0e8b65e5ecc44e56524f78ee',
     34            'reference' => '8c6ff810018bbb591d2f526c5971f4108650ca51',
    3535            'type' => 'wordpress-plugin',
    3636            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.