[wp-trac] [WordPress Trac] #22077: attachment_id conditions works like homepage
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 2 10:10:42 UTC 2012
#22077: attachment_id conditions works like homepage
------------------------------------------------+--------------------------
Reporter: starnetwork | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: General | Review
Severity: normal | Version: 3.4.2
Keywords: has-patch 2nd-opinion dev-feedback | Resolution:
------------------------------------------------+--------------------------
Changes (by webord):
* cc: bordoni.dev@… (added)
* keywords: => has-patch 2nd-opinion dev-feedback
Comment:
I don't know if this is the best approach to the problem but I've solved
the problem adding condition for the `attachment_id`, it must be a numeric
value to be passed to `absint`, otherwise it will return `0` and then
later on the condition of marking it as a attachment fails.
Although might be better to change the condition, I don't know...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22077#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list