[wp-trac] [WordPress Trac] #32322: Custom permalink structure incorrect for Future posts
WordPress Trac
noreply at wordpress.org
Wed Jun 3 20:10:52 UTC 2015
#32322: Custom permalink structure incorrect for Future posts
-------------------------------------------------+-------------------------
Reporter: greencode | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Permalinks | Review
Severity: normal | Version: 4.2
Keywords: needs-patch good-first-bug needs- | Resolution:
unit-tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by kdoole):
hi @kreatif,
With this patch, you would need to add a filter to your theme. Something
like,
{{{
add_filter( 'shortlink_post_statuses', 'prettylink_future_posts' );
function prettylink_future_posts( $post_statuses ) {
$future_index = array_search( 'future', $post_statuses );
unset( $post_statuses[ $future_index ] );
return $post_statuses;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32322#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list