Make WordPress Core

Changeset 24521


Ignore:
Timestamp:
06/27/2013 02:46:23 AM (11 years ago)
Author:
nacin
Message:

Add strict check in wp_xmlrpc_server::set_custom_fields(). The slash strip ensures these values are the same data type, but it might not be that way forever. props xknown.

File:
1 edited

Legend:

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

    r24480 r24521  
    282282                if ( isset($meta['key']) ) {
    283283                    $meta['key'] = wp_unslash( $meta['key'] );
    284                     if ( $meta['key'] != $pmeta->meta_key )
     284                    if ( $meta['key'] !== $pmeta->meta_key )
    285285                        continue;
    286286                    $meta['value'] = wp_unslash( $meta['value'] );
Note: See TracChangeset for help on using the changeset viewer.