[wp-trac] [WordPress Trac] #9255: Media manager selects wrong image size

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 1 11:05:15 GMT 2009


#9255: Media manager selects wrong image size
--------------------------+-------------------------------------------------
 Reporter:  gmpfree       |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  low           |   Milestone:  2.7.2
Component:  Media         |     Version:       
 Severity:  minor         |    Keywords:       
--------------------------+-------------------------------------------------
 '''symptom''':

 full-size image is selected in place of medium size by default.

 '''steps to reproduce''':

 1. upload an image of size between "medium" & "large" value.

 2. check wp-settings-1 cookie is NOT set, as /wp-
 includes/js/swfupload/handlers.js attempts to "cache" last values for
 alignment & size, hiding the problem from user.

 3. now in item-list the full-size image should be selected instead of the
 medium.

 viewing the source reveal both "medium" and "large" are checked, firefox 3
 opts to render latter radio-box checked.

 I believe the problem originates from

 /wp-admin/includes/media.php

 where function image_size_input_fields set $checked first to "medium" then
 to "full", in above case.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9255>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list