[wp-trac] [WordPress Trac] #31246: Notice: Undefined offset: 0 in wp-includes/query.php on line 3877

WordPress Trac noreply at wordpress.org
Fri Feb 6 22:09:07 UTC 2015


#31246: Notice: Undefined offset: 0 in wp-includes/query.php on line 3877
-------------------------------+------------------------------
 Reporter:  Mediastuttgart     |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by Chouby):

 Hi!

 I started to debug since I am the author of Polylang.
 Here is the content of {{{$this->tax_query}}}:

 {{{
 Array
 (
     [post_type] => post
     [lang] => all
     [posts_per_page] => 20
 )
 }}}
 {{{$tax_query_in_and}}} is just an empty array at this point.

 For you to get the full picture, I unset the query_var 'lang' in the
 parse_query action. Up to now it was sufficient to remove the tax query I
 wanted to remove from the query.

 Maybe that's not sufficient anymore.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31246#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list