[wp-trac] [WordPress Trac] #23867: add_rewrite_endpoint causes front-page.php template to be ignored

WordPress Trac noreply at wordpress.org
Tue Mar 26 21:49:52 UTC 2013


#23867: add_rewrite_endpoint causes front-page.php template to be ignored
-----------------------------+---------------------------
 Reporter:  lumpysimon       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Rewrite Rules
  Version:  3.5.1            |   Severity:  normal
 Keywords:                   |
-----------------------------+---------------------------
 I have a front-page.php template in my theme folder, as per the template
 hierarchy this is used regardless of whether I am showing posts or a page
 as the front page.

 However, when I add a rewrite endpoint (on the init hook), index.php is
 used for the front page template when I add my query var to the URL. It
 makes no difference if I set the front page to show posts or a page. If I
 do not add the query var, front-page.php is correctly used.

 i.e. http://domain.com correctly uses front-page.php, http://domain.com/nl
 wrongly uses index.php

 This happens whether I use EP_ALL or EP_ROOT as the places parameter.

 All other template files are fine, it's only the homepage with the problem
 as far as I can see.

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


More information about the wp-trac mailing list