[wp-trac] [WordPress Trac] #22077: attachment_id conditions works like homepage

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 5 22:56:01 UTC 2012


#22077: attachment_id conditions works like homepage
-----------------------------------------+------------------------------
 Reporter:  starnetwork                  |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Query                        |     Version:  3.4.2
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch 2nd-opinion dev-feedback => has-patch reporter-
     feedback
 * component:  General => Query


Comment:

 Could not reproduce the original bug neither in 3.4 nor in 3.5-beta1.

 The unconditional `absint()` is consistent with the other ones above:
 [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
 includes/query.php#L1441

 If `attachment_id` is not a numeric value, then it's not a valid
 attachment page.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22077#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list