Changeset 664352
- Timestamp:
- 02/06/2013 03:47:28 PM (13 years ago)
- Location:
- wp-cycle-plus-captions/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-cycle.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-cycle-plus-captions/trunk/readme.txt
r664334 r664352 5 5 Requires at least: 3.0 6 6 Tested up to: 3.4.1 7 Stable tag: 0.4. 17 Stable tag: 0.4.2 8 8 License: GPLv2 or later 9 9 … … 107 107 * Bug Fix 108 108 109 =0.4.2= 110 * Better error handling 111 109 112 ==WP-Cycle Changelog == 110 113 -
wp-cycle-plus-captions/trunk/wp-cycle.php
r664334 r664352 4 4 Plugin URI: http://www.tech-squawkers.com/wp-cycle-plus-captions/ 5 5 Description: Based on WP-Cycle with modifications by Chris Grab and includes changes by Toby Brommerich to get the caption to display properly with each image. 6 Version: 0.4. 16 Version: 0.4.2 7 7 Author: Toby Brommerich 8 8 Author URI: http://www.tech-squawkers.com/who-is-toby/ … … 172 172 $final_image = $image->save( $dest_file ); 173 173 } 174 $resized_url = $upload_dir_url . basename($final_image['file']); 175 //print_r($final_image); 176 // delete the original 177 unlink($file); 178 $file = $final_image['path']; 179 $url = $resized_url; 174 if ( ! is_wp_error( $final_image ) ) { 175 $resized_url = $upload_dir_url . basename($final_image['file']); 176 //print_r($final_image); 177 // delete the original 178 unlink($file); 179 $file = $final_image['path']; 180 $url = $resized_url; 181 } 180 182 } 181 183 … … 191 193 $final_thumbnail = $thumbnail->save( $dest_thumb ); 192 194 } 195 if ( ! is_wp_error( $final_thumbnail ) ) { 193 196 $thumbnail_url = $upload_dir_url . basename($final_thumbnail['file']); 194 197 $thumbnail = $final_thumbnail['path']; 198 } 195 199 } 196 200
Note: See TracChangeset
for help on using the changeset viewer.