[wp-trac] [WordPress Trac] #10381: post->ancestors isn't always set

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 4 11:52:10 UTC 2010


#10381: post->ancestors isn't always set
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan                               
     Type:  defect (bug)       |      Status:  new                                
 Priority:  normal             |   Milestone:  3.1                                
Component:  Cache              |     Version:  2.8                                
 Severity:  normal             |    Keywords:  dev-feedback needs-unit-tests early
-------------------------------+--------------------------------------------
Changes (by maorb):

 * cc: maorb (added)


Comment:

 I have this bug too, $post->ancestors is NULL in any case, so the css
 class '''current_page_ancestor''' not set as expected.

 Does the fix suggested here works and causes no problems?

 Thanks

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10381#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list