Make WordPress Core

Changeset 59726


Ignore:
Timestamp:
01/29/2025 02:44:32 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_xmlrpc_server::set_custom_fields().

Follow-up to [40692].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

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

    r59723 r59726  
    427427                $pmeta      = get_metadata_by_mid( 'post', $meta['id'] );
    428428
    429                 if ( ! $pmeta || $pmeta->post_id != $post_id ) {
     429                if ( ! $pmeta || (int) $pmeta->post_id !== $post_id ) {
    430430                    continue;
    431431                }
Note: See TracChangeset for help on using the changeset viewer.