Changeset 1119628
- Timestamp:
- 03/24/2015 12:59:09 PM (11 years ago)
- Location:
- advanced-uploader
- Files:
-
- 4 edited
- 1 copied
-
tags/2.09 (copied) (copied from advanced-uploader/trunk)
-
tags/2.09/readme.txt (modified) (2 diffs)
-
tags/2.09/upload.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-uploader/tags/2.09/readme.txt
r1049113 r1119628 52 52 53 53 == Changelog == 54 = 2.09 = 55 * fixed target path to make sure it always ends with a directory separator. 54 56 = 2.08 = 55 57 * fixed commit missing new file … … 110 112 111 113 == Upgrade Notice == 114 = 2.09 = minor bugfixes 112 115 = 2.08 = fixed commit missing new file 113 116 = 2.07 = update pdf.js -
advanced-uploader/tags/2.09/upload.php
r1042809 r1119628 360 360 $upload_dir = wp_upload_dir(); 361 361 $wp_filetype = wp_check_filetype($name); 362 363 //make sure target_path has a DIRECTORY_SEPARATOR at the end 364 if(substr($target_path,-1)!=DIRECTORY_SEPARATOR) 365 $target_path .= DIRECTORY_SEPARATOR; 362 366 363 367 //set parent ID to add picture to BWS gallery … … 365 369 $parent_id = $galleryID; 366 370 371 //change target path to url 372 $guid = str_replace ( $upload_dir['basedir'], $upload_dir ['baseurl'], $target_path ); 373 $guid = str_replace ( "\\", "/", $guid ); 374 367 375 $attachment = array( 368 'guid' => $ upload_dir ['url'] . '/'. $name,376 'guid' => $guid . $name, 369 377 'post_mime_type' => $wp_filetype['type'], 370 378 'post_title' => preg_replace('/\.[^.]+$/', '', $name), -
advanced-uploader/trunk/readme.txt
r1049113 r1119628 52 52 53 53 == Changelog == 54 = 2.09 = 55 * fixed target path to make sure it always ends with a directory separator. 54 56 = 2.08 = 55 57 * fixed commit missing new file … … 110 112 111 113 == Upgrade Notice == 114 = 2.09 = minor bugfixes 112 115 = 2.08 = fixed commit missing new file 113 116 = 2.07 = update pdf.js -
advanced-uploader/trunk/upload.php
r1042809 r1119628 360 360 $upload_dir = wp_upload_dir(); 361 361 $wp_filetype = wp_check_filetype($name); 362 363 //make sure target_path has a DIRECTORY_SEPARATOR at the end 364 if(substr($target_path,-1)!=DIRECTORY_SEPARATOR) 365 $target_path .= DIRECTORY_SEPARATOR; 362 366 363 367 //set parent ID to add picture to BWS gallery … … 365 369 $parent_id = $galleryID; 366 370 371 //change target path to url 372 $guid = str_replace ( $upload_dir['basedir'], $upload_dir ['baseurl'], $target_path ); 373 $guid = str_replace ( "\\", "/", $guid ); 374 367 375 $attachment = array( 368 'guid' => $ upload_dir ['url'] . '/'. $name,376 'guid' => $guid . $name, 369 377 'post_mime_type' => $wp_filetype['type'], 370 378 'post_title' => preg_replace('/\.[^.]+$/', '', $name),
Note: See TracChangeset
for help on using the changeset viewer.