-
-
Notifications
You must be signed in to change notification settings - Fork 513
TimberPost constructor doing bad guesswork #520
Copy link
Copy link
Closed
Labels
Description
Problem introduced by 3d633c6
We cannot assume that $wp_query->queried_object_id does not refer to a taxonomy ID or anything else... Which means this is totally broken when used in the loop on a category archive page, for example.
I don't even think it was a correct fix for #344 as doing new TimberPost() in the loop now gets you the page (how counter-intuitive!). The correct behavior would be for TimberPost to always have the same result as get_post
Reactions are currently unavailable