From b52783bc4f456785b2e30fa33c4f0e41059d43e3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 4 Mar 2020 11:32:52 +0000 Subject: [PATCH] Docs: Add missing `@throws` tag to `_wp_json_sanity_check()` DocBlock. Props subrataemfluence. See #45643. git-svn-id: https://develop.svn.wordpress.org/trunk@47427 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 78f37e9f4f..088fe9d07f 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -3899,6 +3899,8 @@ function wp_json_encode( $data, $options = 0, $depth = 512 ) { * * @see wp_json_encode() * + * @throws Exception If depth limit is reached. + * * @param mixed $data Variable (usually an array or object) to encode as JSON. * @param int $depth Maximum depth to walk through $data. Must be greater than 0. * @return mixed The sanitized data that shall be encoded to JSON.