Plugin Directory

Changeset 3285342


Ignore:
Timestamp:
05/01/2025 03:00:47 AM (11 months ago)
Author:
sethta
Message:

Update to version 1.0.1

Location:
easy-critical-css
Files:
293 added
7 edited

Legend:

Unmodified
Added
Removed
  • easy-critical-css/tags/1.0.0/inc/class-plugin.php

    r3284313 r3285342  
    7979        Uninstall_Handler::init();
    8080
    81         // add_filter(
    82         //  'easy_cc_api_url',
    83         //  function () {
    84         //      return 'http://localhost:3001/';
    85         //  }
    86         // );
    87 
    88         // add_filter(
    89         //  'rest_authentication_errors',
    90         //  function ( $result ) {
    91         //      if ( ! empty( $result ) ) {
    92         //          return $result;
    93         //      }
    94         //      if ( ! is_user_logged_in() ) {
    95         //          return new \WP_Error( 'rest_forbidden', 'Authentication required', [ 'status' => 401 ] );
    96         //      }
    97         //      return $result;
    98         //  }
    99         // );
    100 
    101         // Database::delete_row( 'e59ee22a626ac19ad98a3a86ceb04cf9' );
    102         // API_Service::request_critical_css( 'http://dev.test/hello-world/' );
    103         // add_action(
    104         //  'wp_loaded',
    105         //  function () {
    106         //      API_Service::request_critical_css( 'https://sethalling.com/critical.html' );
    107         //      //  API_Service::request_critical_css( '1' );
    108         //  }
    109         // );
    110         // API::request_critical_css( 'https://gosunward.org' );
    111         // API::request_critical_css( 'https://www.orwhateveryoudo.com/2017/11/traeger-smoked-turkey.html' );
    112         // API::request_critical_css( 'https://amazon.net/' );
    113         // API::request_critical_css( 'https://espn.com/' );
    114         // API::request_critical_css( 'https://cnn.com/' );
    115 
    11681        $this->ensure_version_consistency();
    11782    }
  • easy-critical-css/trunk/easy-critical-css.php

    r3284313 r3285342  
    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.0
     5 * Version:           1.0.1
    66 * Requires at least: 6.2
    77 * Tested up to:      6.8
  • easy-critical-css/trunk/inc/class-admin-settings.php

    r3284313 r3285342  
    181181
    182182    public static function get_settings_schema() {
    183         $critical_css_mode_text = __( 'The Auto mode sends page data to an API that requires a key.', 'easy-critical-css' );
     183        $critical_css_mode_text = sprintf(
     184            // translators: %s is a link to the API.
     185            __( 'The Auto mode sends page data to an API at %s that requires a key.', 'easy-critical-css' ),
     186            '<a href="https://criticalcss.net" target="_blank">CriticalCSS.net</a>'
     187        );
    184188        $critical_css_mode_warn = "<p style=\"color: #a32b2d; font-weight: bold;\">$critical_css_mode_text</p>";
    185189        // Add a simple get API link if they don't have one added.
  • easy-critical-css/trunk/inc/class-critical-css.php

    r3284313 r3285342  
    271271        }
    272272
     273        // Skip RSS feeds
     274        if ( is_feed() ) {
     275            return true;
     276        }
     277
    273278        // Is the post published? (Singular only)
    274279        if ( is_singular() ) {
  • easy-critical-css/trunk/inc/class-plugin.php

    r3284313 r3285342  
    1010    private static $instance = null;
    1111
    12     private static $plugin_version = '1.0.0';
     12    private static $plugin_version = '1.0.1';
    1313
    1414    private static $db_version = '1.0';
     
    7979        Uninstall_Handler::init();
    8080
    81         // add_filter(
    82         //  'easy_cc_api_url',
    83         //  function () {
    84         //      return 'http://localhost:3001/';
    85         //  }
    86         // );
    87 
    88         // add_filter(
    89         //  'rest_authentication_errors',
    90         //  function ( $result ) {
    91         //      if ( ! empty( $result ) ) {
    92         //          return $result;
    93         //      }
    94         //      if ( ! is_user_logged_in() ) {
    95         //          return new \WP_Error( 'rest_forbidden', 'Authentication required', [ 'status' => 401 ] );
    96         //      }
    97         //      return $result;
    98         //  }
    99         // );
    100 
    101         // Database::delete_row( 'e59ee22a626ac19ad98a3a86ceb04cf9' );
    102         // API_Service::request_critical_css( 'http://dev.test/hello-world/' );
    103         // add_action(
    104         //  'wp_loaded',
    105         //  function () {
    106         //      API_Service::request_critical_css( 'https://sethalling.com/critical.html' );
    107         //      //  API_Service::request_critical_css( '1' );
    108         //  }
    109         // );
    110         // API::request_critical_css( 'https://gosunward.org' );
    111         // API::request_critical_css( 'https://www.orwhateveryoudo.com/2017/11/traeger-smoked-turkey.html' );
    112         // API::request_critical_css( 'https://amazon.net/' );
    113         // API::request_critical_css( 'https://espn.com/' );
    114         // API::request_critical_css( 'https://cnn.com/' );
    115 
    11681        $this->ensure_version_consistency();
    11782    }
  • easy-critical-css/trunk/readme.txt

    r3284313 r3285342  
    102102- FEATURE: Automated Critical CSS generation through API
    103103- FEATURE: Integration with popular caching plugins
     104
     105= 1.0.1 =
     106- FIX: Prevent feeds from auto generating Critical CSS
  • easy-critical-css/trunk/vendor/composer/installed.php

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