diff --git src/wp-includes/spl-autoload-compat.php b/spl-autoload-compat.php
index 599b604..512f794 100755
|
old
|
new
|
if ( ! function_exists( 'spl_autoload_register' ) ) {
|
| 46 | 46 | * if the function isn't callable. Default true. |
| 47 | 47 | * @param bool $prepend Whether the function should be prepended to the stack. |
| 48 | 48 | * Default false. |
| | 49 | * @throws Exception |
| 49 | 50 | */ |
| 50 | 51 | function spl_autoload_register( $autoload_function, $throw = true, $prepend = false ) { |
| 51 | 52 | if ( $throw && ! is_callable( $autoload_function ) ) { |
diff --git src/wp-includes/functions.php b/functions.php
index 60229ee..97b36ca 100755
|
old
|
new
|
function wp_json_encode( $data, $options = 0, $depth = 512 ) {
|
| 3154 | 3154 | * @param mixed $data Variable (usually an array or object) to encode as JSON. |
| 3155 | 3155 | * @param int $depth Maximum depth to walk through $data. Must be greater than 0. |
| 3156 | 3156 | * @return mixed The sanitized data that shall be encoded to JSON. |
| | 3157 | * @throws Exception |
| 3157 | 3158 | */ |
| 3158 | 3159 | function _wp_json_sanity_check( $data, $depth ) { |
| 3159 | 3160 | if ( $depth < 0 ) { |