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:
parent
55b3866749
commit
b52783bc4f
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue