diff options
author | Yury German <blueknight@gentoo.org> | 2019-04-28 17:39:03 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2019-04-28 17:39:03 -0400 |
commit | 2ab16973706e120bc344c83be6295b54fd908c57 (patch) | |
tree | 358267a52d9542c77c90e3663cea32d13b8cb639 /plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php | |
parent | Update twentysixteen 1.7 (diff) | |
download | blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.tar.gz blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.tar.bz2 blogs-gentoo-2ab16973706e120bc344c83be6295b54fd908c57.zip |
Updating packages for 5.1.1
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php')
-rw-r--r-- | plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php b/plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php index 8d8e6173..04d3dd7d 100644 --- a/plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php +++ b/plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php @@ -7,7 +7,7 @@ require_once dirname( __FILE__ ) . '/interface.jetpack-sync-codec.php'; * algorithm to compress objects serialized using json_encode */ class Jetpack_Sync_JSON_Deflate_Array_Codec implements iJetpack_Sync_Codec { - const CODEC_NAME = "deflate-json-array"; + const CODEC_NAME = 'deflate-json-array'; public function name() { return self::CODEC_NAME; @@ -22,7 +22,6 @@ class Jetpack_Sync_JSON_Deflate_Array_Codec implements iJetpack_Sync_Codec { } // @see https://gist.github.com/muhqu/820694 - protected function json_serialize( $any ) { if ( function_exists( 'jetpack_json_wrap' ) ) { return wp_json_encode( jetpack_json_wrap( $any ) ); @@ -37,7 +36,7 @@ class Jetpack_Sync_JSON_Deflate_Array_Codec implements iJetpack_Sync_Codec { private function json_wrap( &$any, $seen_nodes = array() ) { if ( is_object( $any ) ) { - $input = get_object_vars( $any ); + $input = get_object_vars( $any ); $input['__o'] = 1; } else { $input = &$any; |