Not sure if this was intentionally missed so will wait for your input here.
I think in the strip_cloned() function signature we might need to remove the WP_Post type hint too because the result of get_post() or the post object passed to it might not always be a WP_Post object, it'd be better to do a check and avoid the potential fatal error.
Not sure if this was intentionally missed so will wait for your input here.
I think in the
strip_cloned()
function signature we might need to remove theWP_Post
type hint too because the result ofget_post()
or the post object passed to it might not always be aWP_Post
object, it'd be better to do a check and avoid the potential fatal error.