Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/compat.php 2 locations

@@ 282-285 (lines=4) @@
279
	function json_encode( $string ) {
280
		global $wp_json;
281
282
		if ( ! ( $wp_json instanceof Services_JSON ) ) {
283
			require_once( ABSPATH . WPINC . '/class-json.php' );
284
			$wp_json = new Services_JSON();
285
		}
286
287
		return $wp_json->encodeUnsafe( $string );
288
	}
@@ 301-304 (lines=4) @@
298
	function json_decode( $string, $assoc_array = false ) {
299
		global $wp_json;
300
301
		if ( ! ($wp_json instanceof Services_JSON ) ) {
302
			require_once( ABSPATH . WPINC . '/class-json.php' );
303
			$wp_json = new Services_JSON();
304
		}
305
306
		$res = $wp_json->decode( $string );
307
		if ( $assoc_array )