Header image cropping crashes when height/width is zero in functions.php
-
Hi there,
After upgrading WordPress from 3.8.8 to 4.2.2 I have found the image cropping routine is not working properly [accessed via Admin > Appearance > Header > Add new image > Choose your image > Select and Crop > …]
I have tried this both on my custom theme and on the twentyeleven theme. In both cases if I set the header-image-height to 0 the image cropping routine has a heart attack (same happens if I set the width to zero btw).
— To reproduce: —
Edit functions.php in twentyeleven theme and set HEADER_IMAGE_HEIGHT to 0
In my own custom theme setting height to zero also crashes image cropping. The code looks like this in my functions.php :
$defaults = array( 'width' => 500, 'height' => 0 ); add_theme_support( 'custom-header', $defaults );
Hope this makes sense. Let me know if I can provide more info.
- The topic ‘Header image cropping crashes when height/width is zero in functions.php’ is closed to new replies.