diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index d270157d1f88..c4ecb81f6616 100644
a
|
b
|
function _wp_die_process_input( $message, $title = '', $args = array() ) { |
4284 | 4284 | } |
4285 | 4285 | |
4286 | 4286 | /** |
4287 | | * Encodes a variable into JSON, with some sanity checks. |
| 4287 | * Encodes a variable into JSON, with some confidence checks. |
4288 | 4288 | * |
4289 | 4289 | * @since 4.1.0 |
4290 | 4290 | * @since 5.3.0 No longer handles support for PHP < 5.6. |
… |
… |
function _wp_die_process_input( $message, $title = '', $args = array() ) { |
4300 | 4300 | function wp_json_encode( $value, $flags = 0, $depth = 512 ) { |
4301 | 4301 | $json = json_encode( $value, $flags, $depth ); |
4302 | 4302 | |
4303 | | // If json_encode() was successful, no need to do more sanity checking. |
| 4303 | // If json_encode() was successful, no need to do more confidence checking. |
4304 | 4304 | if ( false !== $json ) { |
4305 | 4305 | return $json; |
4306 | 4306 | } |
… |
… |
function wp_json_encode( $value, $flags = 0, $depth = 512 ) { |
4315 | 4315 | } |
4316 | 4316 | |
4317 | 4317 | /** |
4318 | | * Performs sanity checks on data that shall be encoded to JSON. |
| 4318 | * Performs confidence checks on data that shall be encoded to JSON. |
4319 | 4319 | * |
4320 | 4320 | * @ignore |
4321 | 4321 | * @since 4.1.0 |