[wp-trac] [WordPress Trac] #40166: query_vars bug sets is_home to false.

WordPress Trac noreply at wordpress.org
Wed Mar 15 18:36:29 UTC 2017


#40166: query_vars bug sets is_home to false.
--------------------------+-----------------------------
 Reporter:  avengers      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi @boonebgorges, in reference to an older ticket -
 [https://core.trac.wordpress.org/ticket/25143] following is the issue i am
 facing.

 Similar to the other ticket, when registering a query variable as follows:

 {{{#!php
 <?php
 function wppbi_register_query_vars($vars){
         $vars[] = get_option('wppbi_file_url_parameter');
         return $vars;
 }
 add_filter('query_vars', 'wppbi_register_query_vars');
 }}}

 the is_home variable is set to false when visitng the homepage as such
 http://yoursite.com/?foo=1 while http://yoursite.com/ works perfectly.

 Any solutions are appreciated.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list