[wp-trac] [WordPress Trac] #20660: wp_get_attachment_url() ignores filter for unrecognized IDs
WordPress Trac
noreply at wordpress.org
Mon Aug 19 23:48:54 UTC 2013
#20660: wp_get_attachment_url() ignores filter for unrecognized IDs
-----------------------------+------------------------------
Reporter: RoamFree | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 2.1
Severity: minor | Resolution: invalid
Keywords: |
-----------------------------+------------------------------
Changes (by c3mdigital):
* status: new => closed
* version: 3.3.2 => 2.1
* resolution: => invalid
Comment:
Anything that calls wp_get_attachment_url() should make sure they are
sending an actual post id or do a check on the return value to make sure
it's not false. We shouldn't be supporting bad coding habits in core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20660#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list