[wp-trac] [WordPress Trac] #33913: WP 4.3.1 - Fatal error: Method missing from WP_Meta_Query

WordPress Trac noreply at wordpress.org
Thu Sep 17 10:23:06 UTC 2015


#33913: WP 4.3.1 - Fatal error: Method missing from WP_Meta_Query
--------------------------+-----------------------------
 Reporter:  diavollo03    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 <b>Fatal error</b>:  Call to undefined method
 WP_Meta_Query::has_or_relation() in
 <b>/Users/diavollo03/Work/cogdesign.com/cog-repo/public/wp-
 includes/user.php</b> on line <b>713</b><br /

 I fixed it by adding

 {{{
 public function has_or_relation() {
                 return ( $this->relation == 'OR' );
         }
 }}}

 in ./wp-includes/meta.php at line 1569

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


More information about the wp-trac mailing list