Make WordPress Core

Ticket #32783: 32783.diff

File 32783.diff, 687 bytes (added by rittesh.patel, 11 years ago)

Patch to fix #32783

  • src/wp-admin/js/customize-controls.js

     
    23312331                                api.HeaderTool.UploadsList,
    23322332                                api.HeaderTool.DefaultsList
    23332333                        ]);
     2334
     2335                        // Fix ajax issue in customizer when previwing different theme which supports header image in customizer
     2336                        $.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
     2337                                if ( 'custom-header-crop' === originalOptions.data.action ){
     2338                                        options.data += '&wp_customize=on&theme=' + api.settings.theme.stylesheet;
     2339                                }
     2340                        });
    23342341                },
    23352342
    23362343                /**