Make WordPress Core

Changeset 12990


Ignore:
Timestamp:
02/06/2010 02:49:54 PM (17 years ago)
Author:
westi
Message:

Add defaults for 'post_content' and 'post_title' in wp_insert_post(). See #11889.

File:
1 edited

Legend:

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

    r12987 r12990  
    19201920                'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
    19211921                'menu_order' => 0, 'to_ping' =>  '', 'pinged' => '', 'post_password' => '',
    1922                 'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0);
     1922                'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0,
     1923                'post_content' => '', 'post_title' => '');
    19231924
    19241925        $postarr = wp_parse_args($postarr, $defaults);
Note: See TracChangeset for help on using the changeset viewer.