Make WordPress Core

Ticket #24805: 24805.diff

File 24805.diff, 1.3 KB (added by wonderboymusic, 12 years ago)
  • wp-includes/post.php

    diff --git wp-includes/post.php wp-includes/post.php
    index eb63686..c8888c6 100644
    function wp_insert_attachment($object, $file = false, $parent = 0) { 
    38763876        global $wpdb, $user_ID;
    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' => '');
    38823882
  • wp-includes/theme.php

    diff --git wp-includes/theme.php wp-includes/theme.php
    index a1dec26..5746406 100644
    function add_theme_support( $feature ) { 
    13801380                        break;
    13811381        }
    13821382
    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;
    13841390}
    13851391
    13861392/**