Make WordPress Core

Changeset 59713


Ignore:
Timestamp:
01/27/2025 03:43:57 PM (4 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [5281].

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

File:
1 edited

Legend:

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

    r59710 r59713  
    54585458        $post_author = $user->ID;
    54595459
    5460         // If an author id was provided then use it instead.
    5461         if ( isset( $content_struct['wp_author_id'] ) && ( $user->ID != $content_struct['wp_author_id'] ) ) {
     5460        // If an author ID was provided then use it instead.
     5461        if ( isset( $content_struct['wp_author_id'] ) && ( $user->ID !== (int) $content_struct['wp_author_id'] ) ) {
    54625462            switch ( $post_type ) {
    54635463                case 'post':
Note: See TracChangeset for help on using the changeset viewer.