Plugin Directory

Changeset 2544009


Ignore:
Timestamp:
06/08/2021 03:37:02 AM (5 years ago)
Author:
codetot
Message:

Update v1.0.10

Location:
ct-optimization
Files:
38 added
3 edited

Legend:

Unmodified
Added
Removed
  • ct-optimization/trunk/README.txt

    r2486334 r2544009  
    5252== Changelog ==
    5353
     54= 1.0.10 =
     55
     56* Fix warning PHP when calling function inline
     57
    5458= 1.0.9 =
    5559
  • ct-optimization/trunk/codetot-optimization.php

    r2486334 r2544009  
    99 * Plugin URI:        https://codetot.com
    1010 * Description:       Provides settings for enable/disable WordPress core features and some tweaks for ACF, Gravity Forms, such like Enable CDN, Lazyload assets.
    11  * Version:           1.0.9
     11 * Version:           1.0.10
    1212 * Author:            CODE TOT JSC
    1313 * Author URI:        https://codetot.com
     
    2323}
    2424
    25 define( 'CODETOT_OPTIMIZATION_VERSION', '1.0.9' );
     25define( 'CODETOT_OPTIMIZATION_VERSION', '1.0.10' );
    2626define( 'CODETOT_OPTIMIZATION_PATH', plugin_dir_path(__FILE__) );
    2727define( 'CODETOT_OPTIMIZATION_URL', plugin_dir_url(__FILE__) );
  • ct-optimization/trunk/includes/class-codetot-optimization-process.php

    r2461023 r2544009  
    9292    if (!empty($this->options['disable_gutenberg_block_editor'])) {
    9393      add_action('use_block_editor_for_post', '__return_false');
    94       add_action('wp_enqueue_scripts', function () {
    95         wp_dequeue_style('wp-block-library');
    96         wp_dequeue_style('wp-block-library-theme');
    97         wp_dequeue_style('wc-block-style');
    98       }, 100);
    99     }
     94      add_action('wp_enqueue_scripts', array($this, 'disable_wp_block_assets'), 100);
     95    }
     96  }
     97
     98  public function disable_wp_block_assets() {
     99    wp_dequeue_style('wp-block-library');
     100    wp_dequeue_style('wp-block-library-theme');
     101    wp_dequeue_style('wc-block-style');
    100102  }
    101103
Note: See TracChangeset for help on using the changeset viewer.