Skip to:

Opened 23 months ago

Closed 22 months ago

Last modified 21 months ago

#7030 closed enhancement (fixed)

Widgets: add support for customizer selective refresh

Reported by: lakrisgubben Owned by: r-a-y
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc: alexander.berthelsen@…



I'm open to discussion about the changes made to the .js files. I went with encapsulating the 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)

7030.diff (10.6 KB) - added by lakrisgubben 23 months ago.

Download all attachments as: .zip

Change History (8)

23 months ago

#1 @Stephen Edgar
23 months ago

  • Component changed from Not sure to Component - Any/All

#2 @Paul Gibbs
23 months ago

  • Keywords needs-testing added
  • Milestone changed from Awaiting Review to 2.6

@lakrisgubben Will these changes break anything if it's run on an older version of WordPress?

#3 @lakrisgubben
23 months ago

@DJPaul according to the spec ( there shouldn't be a problem. Have tested it on wp4.1 and works fine there. :)

#4 @r-a-y
22 months 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+.

This ticket was mentioned in Slack in #buddypress by r-a-y. View the logs.

22 months ago

#6 @r-a-y
22 months ago

  • Owner set to r-a-y
  • Resolution set to fixed
  • Status changed from new to closed

In 10793:

Widgets: Add support for WP Customizer's selective refresh.

This functionality is available as of WordPress 4.5.0.

For more details, view the WP development post:

Props lakrisgubben.
Fixes #7030.

#7 @Paul Gibbs
21 months ago

  • Component changed from Component - Any/All to Core
Note: See TracTickets for help on using tickets.