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
This commit is contained in:
Sergey Biryukov 2025-01-27 15:45:23 +00:00
parent b7a73d6a45
commit 16ee06cba1
2 changed files with 3 additions and 3 deletions

View File

@ -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' ) ) {

View File

@ -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.