[wp-trac] [WordPress Trac] #50679: Optimization for wp_get_attachment_metadata()
WordPress Trac
noreply at wordpress.org
Thu Oct 1 17:53:53 UTC 2020
#50679: Optimization for wp_get_attachment_metadata()
--------------------------------------+--------------------------
Reporter: Tkama | Owner: helen
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.6
Component: Media | Version: 5.4.2
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+--------------------------
Changes (by helen):
* owner: (none) => helen
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49084" 49084]:
{{{
#!CommitTicketReference repository="" revision="49084"
Media: Don't unnecessarily check for a valid attachment before getting
meta.
This makes `wp_get_attachment_metadata()` run significantly faster. See
ticket for benchmarking.
Props Tkama, donmhico.
Fixes #50679.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50679#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list