WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27573, comment 2


Ignore:
Timestamp:
03/30/2014 07:43:05 PM (7 years ago)
Author:
GregLone
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27573, comment 2

    initial v1  
    1515$attachment = apply_filters( 'attachment_thumbnail_args', $attachment, $metadata, $uploaded );
    1616
    17 $sub_attachment_id = wp_insert_attachment( $sub_attachment, $uploaded['file'] );
     17$sub_attachment_id = wp_insert_attachment( $attachment, $uploaded['file'] );
    1818}}}
    1919Also, I used a post meta to store the hash, but ''post_content_filtered'' seems to be better. Less easy to get but we won't use it every day.