Opened 5 years ago
Closed 5 years ago
#46997 closed defect (bug) (fixed)
Theme update links show in Customizer and don't work
Reported by: | desrosj | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.2.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch has-screenshots commit dev-reviewed |
Focuses: | multisite | Cc: |
Description
When using the Customizer on a multisite install and browsing themes, a link to update shows but produces a JavaScript error when clicked.
TypeError: wp.updates is undefined
Installing themes for multisite was officially disabled in [38887]. An update notice shows on the Theme Details view but the link is omitted. The same approach should be used here.
Looks like the thumbnail preview checks that there is an update, but not for the presence of update information, so the link always shows.
Attachments (8)
Change History (23)
#3
@
5 years ago
- Keywords needs-refresh added
- Milestone changed from 5.2.1 to 5.2.2
- Owner set to desrosj
- Status changed from new to assigned
Going to punt this one so it can get a refresh and more testing.
#4
@
5 years ago
@desrosj, As tested by @earnjam i got same error for 46997.diff patch.
data.update
variable does not got any value for single installation or in multisite installation.
Instead of that can we check if current site is multisite or not in /wp-includes/customize/class-wp-customize-theme-control.php
then it will resolve above issue for me.
Check below attached patch.
This ticket was mentioned in Slack in #core by justinahinon. View the logs.
5 years ago
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
5 years ago
#7
@
5 years ago
@desrosj @earnjam
46997.2.diff looks good on my side. Could we expect a peer review (we need two committers since we are in RC workflow) for tomorrow so this ticket coul ship with 5.2.2 RC2?
@
5 years ago
Minor Refresh to convert printf to multi-line function and moved translator comments inside.
#8
@
5 years ago
- Keywords needs-refresh removed
Reviewing I made a minor refresh in 46997.3.diff to make the printf a multi-line function and moved it's translator comment inside
#9
@
5 years ago
Looks like the later patches solved the issue of still allowing updating theme from the customizer in single site. In 46997.4.diff I just made a small CS fix to 46997.3.diff.
I think this is ready to go, but I'm not a committer, so we need @desrosj and one more to sign off on it.
This ticket was mentioned in Slack in #core by justinahinon. View the logs.
5 years ago
#11
@
5 years ago
- Keywords commit dev-feedback added; needs-testing removed
This looks good! Going to commit this to trunk
now.
Marking dev-feedback
for a second review before backporting.
46997.diff gets rid of the
Update Now
link on single site too when viewing all of the themes in the Customizer in thumbnail view. See screenshot above