WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

Description

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:

http://mu.wordpress.org/forums/topic/16428?replies=10

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

ssandison4 years ago

comment:1 wpmuguru4 years ago

  • Keywords multisite added
  • Milestone changed from Unassigned to 3.0

comment:2 wpmuguru4 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.

comment:3 donncha4 years ago

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

comment:4 wpmuguru4 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.