Make WordPress Core

Ticket #60187: functions.php.diff

File functions.php.diff, 1.1 KB (added by dartiss, 10 months ago)
  • wp-includes/functions.php

    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() ) { 
    42844284}
    42854285
    42864286/**
    4287  * Encodes a variable into JSON, with some sanity checks.
     4287 * Encodes a variable into JSON, with some confidence checks.
    42884288 *
    42894289 * @since 4.1.0
    42904290 * @since 5.3.0 No longer handles support for PHP < 5.6.
    function _wp_die_process_input( $message, $title = '', $args = array() ) { 
    43004300function wp_json_encode( $value, $flags = 0, $depth = 512 ) {
    43014301        $json = json_encode( $value, $flags, $depth );
    43024302
    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.
    43044304        if ( false !== $json ) {
    43054305                return $json;
    43064306        }
    function wp_json_encode( $value, $flags = 0, $depth = 512 ) { 
    43154315}
    43164316
    43174317/**
    4318  * Performs sanity checks on data that shall be encoded to JSON.
     4318 * Performs confidence checks on data that shall be encoded to JSON.
    43194319 *
    43204320 * @ignore
    43214321 * @since 4.1.0