Plugin Directory

Changeset 228215


Ignore:
Timestamp:
04/13/2010 01:18:22 AM (16 years ago)
Author:
bbqiguana
Message:

finally found and fixed the WP_Error on line 48 issue

Location:
add-linked-images-to-gallery-v01
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • add-linked-images-to-gallery-v01/tags/1.0/attach-linked-images.php

    r204966 r228215  
    44 Plugin Name: Add Linked Images To Gallery
    55 Plugin URI:  http://www.bbqiguana.com/tag/wordpress-plugins/
    6  Version: 0.9
     6 Version: 1.0
    77 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: Randall Hunt
     8 Author: Randy Hunt
    99 Author URI: http://www.bbqiguana.com/
    1010 */
     
    4141            $filename = substr(strrchr($pathname, '/'), 1);
    4242            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)) {
    4445                if ($l=='custtag') {
    4546                    add_post_meta($post_id, $k, $imgs[$i], false);
  • add-linked-images-to-gallery-v01/tags/1.0/readme.txt

    r204966 r228215  
    55Requires at least: 2.7
    66Tested up to: 2.9.1
    7 Stable tag: 0.9
     7Stable tag: 1.0
    88
    99Makes local copies of all the linked images in a post, adding them as gallery attachments.
     
    6161== Changelog ==
    6262
     63= 1.0 =
     64* Finally found the "WP_Error on line 48" issue, and I'm ready to call this a 1.0
     65
    6366= 0.9 =
    6467* 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  
    44 Plugin Name: Add Linked Images To Gallery
    55 Plugin URI:  http://www.bbqiguana.com/tag/wordpress-plugins/
    6  Version: 0.9
     6 Version: 1.0
    77 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: Randall Hunt
     8 Author: Randy Hunt
    99 Author URI: http://www.bbqiguana.com/
    1010 */
     
    4141            $filename = substr(strrchr($pathname, '/'), 1);
    4242            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)) {
    4445                if ($l=='custtag') {
    4546                    add_post_meta($post_id, $k, $imgs[$i], false);
  • add-linked-images-to-gallery-v01/trunk/readme.txt

    r204966 r228215  
    55Requires at least: 2.7
    66Tested up to: 2.9.1
    7 Stable tag: 0.9
     7Stable tag: 1.0
    88
    99Makes local copies of all the linked images in a post, adding them as gallery attachments.
     
    6161== Changelog ==
    6262
     63= 1.0 =
     64* Finally found the "WP_Error on line 48" issue, and I'm ready to call this a 1.0
     65
    6366= 0.9 =
    6467* Replaced externimg_loadimage() function with a call to WordPress's media_handle_sideload()
Note: See TracChangeset for help on using the changeset viewer.