Skip to content

Commit f82e80e

Browse files
committed
Merge branch 'development'
2 parents 6981efa + 02f7af5 commit f82e80e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Define version constant
66
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
7-
define( __NAMESPACE__ . '\VERSION', '3.6.8' );
7+
define( __NAMESPACE__ . '\VERSION', '3.6.9' );
88
}
99

1010
# Define root directory

core/Service/Meta_Query_Service.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,14 @@ protected function get_meta_key_replace_regex() {
100100
}
101101

102102
public function filter_get_meta_sql( $sql ) {
103-
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
104-
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
105-
}
106-
return $sql;
107-
}
103+
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
104+
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
105+
}
106+
if ( strpos( $sql['join'], static::META_KEY_PREFIX ) !== false ) {
107+
$sql['join'] = str_replace( static::META_KEY_PREFIX, '', $sql['join'] );
108+
}
109+
return $sql;
110+
}
108111

109112
/**************************************************
110113
* WP_QUERY *

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "carbon-fields",
3-
"version": "3.6.8",
3+
"version": "3.6.9",
44
"description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.",
55
"directories": {
66
"test": "tests"

0 commit comments

Comments
 (0)