Skip to content

Commit b425593

Browse files
shuvomohajanabdul-kaioum
authored andcommitted
chore: use wp function for encode json
Signed-off-by: Shuvo Mohajan <[email protected]>
1 parent f68c391 commit b425593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/JSON.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ final class JSON
66
{
77
public static function encode($data, $options = 0, $depth = 512)
88
{
9-
return json_encode($data, $options, $depth);
9+
return wp_json_encode($data, $options, $depth);
1010
}
1111

1212
public static function maybeEncode($data, $options = 0, $depth = 512)

0 commit comments

Comments
 (0)