WordPress.org

Make WordPress Core

Changeset 7073


Ignore:
Timestamp:
02/27/2008 10:38:02 PM (12 years ago)
Author:
ryan
Message:

Add current_page_item on page_for_posts. Props mdawaffe. fixes #2959

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r6974 r7073  
    327327
    328328        global $wp_query;
    329         if ( is_page() )
     329        if ( is_page() || $wp_query->is_posts_page )
    330330            $current_page = $wp_query->get_queried_object_id();
    331331        $output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
Note: See TracChangeset for help on using the changeset viewer.