feat: add json file transport
This commit is contained in:
1 parent
2202804b15
commit
a9f719c408
4 files changed
+143
-2
No files matched your search
+3
-2
@@ -143,11 +143,12 @@ if ( ! function_exists( 'wp_json_encode' ) ) {
|
||||
* Minimal JSON encoder for unit tests.
|
||||
*
|
||||
* @param mixed $value Value to encode.
|
||||
* @param int $flags JSON encoding flags.
|
||||
* @return string|false
|
||||
*/
|
||||
function wp_json_encode( $value ) {
|
||||
function wp_json_encode( $value, $flags = 0 ) {
|
||||
// phpcs:ignore -- Test stub for WordPress' wp_json_encode().
|
||||
return json_encode( $value );
|
||||
return json_encode( $value, $flags );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user