mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
4.1 Docs Audit: Ensure optional arguments in wp_json_encode() are properly documented as such.
See #30469. git-svn-id: https://develop.svn.wordpress.org/trunk@30613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0e0dca103b
commit
7bf6ff37e2
@ -2641,8 +2641,9 @@ function _scalar_wp_die_handler( $message = '' ) {
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @param mixed $data Variable (usually an array or object) to encode as JSON.
|
||||
* @param int $options Options to be passed to json_encode(). Default 0.
|
||||
* @param int $depth Maximum depth to walk through $data. Must be greater than 0, default 512.
|
||||
* @param int $options Optional. Options to be passed to json_encode(). Default 0.
|
||||
* @param int $depth Optional. Maximum depth to walk through $data. Must be
|
||||
* greater than 0. Default 512.
|
||||
* @return bool|string The JSON encoded string, or false if it cannot be encoded.
|
||||
*/
|
||||
function wp_json_encode( $data, $options = 0, $depth = 512 ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user