Changeset 2080051
- Timestamp:
- 05/03/2019 04:20:10 PM (7 years ago)
- Location:
- digiwidgets-image-editor/trunk
- Files:
-
- 2 edited
-
digiwidgets-image-editor.php (modified) (1 diff)
-
digiwidgets/upload/createNewFromExistingProject.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
digiwidgets-image-editor/trunk/digiwidgets-image-editor.php
r2075589 r2080051 4 4 * Plugin URI: 5 5 * Description: DigiWidgets Image Editor allows you to edit images within your posts. Consider upgrading to the full version to get the full range of features provided by this plugin. 6 * Version: 1. 096 * Version: 1.10 7 7 * Author: DigiWidgets Plugin Team 8 8 **/ -
digiwidgets-image-editor/trunk/digiwidgets/upload/createNewFromExistingProject.php
r1372747 r2080051 39 39 $originalImage = $base_path . $image_extension; 40 40 $i = 1; 41 while (file_exists($originalImage)) { 42 $originalImage = urldecode($base_path . "($i)" . $image_extension); 41 while (file_exists($originalImage)) { 42 preg_match('/.*(\/wp\-content\/uploads\/\d+\/\d+\/.*)/', $originalImage, $mat); 43 if(count($mat) > 0) $originalImage = ABSPATH . $mat[1]; 43 44 $i++; 44 45 } … … 81 82 $i++; 82 83 } 84 preg_match('/.*(\/wp\-content\/uploads\/\d+\/\d+\/.*)/', $imageURL, $mat); 85 if(count($mat) > 0) $imageURL = ABSPATH . $mat[1]; 83 86 copy($imageURL, $filename); 84 87
Note: See TracChangeset
for help on using the changeset viewer.