Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #55659, comment 6


Ignore:
Timestamp:
02/09/2023 12:22:18 AM (3 years ago)
Author:
primetimejas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55659, comment 6

    v3 v4  
    2525        // Ensure we have a valid post.
    2626        $post = get_post( $request['id'] );
    27         if ( is_wp_error( $post ) ) {
     27        if ( ! $post instanceof WP_Post ) {
    2828                        return $response;
    2929        }