Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#12330 closed defect (bug) (fixed)

wp_get_attachment_url() is returning original image url after cropping

Reported by: ssandison Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: multisite Cc:


I noticed this by uploading an image in posts/pages and cropping it. When clicking "Insert to post" the wrong image url is sent to the editor. This bug seems to affect MU and WP 3 alpha but not WP 2.9.

I have patched wp_get_attachment_url() to work with both upload directory styles.

The issue has been discussed on the MU forums:


Attachments (1)

post.php.diff (995 bytes) - added by ssandison 10 years ago.

Download all attachments as: .zip

Change History (5)

10 years ago

#1 @wpmuguru
10 years ago

  • Keywords multisite added
  • Milestone changed from Unassigned to 3.0

#2 @wpmuguru
10 years ago

I tested this with WP trunk and the correct image is being inserted into the post. There were a few other patches that went in related to issues with upload/media. One of those must have corrected the issue.

Leaving ticket here for now as there may be another minor release of MU before 3.0 is released.

#3 @donncha
10 years ago

I think this is the same issue as #12082 which is fixed.

#4 @wpmuguru
10 years ago

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

If this issue surfaces again, feel free to re-open.

Note: See TracTickets for help on using tickets.