[wp-trac] [WordPress Trac] #15513: Home Page fails to use page template sometimes
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 9 19:07:18 UTC 2010
#15513: Home Page fails to use page template sometimes
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: filosofo
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Template | Version: 3.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by acsnaterse):
I've the same problem here, but this solution seems not to work for me.
I've tried to debug it a bit as far as I could and I found that on line
1415/1416 of query.php it's going wrong.
On a "working" install the $_query is empty when you have a page template
as homepage. If it's not empty it should have the array keys that are in
the if-statement.
However on the install where it goes wrong, this is the content (print_r)
of the $_query array:
{{{
Array
(
[page] =>
[pagename] =>
)
}}}
Of course I can change the if statement, so it will also match these two
keys, but I don;t feel that would be the right solution.
Anyone?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15513#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list