Changes between Version 1 and Version 2 of Ticket #64362, comment 4
- Timestamp:
- 12/08/2025 07:16:25 PM (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #64362, comment 4
v1 v2 1 @ 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.1 @iflairwebtechnologies 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. 2 2 3 3 Would we also want to ensure that the return data is valid WP_Post data? For example, errors if a Boolean is returned since the construct expects an Object or Array.