Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #34893


Ignore:
Timestamp:
12/07/2015 03:58:41 PM (9 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34893

    • Property Keywords has-patch needs-testing added; needs-patch removed
    • Property Owner set to westonruter
    • Property Status changed from new to accepted
    • Property Milestone changed from Future Release to 4.5
  • Ticket #34893 – Description

    initial v3  
    1414
    1515Since the `WP_Customize_Setting::sanitize()` already partially supports validation by returning `null`, we can build on that to also allow it to return a `WP_Error` object. We'd want to retain the regular fuzzy sanitization during preview updates, but during the `customize_save` action we'd want to impose a strict pass/fail for setting validation.
     16
     17This is closely related and complimentary to #30937: Add Customizer transactions