Skip to content

Commit

Permalink
Ensure S3 post meta is removed
Browse files Browse the repository at this point in the history
Contributed by Iver Odin Kvello
  • Loading branch information
bradt committed Aug 17, 2013
1 parent 52cfc10 commit 4e30fe1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wordpress-s3/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ function delete_attachment( $post_id ) {
}

$this->s3->deleteObject( $amazon['bucket'], $amazon['key'] );
// IOK 2013-03-15 Ensure this is called when attachment deleted from S3
delete_post_meta($post_id,'amazonS3_info');
}

function wp_get_attachment_metadata( $data=false, $postID=false ) {
Expand Down

0 comments on commit 4e30fe1

Please sign in to comment.