WordPress.org

Make WordPress Core

Changeset 4530


Ignore:
Timestamp:
11/25/06 06:30:05 (7 years ago)
Author:
ryan
Message:

Include post_content_filtered in queries to comply with MySQL strict mode. fixes #3112

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/functions-post.php

    r4224 r4530  
    303303            post_date_gmt = '$post_date_gmt', 
    304304            post_content = '$post_content', 
     305            post_content_filtered = '$post_content_filtered', 
    305306            post_title = '$post_title', 
    306307            post_excerpt = '$post_excerpt', 
     
    322323        $wpdb->query( 
    323324            "INSERT INTO $wpdb->posts 
    324             (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt,  post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) 
     325            (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt,  post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) 
    325326            VALUES 
    326             ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type', '$guid')"); 
     327            ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type', '$guid')"); 
    327328            $post_ID = $wpdb->insert_id;             
    328329    } 
Note: See TracChangeset for help on using the changeset viewer.