WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #17590


Ignore:
Timestamp:
08/10/2011 04:11:32 PM (7 years ago)
Author:
SergeyBiryukov
Comment:

Corrected markup.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17590

    • Property Cc ben@… added
  • Ticket #17590 – Description

    initial v2  
    88
    99The problem seems to be this row in wp_list_pages():
     10{{{
    1011if ( is_page() || is_attachment() || $wp_query->is_posts_page )
     12}}}
    1113
    1214In the following patch i've changed it to
     15{{{
    1316if ( is_page() || is_attachment() || $wp_query->is_posts_page || ($wp_query->query_vars['post_type'] != 'post' && is_single()) )
     17}}}
    1418
    1519(If this is not the intended behavoir please let me know. )