[wp-trac] [WordPress Trac] #59782: PHP deprecation error in WP_Image_Editor_Imagick

WordPress Trac noreply at wordpress.org
Fri Jun 21 20:35:41 UTC 2024


#59782: PHP deprecation error in WP_Image_Editor_Imagick
-------------------------------------------------+-------------------------
 Reporter:  skithund                             |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.6
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  php81 has-patch commit has-unit-     |     Focuses:  php-
  tests                                          |  compatibility
-------------------------------------------------+-------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58457" 58457]:
 {{{
 #!CommitTicketReference repository="" revision="58457"
 Media: Fix implicit conversion from float to int in image cropping.

 Cast crop values to integers to prevent PHP error caused by implicit
 conversion from `float` to `int` values when cropping images using
 ImageMagick.

 Props skithund, mai21, nicomollet, amanias1977, joedolson.
 Fixes #59782.
 }}}

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


More information about the wp-trac mailing list