From 16ee06cba12268bc40fdf98e8cda1580bfa9bee9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 27 Jan 2025 15:45:23 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_xmlrpc_server::mw_newPost()`. Follow-up to [5281]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59713 git-svn-id: http://core.svn.wordpress.org/trunk@59055 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 9da0e1f9a1..2a1815e5aa 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -5457,8 +5457,8 @@ class wp_xmlrpc_server extends IXR_Server { $post_author = $user->ID; - // If an author id was provided then use it instead. - if ( isset( $content_struct['wp_author_id'] ) && ( $user->ID != $content_struct['wp_author_id'] ) ) { + // If an author ID was provided then use it instead. + if ( isset( $content_struct['wp_author_id'] ) && ( $user->ID !== (int) $content_struct['wp_author_id'] ) ) { switch ( $post_type ) { case 'post': if ( ! current_user_can( 'edit_others_posts' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d94c43f1d5..c467677307 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59712'; +$wp_version = '6.8-alpha-59713'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.