1 | /* global wp, _customizePostPreviewedQueriedObject */ |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
2 | jQuery( document ).ready( function() { |
||
3 | |||
4 | var self = { |
||
5 | queriedPost: ( ! _.isUndefined( _customizePostPreviewedQueriedObject ) ) ? _customizePostPreviewedQueriedObject : null |
||
6 | }; |
||
7 | |||
8 | // Send the queried post object to the Customizer pane when ready. |
||
9 | wp.customize.bind( 'preview-ready', function() { |
||
10 | wp.customize.preview.bind( 'active', function() { |
||
11 | wp.customize.preview.send( 'queried-post', self.queriedPost ); |
||
12 | } ); |
||
13 | } ); |
||
14 | } ); |
||
15 |