mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 23:30:53 +00:00
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:
parent
b7a73d6a45
commit
16ee06cba1
@ -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' ) ) {
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user