Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 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:

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

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
13 years ago

  • Milestone changed from Awaiting Review to 3.3

#2 @nacin
13 years ago

  • Keywords commit added

#3 @SergeyBiryukov
13 years ago

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

#4 @dd32
13 years ago

In [19234]:

Fix typo in [19231]. See #17579

Note: See TracTickets for help on using tickets.