Opened 11 years ago
Closed 11 years ago
#27620 closed defect (bug) (fixed)
Customizer background image drop zone text glitch
Reported by: | astralbodies | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Customize | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description
The text "Drop a file here or ." is missing the "or" part of the description.
https://i.cloudup.com/aAeR5Qdy62.png
I originally discovered this on WordPress.com and I was directed to open a ticket here in Core.
Attachments (5)
Change History (24)
#4
in reply to:
↑ 3
@
11 years ago
Replying to ocean90:
I tested this and it looks good, after applying the patch I see the proper 'select a file' option -
#5
follow-up:
↓ 6
@
11 years ago
- Keywords needs-patch added; has-patch needs-testing removed
Nope, this.supports
returns true in IE, because it's this.supports.upload
aka Uploader.browser.supported
. The result is, that you have no button to upload in IE.
#6
in reply to:
↑ 5
;
follow-up:
↓ 7
@
11 years ago
Replying to ocean90:
Nope,
this.supports
returns true in IE, because it'sthis.supports.upload
akaUploader.browser.supported
. The result is, that you have no button to upload in IE.
Thank you for testing this. this.supports.dragdrop
wasn't being set properly. Happy to go back and try to debug why that was the case.
#7
in reply to:
↑ 6
;
follow-ups:
↓ 8
↓ 9
@
11 years ago
Replying to rachelbaker:
Thank you for testing this.
this.supports.dragdrop
wasn't being set properly. Happy to go back and try to debug why that was the case.
this.uploader.bind( 'init', function( uploader ) { .. } in wp-upload.js runs after this.uploader.init() in customize-controls.js. Because of this this.supports.dragdrop
is undefined.
#8
in reply to:
↑ 7
@
11 years ago
Replying to ocean90:
Replying to rachelbaker:
Thank you for testing this.
this.supports.dragdrop
wasn't being set properly. Happy to go back and try to debug why that was the case.
this.uploader.bind( 'init', function( uploader ) { .. } in wp-upload.js runs after this.uploader.init() in customize-controls.js. Because of this
this.supports.dragdrop
is undefined.
that makes sense. i see the set call dragdrop = self.supports.dragdrop = uploader.features.dragdrop && ! Uploader.browser.mobile;
what i'm still unclear on is where uploader.features.dragdrop
is set - I couldn't find that in JS or on the PHP side where the options are passed. I'm likely missing something, is it being set?
#9
in reply to:
↑ 7
;
follow-up:
↓ 12
@
11 years ago
Replying to ocean90:
Replying to rachelbaker:
Thank you for testing this.
this.supports.dragdrop
wasn't being set properly. Happy to go back and try to debug why that was the case.
this.uploader.bind( 'init', function( uploader ) { .. } in wp-upload.js runs after this.uploader.init() in customize-controls.js. Because of this
this.supports.dragdrop
is undefined.
In 27620.2.patch I reproduced the code from Modernizr we are using internally (later) to check for drag & drop support. I verified this works correctly across IE 8->11 and in firefox; I would expect it to work correctly across browsers.
#12
in reply to:
↑ 9
@
11 years ago
Replying to adamsilverstein:
In 27620.2.patch I reproduced the code from Modernizr we are using internally (later) to check for drag & drop support. I verified this works correctly across IE 8->11 and in firefox; I would expect it to work correctly across browsers.
Smart approach! Thank you for picking this up for me, Adam. I also tested in IE 8->10 and verified it was working. This probably also needs testing on mobile/tablet devices as well.
#13
@
11 years ago
- Keywords dev-feedback removed
I don't think we need another feature detection here. Plupload does this already, that's where ploader.features.dragdrop
comes from. We just have to get in the right order again, like it was in 3.8.
#14
@
11 years ago
- Focuses ui removed
- Keywords needs-patch added; has-patch removed
The related change is the upgrade to Plupload 2.1.1, see [27316] , especially wp-plupload.js.
#15
follow-up:
↓ 16
@
11 years ago
- Keywords has-patch added; needs-patch removed
Because the dropzone setup is now bind to the Init
event, the init method of the uploader should be bind to the PostInit
event, see 27620.3.patch.
#16
in reply to:
↑ 15
;
follow-up:
↓ 17
@
11 years ago
Replying to ocean90:
Because the dropzone setup is now bind to the
Init
event, the init method of the uploader should be bind to thePostInit
event, see 27620.3.patch.
Brilliant, this gets right to the root of the problem. I missed the PostInit event. This makes way more sense than my replication of the feature detection code. Will do some browser testing!
#17
in reply to:
↑ 16
@
11 years ago
Replying to adamsilverstein:
Replying to ocean90:
Because the dropzone setup is now bind to the
Init
event, the init method of the uploader should be bind to thePostInit
event, see 27620.3.patch.
Brilliant, this gets right to the root of the problem. I missed the PostInit event. This makes way more sense than my replication of the feature detection code. Will do some browser testing!
Works as expected - tested in ie 8,9 & 10 plus firefox (current).
Hello astralbodies, thanks for the report.
Confirmed. The part after "or" is the button below. In 3.8 it was a link.