Plugin Directory

Changeset 1420421


Ignore:
Timestamp:
05/19/2016 03:55:59 PM (10 years ago)
Author:
ogrosko
Message:

Fixes:

  • Compatibility fix with Timber v1.0.*
Location:
clear-cache-for-timber/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • clear-cache-for-timber/trunk/clear-cache-for-timber.php

    r1420417 r1420421  
    55Description: Clear cache for Timber and Twig caching
    66Author: Ondrej Grosko
    7 Version: 0.0.5
     7Version: 0.0.6
    88Author URI:
    99Network: True
     
    3838add_action( 'wp_ajax_clear_timber_cache_action', 'clear_timber_cache_callback' );
    3939function clear_timber_cache_callback() {
    40     echo TimberCommand::clear_cache();
     40    if (class_exists('Timber\\Integrations\\Command')) {
     41        echo \Timber\Integrations\Command::clear_cache();
     42    }
     43    else {
     44        echo TimberCommand::clear_cache();
     45    }
    4146    wp_die();
    4247}
     
    4853add_action( 'admin_bar_init', 'clear_timer_cache_javascript' );
    4954function clear_timer_cache_javascript() {
    50     wp_enqueue_script('clear-cache-for-timber-javascript', plugins_url('assets/js/main.js', __FILE__), array(), '0.0.5', true);
    51     wp_enqueue_style( 'clear-cache-for-timber-style',  plugins_url('assets/css/style.css', __FILE__), array(), '0.0.5' );
     55    wp_enqueue_script('clear-cache-for-timber-javascript', plugins_url('assets/js/main.js', __FILE__), array(), '0.0.6', true);
     56    wp_enqueue_style( 'clear-cache-for-timber-style',  plugins_url('assets/css/style.css', __FILE__), array(), '0.0.6' );
    5257}
  • clear-cache-for-timber/trunk/composer.json

    r1420417 r1420421  
    44    "keywords": ["wordpress", "timber", "clear cache"],
    55    "license": "GPL-2.0+",
    6     "version": "0.0.5",
     6    "version": "0.0.6",
    77    "authors": [
    88        {
  • clear-cache-for-timber/trunk/readme.md

    r1420417 r1420421  
    1010> Requires at least: 2.0.1
    1111>
    12 > Tested up to: 4.4.2
     12> Tested up to: 4.5.2
    1313>
    14 > Stable tag: 4.4
     14> Stable tag: 4.5
    1515>
    1616> License: GPLv2 or later
     
    3636
    3737
     38### 0.0.6 (19-05-2016)
     39
     40Fixes:
     41
     42  - Compatibility fix with Timber v1.0.*
     43
    3844### 0.0.5 (27-04-2016)
    3945
  • clear-cache-for-timber/trunk/readme.txt

    r1420417 r1420421  
    44Tags: cache, clear, flush, twig, Timber
    55Requires at least: 2.0.1
    6 Tested up to: 4.4.2
    7 Stable tag: 4.4
     6Tested up to: 4.5.2
     7Stable tag: 4.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2626== Changelog ==
    2727
     28= 0.0.6 - 19/05/2016 =
     29* Compatibility fix with Timber v1.0.*
     30
    2831= 0.0.5 - 27/04/2016 =
    2932* Fixed bug with clearing cache from FE admin bar
Note: See TracChangeset for help on using the changeset viewer.