Make WordPress Core

Ticket #60584: post-template.php.patch

File post-template.php.patch, 836 bytes (added by ishiiyoshinori, 7 months ago)
  • src/wp-includes/post-template.php

     
    10571057        if ( 1 == $i ) {
    10581058                $url = get_permalink();
    10591059        } else {
    1060                 if ( ! get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ), true ) ) {
     1060                if ( ! get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending', 'future' ), true ) ) {
    10611061                        $url = add_query_arg( 'page', $i, get_permalink() );
    10621062                } elseif ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) {
    10631063                        $url = trailingslashit( get_permalink() ) . user_trailingslashit( "$wp_rewrite->pagination_base/" . $i, 'single_paged' );