WordPress.org

Make WordPress Core

Changeset 9299


Ignore:
Timestamp:
10/23/2008 06:01:57 PM (13 years ago)
Author:
ryan
Message:

Set current_page_parent when using page_for_posts. Props betsyk. fixes #7518

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r9296 r9299  
    11651165            elseif ( $_current_page && $page->ID == $_current_page->post_parent )
    11661166                $css_class .= ' current_page_parent';
     1167        } elseif ( $page->ID == get_settings('page_for_posts') ) {
     1168            $css_class .= ' current_page_parent';
    11671169        }
    11681170
Note: See TracChangeset for help on using the changeset viewer.