Make WordPress Core

Opened 10 years ago

Closed 4 years ago

#39099 closed defect (bug) (maybelater)

Customize: Defer triggering selective refresh for all settings until after synced

Reported by: westonruter Owned by:
Priority: normal Milestone:
Component: Customize Version: 4.7
Severity: normal Keywords: has-patch needs-testing
Cc: Focuses:

Description

Selective refresh is triggered when a setting is added, changed, or removed. In the case of being added, there are scenarios where infinite full refresh can ensue if a partial has fallback refresh. This has been particularly evident for nav menus. While the infinite refreshes have largely been fixed for nav menus in #38612, there are still cases more generally where settings could be registered in the controls (admin) but not in the preview (pane). In the case of nav menus, this still causes a selective refresh to happen even at an initial page load.

This is essentially revisiting #37032.

Attachments (2)

39099.0.diff​ (1.7 KB ) - added by westonruter 10 years ago.
39099.1.diff​ (2.1 KB ) - added by westonruter 9 years ago.

Download all attachments as: .zip

Change History (19)

@westonruter
10 years ago

#1 @westonruter
10 years ago

  • Keywords has-patch added

Something that I still want to address is the scenario where a user may make a change to a postMessage-transport setting while a full refresh is happening. In that case, we *do* want there to be an initial selective refresh happening.

#2 @westonruter
10 years ago

Easiest way to reproduce this issue is to activate the Nav Menu Roles plugin and prevent a few menu items from being displayed when a user is logged in. When loading the customizer preview, the menu containing these excluded items will get initially selective-refreshed.

#3 @westonruter
10 years ago

  • Milestone 4.7.1 → 4.8

#4 @celloexpressions
10 years ago

  • Version → 4.7

+1, if we can eliminate the initial selective refresh for menus, even, this would be a big improvement. If the changes aren't too much more complex after addressing 1, I think it's worth getting this into the 4.7 branch.

#5 @westonruter
10 years ago

  • Keywords needs-testing added

This ticket was mentioned in ​Slack in #core by flixos90. ​View the logs.


9 years ago

#7 @flixos90
9 years ago

  • Milestone 4.8 → Future Release

@westonruter
9 years ago

#8 @westonruter
9 years ago

  • Milestone Future Release → 4.9

#9 @westonruter
9 years ago

I noticed infinite refresh happening in Twenty Fifteen in 4.8 when deleting a menu assigned to a nav menu location.

This ticket was mentioned in ​Slack in #core by melchoyce. ​View the logs.


9 years ago

#11 @westonruter
9 years ago

  • Milestone 4.9 → 4.9.1

I've not been noticing this and I haven't heard it reported. Punting.

This ticket was mentioned in ​Slack in #core by westonruter. ​View the logs.


9 years ago

#13 @johnbillion
9 years ago

  • Milestone 4.9.1 → 5.0

This ticket was mentioned in ​Slack in #core-customize by westonruter. ​View the logs.


9 years ago

#15 @pento
8 years ago

  • Milestone 5.0 → 5.1

#16 @pento
8 years ago

  • Milestone 5.1 → Future Release

Patch needs testing and a decision.

#17 @westonruter
4 years ago

  • Milestone Future Release
  • Resolution → maybelater
  • Status new → closed

New feature development is being directed toward the Site Editor, so I'm closing this.

Note: See TracTickets for help on using tickets.