[wp-trac] [WordPress Trac] #61600: Import of scheduled posts
WordPress Trac
noreply at wordpress.org
Wed Feb 19 07:05:09 UTC 2025
#61600: Import of scheduled posts
--------------------------+------------------------------
Reporter: lejon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: minor | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by oshodev):
Sometimes, caching plugins or object caching (e.g., Redis) can cause UI
mismatches. Clear the cache and test again. Use the following hook in
functions.php to ensure correct status display:
{{{
add_filter('display_post_states', function($post_states, $post) {
if ($post->post_status == 'future') {
$post_states['future'] = __('Scheduled');
}
return $post_states;
}, 10, 2);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61600#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list