WordPress.org

Make WordPress Core

Ticket #49591: 49591.diff

File 49591.diff, 529 bytes (added by dontdream, 9 months ago)
  • src/wp-includes/post-template.php

     
    282282                return '';
    283283        }
    284284
    285         if ( null === $post ) {
    286                 $elements = compact( 'page', 'more', 'preview', 'pages', 'multipage' );
    287         } else {
    288                 $elements = generate_postdata( $_post );
    289         }
     285        $elements = generate_postdata( $_post );
    290286
    291287        if ( null === $more_link_text ) {
    292288                $more_link_text = sprintf(