Skip to content

Commit

Permalink
Coerce types
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Nov 13, 2023
1 parent 6fdc982 commit 83ddc64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function get_item( $request ) {
return $revision;
}

if ( $parent->ID !== $revision->post_parent ) {
if ( (int) $parent->ID !== (int) $revision->post_parent ) {
return new WP_Error(
'rest_post_invalid_parent',
/* translators: %s: A post revision id. */
Expand Down

0 comments on commit 83ddc64

Please sign in to comment.