Changeset 228215
- Timestamp:
- 04/13/2010 01:18:22 AM (16 years ago)
- Location:
- add-linked-images-to-gallery-v01
- Files:
-
- 2 edited
- 3 copied
-
tags/1.0 (copied) (copied from add-linked-images-to-gallery-v01/trunk)
-
tags/1.0/attach-linked-images.php (copied) (copied from add-linked-images-to-gallery-v01/trunk/attach-linked-images.php) (2 diffs)
-
tags/1.0/readme.txt (copied) (copied from add-linked-images-to-gallery-v01/trunk/readme.txt) (2 diffs)
-
trunk/attach-linked-images.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-linked-images-to-gallery-v01/tags/1.0/attach-linked-images.php
r204966 r228215 4 4 Plugin Name: Add Linked Images To Gallery 5 5 Plugin URI: http://www.bbqiguana.com/tag/wordpress-plugins/ 6 Version: 0.96 Version: 1.0 7 7 Description: Examines the text of a post and makes local copies of all the images linked though IMG tags, adding them as gallery attachments on the post itself. 8 Author: Rand allHunt8 Author: Randy Hunt 9 9 Author URI: http://www.bbqiguana.com/ 10 10 */ … … 41 41 $filename = substr(strrchr($pathname, '/'), 1); 42 42 if (preg_match ('/(\.php|\.aspx?)$/', $filename) ) $filename .= '.jpg'; 43 if ($imgpath = externimg_sideload($imgs[$i], $filename, $post_id)) { 43 $imgpath = externimg_sideload($imgs[$i], $filename, $post_id); 44 if (!is_wp_error($imgpath)) { 44 45 if ($l=='custtag') { 45 46 add_post_meta($post_id, $k, $imgs[$i], false); -
add-linked-images-to-gallery-v01/tags/1.0/readme.txt
r204966 r228215 5 5 Requires at least: 2.7 6 6 Tested up to: 2.9.1 7 Stable tag: 0.97 Stable tag: 1.0 8 8 9 9 Makes local copies of all the linked images in a post, adding them as gallery attachments. … … 61 61 == Changelog == 62 62 63 = 1.0 = 64 * Finally found the "WP_Error on line 48" issue, and I'm ready to call this a 1.0 65 63 66 = 0.9 = 64 67 * Replaced externimg_loadimage() function with a call to WordPress's media_handle_sideload() -
add-linked-images-to-gallery-v01/trunk/attach-linked-images.php
r204966 r228215 4 4 Plugin Name: Add Linked Images To Gallery 5 5 Plugin URI: http://www.bbqiguana.com/tag/wordpress-plugins/ 6 Version: 0.96 Version: 1.0 7 7 Description: Examines the text of a post and makes local copies of all the images linked though IMG tags, adding them as gallery attachments on the post itself. 8 Author: Rand allHunt8 Author: Randy Hunt 9 9 Author URI: http://www.bbqiguana.com/ 10 10 */ … … 41 41 $filename = substr(strrchr($pathname, '/'), 1); 42 42 if (preg_match ('/(\.php|\.aspx?)$/', $filename) ) $filename .= '.jpg'; 43 if ($imgpath = externimg_sideload($imgs[$i], $filename, $post_id)) { 43 $imgpath = externimg_sideload($imgs[$i], $filename, $post_id); 44 if (!is_wp_error($imgpath)) { 44 45 if ($l=='custtag') { 45 46 add_post_meta($post_id, $k, $imgs[$i], false); -
add-linked-images-to-gallery-v01/trunk/readme.txt
r204966 r228215 5 5 Requires at least: 2.7 6 6 Tested up to: 2.9.1 7 Stable tag: 0.97 Stable tag: 1.0 8 8 9 9 Makes local copies of all the linked images in a post, adding them as gallery attachments. … … 61 61 == Changelog == 62 62 63 = 1.0 = 64 * Finally found the "WP_Error on line 48" issue, and I'm ready to call this a 1.0 65 63 66 = 0.9 = 64 67 * Replaced externimg_loadimage() function with a call to WordPress's media_handle_sideload()
Note: See TracChangeset
for help on using the changeset viewer.