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.