[wp-trac] [WordPress Trac] #64362: Support for Faux WP_Post Objects
WordPress Trac
noreply at wordpress.org
Mon Dec 8 19:07:26 UTC 2025
#64362: Support for Faux WP_Post Objects
-------------------------------+------------------------------
Reporter: Howdy_McGee | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+------------------------------
Comment (by Howdy_McGee):
@westonruter Thanks for the patch. I can verify that this works for my
usecase. This allows me to supply a Faux WP_Post during `wp` and
consistently return it when `WP_Post::get_instanace()` is requested.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64362#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list