Opened 11 years ago
Closed 11 years ago
#27936 closed defect (bug) (fixed)
Skip Cropping is not available in Customizer?
Reported by: | pavelevap | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 3.9.1 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Customize | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
I can skip cropping image in Custom header admin page, but it is not available in Customizer? Is it "feature" or bug?
Attachments (2)
Change History (18)
This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.
11 years ago
This ticket was mentioned in IRC in #wordpress-dev by nacin1. View the logs.
11 years ago
#8
@
11 years ago
Logic for the Customizer: tags/3.9/src/wp-admin/js/customize-controls.js#L373 and tags/3.9/src/wp-includes/js/customize-models.js#L95
#9
follow-up:
↓ 10
@
11 years ago
- Keywords has-patch added
27936.patch is the inversion of tags/3.9/src/wp-admin/custom-header.php#L718. Based on $oitar
(which is 1 otherwise) the skip button is displayed on custom header.
#10
in reply to:
↑ 9
;
follow-up:
↓ 11
@
11 years ago
Replying to ocean90:
27936.patch is the inversion of tags/3.9/src/wp-admin/custom-header.php#L718. Based on
$oitar
(which is 1 otherwise) the skip button is displayed on custom header.
So we're going to allow skipping if the supplied image's width is less than the theme's width?
#11
in reply to:
↑ 10
;
follow-up:
↓ 12
@
11 years ago
Replying to ehg:
So we're going to allow skipping if the supplied image's width is less than the theme's width?
Correct, see ticket:20657:10 and [20806].
#12
in reply to:
↑ 11
@
11 years ago
Replying to ocean90:
Replying to ehg:
So we're going to allow skipping if the supplied image's width is less than the theme's width?
Correct, see ticket:20657:10 and [20806].
Ok, looks good to me! A test would be nice in https://core.trac.wordpress.org/browser/trunk/tests/qunit/wp-admin/js/customize-header.js - where we're testing all the shouldBeCropped() logic.
Tested with TwentyFourteen:
I can see the button when the image fits already in the size: https://cloudup.com/co5nGzDOde9
Using a 150x150 px image will show the skip button on header screen, but not in the Customizer.