else { $comment_status =
get_default_comment_status( $post_type );
} } else { $comment_status =
$postarr['comment_status'
];
} // These variables are needed by compact() later.
$post_content_filtered =
$postarr['post_content_filtered'
];
$post_author =
isset( $postarr['post_author'
] ) ?
$postarr['post_author'
] :
$user_id;
$ping_status =
empty( $postarr['ping_status'
] ) ?
get_default_comment_status( $post_type, 'pingback'
) :
$postarr['ping_status'
];
$to_ping =
isset( $postarr['to_ping'
] ) ?
sanitize_trackback_urls( $postarr['to_ping'
] ) : '';
$pinged =
isset( $postarr['pinged'
] ) ?
$postarr['pinged'
] : '';
$import_id =
isset( $postarr['import_id'
] ) ?
$postarr['import_id'
] : 0;
/*
* The 'wp_insert_post_parent' filter expects all variables to be present.
* Previously, these variables would have already been extracted
*/
if ( isset( $postarr['menu_order'
] ) ) { $menu_order =
(int) $postarr['menu_order'
];
} else { $menu_order = 0;
}