Hi there,
I'm using the following code in my functions.php file that sets posts with a future publish date to the "published" status (instead of "scheduled").
Everything worked perfect until updating to WordPress 3.5. Does anybody know why?...
function setup_future_hook() {
// Replace native future_post function with replacement
remove_action('future_post', '_future_post_hook');
add_action('future_post', 'publish_future_post_now');
}
function publish_future_post_now($id) {
// Set new post's post_status to "publish" rather than "future."
wp_publish_post($id);
}
add_action('init', 'setup_future_hook');