[wp-trac] [WordPress Trac] #63850: Avoid doing an extra call to cache/wpdb when post_id is not valid
WordPress Trac
noreply at wordpress.org
Wed Aug 20 14:59:57 UTC 2025
#63850: Avoid doing an extra call to cache/wpdb when post_id is not valid
-------------------------------+-----------------------------
Reporter: bor0 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"60654" 60654]:
{{{
#!CommitTicketReference repository="" revision="60654"
Posts, Post Types: Avoid an extra database query in `WP_Post` for a
negative post ID.
Follow-up to [21559].
Props bor0, akeda, SergeyBiryukov.
Fixes #63850.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63850#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list