Make WordPress Core


Ignore:
Timestamp:
11/30/2009 09:41:52 PM (15 years ago)
Author:
ryan
Message:

Save parent temp ID for unattached attachments in postmeta. Props scribu. fixes #9471

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r12284 r12298  
    28042804
    28052805    clean_post_cache($post_ID);
     2806
     2807    if ( isset($post_parent) && $post_parent < 0 )
     2808        add_post_meta($post_ID, '_wp_attachment_temp_parent', $post_parent, true);
    28062809
    28072810    if ( $update) {
Note: See TracChangeset for help on using the changeset viewer.