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
This commit is contained in:
Sergey Biryukov 2020-03-04 11:32:52 +00:00
parent 55b3866749
commit b52783bc4f
1 changed files with 2 additions and 0 deletions

View File

@ -3899,6 +3899,8 @@ function wp_json_encode( $data, $options = 0, $depth = 512 ) {
* *
* @see wp_json_encode() * @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 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. * @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. * @return mixed The sanitized data that shall be encoded to JSON.