[wp-trac] [WordPress Trac] #16373: Wrong page loaded requesting custom registered query_vars when correcting is_* for page_on_front requests
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 25 21:51:12 UTC 2011
#16373: Wrong page loaded requesting custom registered query_vars when correcting
is_* for page_on_front requests
--------------------------+---------------------------------------------
Reporter: jondavis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0
Severity: normal | Keywords: front page query_vars has-patch
--------------------------+---------------------------------------------
* Install vanilla WP 3.0.4.
* Register a new 'qv_test' query var in the default theme's function.php
file.
{{{
function custom_query_vars_test ($vars) {
$vars[] = 'qv_test';
return $vars;
}
add_filter('query_vars','custom_query_vars_test');
}}}
* Create a 'Home' page.
* Under Settings → Reading set the 'Front page displays' setting to
'A static page (select below' and set the 'Front page:' setting to the
'Home' page.
* Load the front end page.
* Add the 'qv_test' query var to the request (e.g.
http://blogurl.com/?qv_test=test)
The wrong page is loaded.
Adding an invalid query_var (one that is not registered) continues to
correctly load the page.
The issue occurs regardless of permalink configuration.
This issue appears related to #12047 and is either a regression from the
fixes applied to that issue, or is simply case not covered by the fixes.
Changes in revision [14445] also relate to #12047.
This issue still exists as of at least 3.0.4 up to 3.1-RC3.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16373>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list