[wp-trac] [WordPress Trac] #62331: Imaged Edit GD Control Flow

WordPress Trac noreply at wordpress.org
Fri Nov 1 17:08:27 UTC 2024


#62331: Imaged Edit GD Control Flow
-------------------------------------+------------------------------
 Reporter:  glynnquelch              |       Owner:  adamsilverstein
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.7.1
Component:  Media                    |     Version:  6.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by adamsilverstein):

 > It would be nice to add a unit test for this, ideally asserting that
 imagecreatefromstring is only called once.

 Not sure this is possible with our testing framework. Fortunately, the fix
 is clear looking at the code logic. Previous to the this change,
 `imagecreatefromstring` is called twice.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62331#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list