Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#17579 closed defect (bug) (fixed)

Checking post_type in wp_get_attachment_url is later than it should be

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


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 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.3

#2 @nacin
12 years ago

  • Keywords commit added

#3 @SergeyBiryukov
12 years ago

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

#4 @dd32
12 years ago

In [19234]:

Fix typo in [19231]. See #17579

Note: See TracTickets for help on using tickets.