Make WordPress Core

Changeset 5817


Ignore:
Timestamp:
07/24/2007 10:29:41 PM (18 years ago)
Author:
ryan
Message:

Don't forget to filter post_category

File:
1 edited

Legend:

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

    r5806 r5817  
    419419function sanitize_post($post, $context = 'display') {
    420420    // TODO: Use array keys instead of hard coded list
    421     $fields = array('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_date', 'post_date_gmt', 'post_parent', 'menu_order', 'post_mime_type');
     421    $fields = array('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_date', 'post_date_gmt', 'post_parent', 'menu_order', 'post_mime_type', 'post_category');
    422422
    423423    $do_object = false;
Note: See TracChangeset for help on using the changeset viewer.