Opened 10 years ago
Closed 10 years ago
#478 closed defect (bug) (fixed)
WordPress Theme API Returning Broken Image
Reported by: | downstairsdev | Owned by: | Otto42 |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | API | Keywords: | |
Cc: |
Description
If you search for "Portfolio Press" from the themes page of the WordPress dashboard it returns a broken image for my theme (http://wordpress.org/themes/portfolio-press).
I think this has to do with the recent update we did to allow .jpg images to be used as the screenshot. My guess is that http://api.wordpress.org/themes/info/1.0/ automatically displays screenshot.png and doesn't check for screenshot.jpg.
Attachments (1)
Change History (9)
#4
@
10 years ago
Looks like we need to save the information about the screenshot name as meta at the time of the upload, then output the correct name from that later. I'll look into adding it.
#5
@
10 years ago
- Owner set to Otto42
- Priority changed from normal to high
- Status changed from new to assigned
#6
@
10 years ago
Theme directory should be showing JPG preferentially now, if the file exists. This determination is made at the time of the theme's approval, so if a screenshot.jpg exists then, it will use it, else it will fallback to the png file.
Portfolio Press was my test subject here, so it should be showing the JPG now. Still need to check the API response, but the themes directory is using the JPG at this point.
#8
@
10 years ago
- Resolution set to fixed
- Status changed from assigned to closed
API response updated to reflect new screenshot info. Side effect, the URL is now a CDN hit instead of a direct one, and it should also be more SSL friendly.
I'm going to close this as fixed, for now. If other places where this happens are found, please re-open with info.
cc @otto42 by request.