Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    If you want a correct url for your future post, you have to modify this file : /wp-includes/link-template.php, line 160, remove ‘future’ in the array. The is a new value since 4.2 ??

    Before 4.2
    if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft')) ) {

    After 4.2
    if ( '' != $permalink && !in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', future' ) ) ) {

    The system return the sort url (p=…) if the post status is draft, pending, auto-draft and now future. It’s new since 4.2 and it’s bad for us ??

    My method is not clean, I’ve modified a core file, but it was an emergency.

Viewing 1 replies (of 1 total)