Don't forget to filter post_category
git-svn-id: https://develop.svn.wordpress.org/trunk@5817 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3982fc6ae8
commit
706c581757
@ -418,7 +418,7 @@ function get_post_custom_values( $key = '', $post_id = 0 ) {
|
||||
|
||||
function sanitize_post($post, $context = 'display') {
|
||||
// TODO: Use array keys instead of hard coded list
|
||||
$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');
|
||||
$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');
|
||||
|
||||
$do_object = false;
|
||||
if ( is_object($post) )
|
||||
|
Loading…
Reference in New Issue
Block a user