[wp-trac] [WordPress Trac] #45366: Optimize wp_get_post_revisions() call in wp_list_post_revisions()
WordPress Trac
noreply at wordpress.org
Fri Nov 16 18:55:04 UTC 2018
#45366: Optimize wp_get_post_revisions() call in wp_list_post_revisions()
---------------------------+------------------------------
Reporter: greatislander | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: 4.9.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
---------------------------+------------------------------
Changes (by greatislander):
* keywords: needs-patch => has-patch
Comment:
Digging deeper, it looks like `wp_post_revision_title_expanded()` will
fetch full post objects if passed an ID, even though it only needs
`post_type`, `post_author` and `post_modified`. So this can probably be
optimized as well. I'll open as a second issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45366#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list