diff --git wp-includes/post.php wp-includes/post.php
index eb63686..c8888c6 100644
|
|
function wp_insert_attachment($object, $file = false, $parent = 0) { |
3876 | 3876 | global $wpdb, $user_ID; |
3877 | 3877 | |
3878 | 3878 | $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' => '', |
3880 | 3880 | 'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '', |
3881 | 3881 | 'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0, 'context' => ''); |
3882 | 3882 | |
diff --git wp-includes/theme.php wp-includes/theme.php
index a1dec26..5746406 100644
|
|
function add_theme_support( $feature ) { |
1380 | 1380 | break; |
1381 | 1381 | } |
1382 | 1382 | |
1383 | | $_wp_theme_features[ $feature ] = $args; |
| 1383 | if ( true !== $args && ! is_array( $args[0] ) ) |
| 1384 | $args[0] = (array) $args[0]; |
| 1385 | |
| 1386 | if ( isset( $_wp_theme_features[ $feature ] ) && true !== $_wp_theme_features[ $feature ] ) |
| 1387 | $_wp_theme_features[ $feature ] = array_merge( $_wp_theme_features[ $feature ], $args ); |
| 1388 | else |
| 1389 | $_wp_theme_features[ $feature ] = $args; |
1384 | 1390 | } |
1385 | 1391 | |
1386 | 1392 | /** |