[wp-trac] [WordPress Trac] #23867: add_rewrite_endpoint causes front-page.php template to be ignored
WordPress Trac
noreply at wordpress.org
Thu Nov 28 15:25:53 UTC 2013
#23867: add_rewrite_endpoint causes front-page.php template to be ignored
-------------------------------+------------------------------
Reporter: lumpysimon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 3.5.1
Severity: major | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by justnorris):
* cc: justnorris (added)
* severity: normal => major
Comment:
1. Add the code to theme's functions.php
{{{
add_action( 'init', 'my_add_rewrite_endpoint' );
function my_add_rewrite_endpoint() {
add_rewrite_endpoint( 'nl', EP_ALL );
}
}}}
2. Flush rewrite rules
3. Create a page called "My front page" and add content "Testing Things
and Stuff"
4. Go to "Settings -> Reading", set "Front page displays: -> A static
page: "My front page"
5. Open http://trunk.wordpress/ -> expected: "Testing Things and Stuff".
6. Open http://trunk.wordpress/nl -> expected: "Testing Things and Stuff",
failed, 404 loaded instead.
Does that count as the same bug or should I create a separate ticket ?
Wordpress 3.7.1
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23867#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list