Changeset 1420421
- Timestamp:
- 05/19/2016 03:55:59 PM (10 years ago)
- Location:
- clear-cache-for-timber/trunk
- Files:
-
- 5 edited
-
assets/screenshot-1.png (modified) (previous)
-
clear-cache-for-timber.php (modified) (3 diffs)
-
composer.json (modified) (1 diff)
-
readme.md (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clear-cache-for-timber/trunk/clear-cache-for-timber.php
r1420417 r1420421 5 5 Description: Clear cache for Timber and Twig caching 6 6 Author: Ondrej Grosko 7 Version: 0.0. 57 Version: 0.0.6 8 8 Author URI: 9 9 Network: True … … 38 38 add_action( 'wp_ajax_clear_timber_cache_action', 'clear_timber_cache_callback' ); 39 39 function 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 } 41 46 wp_die(); 42 47 } … … 48 53 add_action( 'admin_bar_init', 'clear_timer_cache_javascript' ); 49 54 function 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' ); 52 57 } -
clear-cache-for-timber/trunk/composer.json
r1420417 r1420421 4 4 "keywords": ["wordpress", "timber", "clear cache"], 5 5 "license": "GPL-2.0+", 6 "version": "0.0. 5",6 "version": "0.0.6", 7 7 "authors": [ 8 8 { -
clear-cache-for-timber/trunk/readme.md
r1420417 r1420421 10 10 > Requires at least: 2.0.1 11 11 > 12 > Tested up to: 4. 4.212 > Tested up to: 4.5.2 13 13 > 14 > Stable tag: 4. 414 > Stable tag: 4.5 15 15 > 16 16 > License: GPLv2 or later … … 36 36 37 37 38 ### 0.0.6 (19-05-2016) 39 40 Fixes: 41 42 - Compatibility fix with Timber v1.0.* 43 38 44 ### 0.0.5 (27-04-2016) 39 45 -
clear-cache-for-timber/trunk/readme.txt
r1420417 r1420421 4 4 Tags: cache, clear, flush, twig, Timber 5 5 Requires at least: 2.0.1 6 Tested up to: 4. 4.27 Stable tag: 4. 46 Tested up to: 4.5.2 7 Stable tag: 4.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 26 26 == Changelog == 27 27 28 = 0.0.6 - 19/05/2016 = 29 * Compatibility fix with Timber v1.0.* 30 28 31 = 0.0.5 - 27/04/2016 = 29 32 * Fixed bug with clearing cache from FE admin bar
Note: See TracChangeset
for help on using the changeset viewer.