Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#37294 closed defect (bug) (fixed)

WP_Customize_Setting::value() fails to return previewed value for multidimensional settings

Reported by: westonruter's profile westonruter Owned by: westonruter's profile westonruter
Milestone: 4.6 Priority: normal
Severity: normal Version: 4.4
Component: Customize Keywords:
Focuses: Cc:

Description

In #32103 the “aggregated multidimensional” setting was introduced. The construct was introduced to greatly improve performance by eliminating the number of filters applied through caching of the multidimensional values.

I've found that when previewing a aggregated multidimensional setting, there is a defect where calling WP_Customize_Setting::value() will fail to return the _previewed_ value. It will incorrectly return the original value that was cached.

Attachments (1)

37294.0.diff (1.8 KB) - added by westonruter 9 years ago.

Download all attachments as: .zip

Change History (2)

@westonruter
9 years ago

#1 @westonruter
9 years ago

  • Owner set to westonruter
  • Resolution set to fixed
  • Status changed from new to closed

In 37982:

Customize: Ensure that WP_Customize_Setting::value() can return a previewed value for aggregated multidimensionals.

Fixes #37294.

Note: See TracTickets for help on using tickets.