Make WordPress Core

Ticket #44453: 44453.diff

File 44453.diff, 1.2 KB (added by subrataemfluence, 8 years ago)

Proposed patch

  • spl-autoload-compat.php

    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' ) ) {  
    4646         *                                    if the function isn't callable. Default true.
    4747         * @param bool     $prepend           Whether the function should be prepended to the stack.
    4848         *                                    Default false.
     49         * @throws Exception
    4950         */
    5051        function spl_autoload_register( $autoload_function, $throw = true, $prepend = false ) {
    5152                if ( $throw && ! is_callable( $autoload_function ) ) {
  • functions.php

    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 ) {  
    31543154 * @param mixed $data  Variable (usually an array or object) to encode as JSON.
    31553155 * @param int   $depth Maximum depth to walk through $data. Must be greater than 0.
    31563156 * @return mixed The sanitized data that shall be encoded to JSON.
     3157 * @throws Exception
    31573158 */
    31583159function _wp_json_sanity_check( $data, $depth ) {
    31593160        if ( $depth < 0 ) {