WordPress.org

Make WordPress Core

Changeset 7042


Ignore:
Timestamp:
02/26/2008 06:51:45 PM (12 years ago)
Author:
ryan
Message:

Add some defaults for wp_insert_attachment. fixes #6006

File:
1 edited

Legend:

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

    r7036 r7042  
    19871987    $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
    19881988        'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
    1989         'menu_order' => 0, 'to_ping' =>  '', 'pinged' => '', 'post_password' => '');
     1989        'menu_order' => 0, 'to_ping' =>  '', 'pinged' => '', 'post_password' => '',
     1990        'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '');
    19901991
    19911992    $object = wp_parse_args($object, $defaults);
Note: See TracChangeset for help on using the changeset viewer.