[wp-trac] Re: [WordPress Trac] #7518: WordPress is not emitting
class="current_page_item" for a page used as static front page
display
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 16 00:20:29 GMT 2008
#7518: WordPress is not emitting class="current_page_item" for a page used as
static front page display
----------------------+-----------------------------------------------------
Reporter: yanggers | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6.1
Component: General | Version:
Severity: minor | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by betsyk):
Looks like this has re-surfaced in Trac. Here are the details of this
problem: http://www.umaitech.com/cms/?p=27. Also, here's the current fix
for WP 2.6: in classes.php, new lines 577-580:
if ( empty($current_page) ) {
if ($page->ID == get_settings('page_for_posts'))
$css_class .= ' current_page_parent';
}
--
Ticket URL: <http://trac.wordpress.org/ticket/7518#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list