PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | jetpack_vendor/automattic/jetpack-sync/src/class-json-deflate-array-codec.php +6 -2 13.2.4 → 16.3-a.5 View file →
@@ -7,8 +7,12 @@
7 7 */
8 8
9 9 namespace Automattic\Jetpack\Sync;
10 10
11 +if ( ! defined( 'ABSPATH' ) ) {
12 + exit( 0 );
13 +}
14 +
11 15 /**
12 16 * An implementation of Automattic\Jetpack\Sync\Codec_Interface that uses gzip's DEFLATE
13 17 * algorithm to compress objects serialized using json_encode
14 18 */
@@ -51,14 +55,14 @@
51 55 * Serialize JSON
52 56 *
53 57 * @see https://gist.github.com/muhqu/820694
54 58 *
55 - * @param string $any Value to serialize and wrap.
59 + * @param mixed $any Value to serialize and wrap.
56 60 *
57 61 * @return false|string
58 62 */
59 63 protected function json_serialize( $any ) {
60 - return wp_json_encode( Functions::json_wrap( $any ) );
64 + return wp_json_encode( Functions::json_wrap( $any ), JSON_UNESCAPED_SLASHES );
61 65 }
62 66
63 67 /**
64 68 * Unserialize JSON