[wp-trac] [WordPress Trac] #41816: attachment_url_to_postid() should find post_id for URLs of intermediate size images
WordPress Trac
noreply at wordpress.org
Wed Sep 6 16:07:30 UTC 2017
#41816: attachment_url_to_postid() should find post_id for URLs of intermediate
size images
-------------------------------------------------+-------------------------
Reporter: pbiron | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Media | Review
Severity: normal | Version: trunk
Keywords: has-patch dev-feedback 2nd-opinion | Resolution:
has-unit-tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by pbiron):
Another thing I'd appreciate feedback on is the heuristic nature of the
mod.
Notice that, when the attachment is an image, the query does a
`_wp_attachment_metadata LIKE xxx`. Does anyone have any ideas for how to
make the query any more "exact"?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41816#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list