[wp-trac] [WordPress Trac] #40521: Using a custom query var on a static front page results in wrong $post
WordPress Trac
noreply at wordpress.org
Fri Apr 21 20:52:37 UTC 2017
#40521: Using a custom query var on a static front page results in wrong $post
-------------------------------+-----------------------------
Reporter: mechter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.7.4
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
'''Steps to reproduce:'''
* Create a page and make it the static front page
* Add a new query var via filter in theme's functions.php: `add_filter(
'query_vars', function( $vars ) { array_push( $vars, 'buggy' ); return
$vars; } );`
* Open the front page setting the newly added query var (e.g.
"https://example.com/?buggy=yep")
'''Result:''' displays the latest blog post
'''Expected result:''' displays front page
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40521>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list