mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add a default post_title value to wp_insert_attachment() to avoid a notice when there is no ID3 title.
props wonderboymusic. see #24805. git-svn-id: https://develop.svn.wordpress.org/trunk@24759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3876,7 +3876,7 @@ function wp_insert_attachment($object, $file = false, $parent = 0) {
|
||||
global $wpdb, $user_ID;
|
||||
|
||||
$defaults = array('post_status' => 'inherit', 'post_type' => 'post', 'post_author' => $user_ID,
|
||||
'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
|
||||
'ping_status' => get_option('default_ping_status'), 'post_parent' => 0, 'post_title' => '',
|
||||
'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '',
|
||||
'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0, 'context' => '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user