Make WordPress Core

Changeset 24759


Ignore:
Timestamp:
07/20/2013 08:20:47 PM (11 years ago)
Author:
nacin
Message:

Add a default post_title value to wp_insert_attachment() to avoid a notice when there is no ID3 title.

props wonderboymusic.
see #24805.

File:
1 edited

Legend:

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

    r24715 r24759  
    38773877
    38783878    $defaults = array('post_status' => 'inherit', 'post_type' => 'post', 'post_author' => $user_ID,
    3879         'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
     3879        'ping_status' => get_option('default_ping_status'), 'post_parent' => 0, 'post_title' => '',
    38803880        'menu_order' => 0, 'to_ping' =>  '', 'pinged' => '', 'post_password' => '',
    38813881        'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0, 'context' => '');
Note: See TracChangeset for help on using the changeset viewer.