WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r30258 r29468  
    47204720    $defaults = array(
    47214721        'file'        => $file,
    4722         'post_parent' => 0
     4722        'post_parent' => $parent
    47234723    );
    4724 
    47254724    $data = wp_parse_args( $args, $defaults );
    4726 
    4727     if ( ! empty( $parent ) ) {
    4728         $data['post_parent'] = $parent;
    4729     }
    47304725
    47314726    $data['post_type'] = 'attachment';
Note: See TracChangeset for help on using the changeset viewer.