WordPress.org

Make WordPress Core

Changeset 24731


Ignore:
Timestamp:
07/18/2013 02:31:25 PM (6 years ago)
Author:
nacin
Message:

XML-RPC: Recursively escape arrays as before, to avoid stomping nested objects. fixes #21767.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r24721 r24731  
    224224
    225225        foreach ( $data as &$v ) {
    226             if ( ! is_object( $v ) )
     226            if ( is_array( $v ) )
     227                $this->escape( $v );
     228            elseif ( ! is_object( $v ) )
    227229                $v = wp_slash( $v );
    228230        }
Note: See TracChangeset for help on using the changeset viewer.