Make WordPress Core

Ticket #45643: 45643.patch

File 45643.patch, 1.7 KB (added by subrataemfluence, 7 years ago)

Proposed patch

  • wp-includes/

    diff --git wp-includes/functions.php wp-includes/functions-45643.php
    index 659d657..4e220dc 100755
    old new function _http_build_query( $data, $prefix = null, $sep = null, $key = '', $urle 
    772772 *
    773773 * @since 1.5.0
    774774 *
    775  * @param string|array $key   Either a query variable key, or an associative array of query variables.
    776  * @param string       $value Optional. Either a query variable value, or a URL to act upon.
    777  * @param string       $url   Optional. A URL to act upon.
    778775 * @return string New URL query string (unescaped).
    779776 */
    780777function add_query_arg() {
    function wp_json_encode( $data, $options = 0, $depth = 512 ) { 
    30763073 * @param mixed $data  Variable (usually an array or object) to encode as JSON.
    30773074 * @param int   $depth Maximum depth to walk through $data. Must be greater than 0.
    30783075 * @return mixed The sanitized data that shall be encoded to JSON.
     3076 * @throws Exception
    30793077 */
    30803078function _wp_json_sanity_check( $data, $depth ) {
    30813079        if ( $depth < 0 ) {
    function smilies_init() { 
    35383536 * @since 2.3.0 `$args` can now also be an object.
    35393537 *
    35403538 * @param string|array|object $args     Value to merge with $defaults.
    3541  * @param array               $defaults Optional. Array that serves as the defaults. Default empty.
     3539 * @param string|array                  $defaults Optional. Array that serves as the defaults. Default empty.
    35423540 * @return array Merged user defined values with defaults.
    35433541 */
    35443542function wp_parse_args( $args, $defaults = '' ) {
    function wp_auth_check( $response ) { 
    54335431 */
    54345432function get_tag_regex( $tag ) {
    54355433        if ( empty( $tag ) )
    5436                 return;
     5434                return '';
    54375435        return sprintf( '<%1$s[^<]*(?:>[\s\S]*<\/%1$s>|\s*\/>)', tag_escape( $tag ) );
    54385436}
    54395437