Skip to content

Commit fb4d0ad

Browse files
authored
Merge pull request #1 from Bit-Apps-Pro/shuvomohajan-patch-1
chore: json_encode replaced with wp_json_encode
2 parents 25efc00 + 3fcd2c0 commit fb4d0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ private function prepareAttributeForSaveOrUpdate($isUpdate = false)
14491449
if (isset($attributes[$column])) {
14501450
$this->bindings[] = \is_array($this->_model->{$column})
14511451
|| \is_object($this->_model->{$column})
1452-
? json_encode($this->_model->{$column}) : $this->_model->{$column};
1452+
? wp_json_encode($this->_model->{$column}) : $this->_model->{$column};
14531453
} else {
14541454
$this->bindings[] = '';
14551455
}

0 commit comments

Comments
 (0)