[wp-trac] [WordPress Trac] #16002: Static homepage not displaying as expected in 3.1-RC1

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 28 02:02:09 UTC 2010


#16002: Static homepage not displaying as expected in 3.1-RC1
----------------------------+------------------
 Reporter:  donalmacarthur  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.1
Component:  General         |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by SergeyBiryukov):

 I was able to reproduce on a clean 3.1-RC1 install by manipulating
 Permalinks, Reading and custom template settings. Can't do it again on the
 second install, though. However I've managed to debug the issue on the
 first one.

 This condition in `query.php` is not satisifed:
 {{{
 if ( empty($_query) || !array_diff( array_keys($_query), array('preview',
 'page', 'paged', 'cpage') ) ) {
 }}}

 `$_query` is `Array ( [page] => [pagename] => )`, `array_diff()` returns
 `Array ( [1] => pagename )`.

 I've made two patches both of which solve the problem for me. Not sure
 which one is more correct (if any).

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


More information about the wp-trac mailing list