WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#17579 closed defect (bug) (fixed)

Checking post_type in wp_get_attachment_url is later than it should be

Reported by: mitchoyoshitaka Owned by: mitchoyoshitaka
Milestone: 3.3 Priority: normal
Severity: trivial Version:
Component: Performance Keywords: has-patch commit
Focuses: Cc:

Description

Once we get the $post, we can immediately check the post_type and return false if it's not an attachment.

Attachments (1)

17579.diff (642 bytes) - added by mitchoyoshitaka 10 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
10 years ago

  • Milestone changed from Awaiting Review to 3.3

#2 @nacin
10 years ago

  • Keywords commit added

#3 @SergeyBiryukov
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

#4 @dd32
10 years ago

In [19234]:

Fix typo in [19231]. See #17579

Note: See TracTickets for help on using tickets.