diff --git a/wp-includes/compat.php b/wp-includes/compat.php index b2308e8f22..781e7a728f 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -315,4 +315,20 @@ if ( ! function_exists( 'json_last_error_msg' ) ) : return 'An unknown error occurred'; } } -endif; \ No newline at end of file +endif; + +if ( ! interface_exists( 'JsonSerializable' ) ) { + define( 'WP_JSON_SERIALIZE_COMPATIBLE', true ); + /** + * JsonSerializable interface. + * + * Compatibility shim for PHP <5.4 + * + * @link http://php.net/jsonserializable + * + * @since 4.4.0 + */ + interface JsonSerializable { + public function jsonSerialize(); + } +} diff --git a/wp-includes/version.php b/wp-includes/version.php index 4d9fb49055..9d6e82b875 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34844'; +$wp_version = '4.4-alpha-34845'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.