[wp-trac] [WordPress Trac] #11661: warning on line 790 of wp-includes/rewrite.php

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 29 14:58:51 UTC 2009


#11661: warning on line 790 of wp-includes/rewrite.php
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan 
     Type:  defect (bug)       |      Status:  new  
 Priority:  normal             |   Milestone:  2.9.1
Component:  Rewrite Rules      |     Version:  2.9  
 Severity:  critical           |    Keywords:       
-------------------------------+--------------------------------------------
 on sites with verbose rules and no static pages, the rewrite rule
 generator complains that it cannot array_reverse a non-array.

 the culprit is get_page_hierarchy():

 http://core.trac.wordpress.org/browser/trunk/wp-includes/post.php#L2401

 it should return an empty array instead of null.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11661>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list