Opened 2 years ago

Closed 19 months ago

Last modified 19 months 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
Priority: normal Milestone: 3.3
Component: Performance Version:
Severity: trivial Keywords: has-patch commit
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 2 years ago.

Download all attachments as: .zip

Change History (5)

  • Milestone changed from Awaiting Review to 3.3
  • Keywords commit added
  • Resolution set to fixed
  • Status changed from new to closed

In [19234]:

Fix typo in [19231]. See #17579

Note: See TracTickets for help on using tickets.