feat: add json file transport

This commit is contained in:
Keith Solomon
2026-04-26 20:26:06 -05:00
parent 2202804b15
commit a9f719c408
4 changed files with 143 additions and 2 deletions
+3 -2
View File
@@ -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 );
}
}