Changeset 1231799
- Timestamp:
- 08/27/2015 08:12:30 AM (11 years ago)
- Location:
- flickr-field-for-advanced-custom-fields/trunk
- Files:
-
- 3 edited
-
acf-flickr-v4.php (modified) (3 diffs)
-
acf-flickr-v5.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
flickr-field-for-advanced-custom-fields/trunk/acf-flickr-v4.php
r1210231 r1231799 177 177 echo '<span style="color:#336600">' . __('The cache folder is writable!', 'acf-flickr') . '</span>'; 178 178 } 179 echo ' ' . __('Alternatively, you can control your own caching folder by setting the constant <strong>FLICKR_FIELD_CACHE_DIR</strong>.', 'acf-flickr'); 179 180 ?> 180 181 </p> … … 298 299 // Caching 299 300 $cache_dir = dirname(__FILE__) . '/cache'; 301 if(defined('FLICKR_FIELD_CACHE_DIR')) { 302 $cache_dir = FLICKR_FIELD_CACHE_DIR; 303 } 300 304 if (is_writeable($cache_dir) && $field['flickr_cache_enabled'] == 1) { 301 305 $duration = $field['flickr_cache_duration'] * 60 * 60; … … 596 600 // enable phpFlickr caching if possible 597 601 $cache_dir = dirname(__FILE__) . '/cache'; 602 if(defined('FLICKR_FIELD_CACHE_DIR')) { 603 $cache_dir = FLICKR_FIELD_CACHE_DIR; 604 } 598 605 if (is_writeable($cache_dir) && $field['flickr_cache_enabled'] == 1) { 599 606 $duration = $field['flickr_cache_duration'] * 60; -
flickr-field-for-advanced-custom-fields/trunk/acf-flickr-v5.php
r1210231 r1231799 136 136 $instructions = '<span style="color:#336600">' . __('The cache folder is writable!', 'acf-flickr') . '</span>'; 137 137 } 138 $instructions .= ' ' . __('Alternatively, you can control your own caching folder by setting the constant <strong>FLICKR_FIELD_CACHE_DIR</strong>.', 'acf-flickr'); 138 139 139 140 acf_render_field_setting( $field, array( … … 220 221 // Caching 221 222 $cache_dir = dirname(__FILE__) . '/cache'; 223 if(defined('FLICKR_FIELD_CACHE_DIR')) { 224 $cache_dir = FLICKR_FIELD_CACHE_DIR; 225 } 222 226 if (is_writeable($cache_dir) && $field['flickr_cache_enabled'] == 1) { 223 227 $duration = $field['flickr_cache_duration'] * 60 * 60; … … 603 607 // enable phpFlickr caching if possible 604 608 $cache_dir = dirname(__FILE__) . '/cache'; 609 if(defined('FLICKR_FIELD_CACHE_DIR')) { 610 $cache_dir = FLICKR_FIELD_CACHE_DIR; 611 } 605 612 if (is_writeable($cache_dir) && $field['flickr_cache_enabled'] == 1) { 606 613 $duration = $field['flickr_cache_duration'] * 60; -
flickr-field-for-advanced-custom-fields/trunk/readme.txt
r1210232 r1231799 3 3 Tags: flickr, acf, custom, fields, photostream, photosets 4 4 Requires at least: 3.0.1 5 Tested up to: 4. 1.15 Tested up to: 4.3 6 6 Stable tag: 1.0.7 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.