Changeset 517434
- Timestamp:
- 03/11/2012 05:58:26 AM (14 years ago)
- Location:
- hacklog-remote-image-autosave/trunk
- Files:
-
- 2 edited
-
hacklog-remote-image-autosave.php (modified) (2 diffs)
-
util.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hacklog-remote-image-autosave/trunk/hacklog-remote-image-autosave.php
r517231 r517434 2 2 /* 3 3 Plugin Name: Hacklog Remote Image Autosave 4 Version: 2.0. 44 Version: 2.0.5 5 5 Plugin URI: http://ihacklog.com/?p=5087 6 6 Description: save remote images in the posts to local server and add it as an attachment to the post. … … 25 25 class hacklog_remote_image_autosave 26 26 { 27 const VERSION = 'Hacklog Remote Image Autosave 2.0. 4';27 const VERSION = 'Hacklog Remote Image Autosave 2.0.5'; 28 28 const textdomain = 'hacklog_remote_image_autosave'; 29 29 const opt = 'hacklog_ria_auto_down'; -
hacklog-remote-image-autosave/trunk/util.class.php
r517231 r517434 375 375 376 376 // Compatible with Hacklog Remote Attachment plugin 377 if (class_exists ( 'hacklogra' )) { 378 $url = hacklogra::replace_attachurl( $url ); 377 if (class_exists ( 'hacklogra' )) 378 { 379 //apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ), 'upload' ); 380 $hacklogra_file = hacklogra::upload_and_send( array('file'=>$new_file,'url'=>$url) ); 381 $url = $hacklogra_file['url']; 382 $new_file = $hacklogra_file['file']; 379 383 } 380 384 … … 382 386 delete_transient ( 'dirsize_cache' ); 383 387 384 // array( 'file' => $new_file, 'url' => $url, 'type' => $type );388 // array( 'file' => $new_file, 'url' => $url, 'type' => $type ); 385 389 $name_parts = pathinfo ( $filename ); 386 390 $name = trim ( substr ( $filename, 0, - (1 + strlen ( $name_parts ['extension'] )) ) );
Note: See TracChangeset
for help on using the changeset viewer.