Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37255, comment 48


Ignore:
Timestamp:
03/06/2023 01:29:26 AM (2 years ago)
Author:
Howdy_McGee
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37255, comment 48

    initial v1  
    77}}}
    88
    9 If passed an object instead of an ID we can skip `WP_Post::get_instsance( $post_id )` which checks the cache, and makes a possible database call to grab the object. Instead, we can populate the object directly.
     9If passed an object we can skip `WP_Post::get_instsance( $post_id )` which checks the cache, and makes a possible database call to grab the object. Instead, we can populate the object directly.