[wp-trac] [WordPress Trac] #56323: Undefined variable phpcs error for $new_size_meta

WordPress Trac noreply at wordpress.org
Mon Aug 8 14:04:16 UTC 2022


#56323: Undefined variable phpcs error for $new_size_meta
----------------------------------------+------------------------------
 Reporter:  mehulkaklotar               |       Owner:  adamsilverstein
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  6.1
Component:  Media                       |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  performance
----------------------------------------+------------------------------

Comment (by johnregan3):

 @adamsilverstein I'm working on writing tests for this, but I need to
 create an image editor class that doesn't have a 'make_subsize' method.
 Also, wp_get_image_editor() requires a $file name, so I'll need to make a
 new file to hold this class.  Am I thinking about this correctly, and if
 so, where should I put that file?  Thanks!

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


More information about the wp-trac mailing list