Skip to content

Commit 3fcd2c0

Browse files
authored
chore: json_encode replaced with wp_json_encode
Signed-off-by: Shuvo Mohajan <[email protected]>
1 parent 25efc00 commit 3fcd2c0

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)