Opened 6 years ago
Last modified 5 years ago
#51038 new defect (bug)
Default height when using add_theme_support( 'custom-header') in GD.
| Reported by: | munyagu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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?
Attachments (1)
Change History (4)
#3
@
5 years ago
- Component Customize → Media
Moving to the media component as its maintainers likely have a deeper understanding of the crop function in class-wp-image-editor-gd.php, and whether 51038.diff is a reasonable fix.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This problem reported by @juthadda in japanese support forum.