Make WordPress Core

Changeset 41804


Ignore:
Timestamp:
10/10/2017 04:50:37 AM (7 years ago)
Author:
westonruter
Message:

Customize: Ensure customized changes pending to be written into changeset are successfully injected into Ajax requests in preview.

Amends [40704].
See #42162.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-preview.js

    r41626 r41804  
    452452                queryParams.customize_theme = api.settings.theme.stylesheet;
    453453            }
     454
     455            // Ensure preview nonce is included with every customized request, to allow post data to be read.
     456            queryParams.customize_preview_nonce = api.settings.nonce.preview;
     457
    454458            urlParser.search = $.param( queryParams );
    455459            options.url = urlParser.href;
Note: See TracChangeset for help on using the changeset viewer.