[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 Oct 18 17:01:24 GMT 2008
#7518: WordPress is not emitting class="current_page_item" for a page used as
static front page display
-------------------------------------+--------------------------------------
Reporter: yanggers | Owner: ShaneF
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.7
Component: General | Version:
Severity: minor | Resolution:
Keywords: has-patch tested commit |
-------------------------------------+--------------------------------------
Comment (by betsyk):
Hi,
I don't believe that solution will resolve the problem. The problem is
that it doesn't pass the current_page_parent class and you need to catch
all "empty" posts -- not just pick up the class from single posts (pages).
This bug and the well-tested fix have been fully documented here since
February:
http://www.umaitech.com/cms/?p=27.
Also see #6664. Attached is a revised classes.php file for WP 2.6.2
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:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list