#7030 closed enhancement (fixed)
Widgets: add support for customizer selective refresh
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: | alexander.berthelsen@… |
Description
See https://make.wordpress.org/core/2016/03/22/implementing-selective-refresh-support-for-widgets/
I'm open to discussion about the changes made to the .js files. I went with encapsulating the on.click functionality into their own functions to make it a bit more readable and more obvious how they work with widgets that have been ajax'ed in via selective refresh in the customizer. :)
Attachments (1)
Change History (8)
#3
@
9 years ago
@DJPaul according to the spec (https://make.wordpress.org/core/2016/03/22/implementing-selective-refresh-support-for-widgets/) there shouldn't be a problem. Have tested it on wp4.1 and works fine there. :)
#4
@
9 years ago
- Keywords needs-testing removed
Patch looks good. I think this can go in. Only minor thing is the whitespace in the patch (needs to be switched to spaces instead of tabs), but that can easily be fixed by the person committing.
Side note: wp_customize_preview()
is a WP 4.0 function, which is okay since BP 2.6 supports WP 4.1+.
@lakrisgubben Will these changes break anything if it's run on an older version of WordPress?