Changeset 59707
- Timestamp:
- 01/25/2025 02:32:35 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r59699 r59707 1489 1489 1490 1490 $post_data['post_author'] = absint( $post_data['post_author'] ); 1491 if ( ! empty( $post_data['post_author'] ) && $post_data['post_author'] != $user->ID ) {1491 if ( ! empty( $post_data['post_author'] ) && $post_data['post_author'] !== $user->ID ) { 1492 1492 if ( ! current_user_can( $post_type->cap->edit_others_posts ) ) { 1493 1493 return new IXR_Error( 401, __( 'Sorry, you are not allowed to create posts as this user.' ) );
Note: See TracChangeset
for help on using the changeset viewer.