[wp-trac] [WordPress Trac] #51038: Default height when using add_theme_support( 'custom-header') in GD.

WordPress Trac noreply at wordpress.org
Mon Aug 17 06:17:21 UTC 2020


#51038: Default height when using add_theme_support( 'custom-header') in GD.
----------------------------+-----------------------------
 Reporter:  munyagu         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 `add_theme_support( 'custom-header')` defaults to 0 for width and height.
 if you are using GD, the height will be set to 0 and the cropping will
 fail and you will get the error message “There has been an error cropping
 your image.“.
 If the height is set to 0 in GD, how about getting and using the height of
 the source file?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51038>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list