IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 636 | 636 | public $relation; |
| 637 | 637 | |
| 638 | 638 | /** |
| | 639 | * The relation between the meta query and what it's pulled into. Can be one of 'AND' or 'OR'. |
| | 640 | * |
| | 641 | * @access public |
| | 642 | * @var string |
| | 643 | */ |
| | 644 | public $query_relation; |
| | 645 | |
| | 646 | /** |
| 639 | 647 | * Constructor |
| 640 | 648 | * |
| 641 | 649 | * @param array $meta_query (optional) A meta query |
| … |
… |
|
| 650 | 658 | $this->relation = 'AND'; |
| 651 | 659 | } |
| 652 | 660 | |
| | 661 | if ( isset( $meta_query[ 'query_relation' ] ) && strtoupper( $meta_query[ 'query_relation' ] ) == 'OR' ) { |
| | 662 | $this->query_relation = 'OR'; |
| | 663 | } |
| | 664 | else { |
| | 665 | $this->query_relation = 'AND'; |
| | 666 | } |
| | 667 | |
| 653 | 668 | $this->queries = array(); |
| 654 | 669 | |
| 655 | 670 | foreach ( $meta_query as $key => $query ) { |
| … |
… |
|
| 798 | 813 | if ( empty( $where ) ) |
| 799 | 814 | $where = ''; |
| 800 | 815 | else |
| 801 | | $where = ' AND (' . implode( "\n{$this->relation} ", $where ) . ' )'; |
| | 816 | $where = " {$this->query_relation} (" . implode( "\n{$this->relation} ", $where ) . ' )'; |
| 802 | 817 | |
| 803 | 818 | $join = implode( "\n", $join ); |
| 804 | 819 | if ( ! empty( $join ) ) |