mirror of
https://ghproxy.net/https://github.com/AlxMedia/curver.git
synced 2025-08-28 18:39:44 +08:00
Initial commit
This commit is contained in:
commit
ee50200fe7
353 changed files with 78977 additions and 0 deletions
14
functions/kirki/modules/post-meta/customize-preview.js
Normal file
14
functions/kirki/modules/post-meta/customize-preview.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* global wp, _customizePostPreviewedQueriedObject */
|
||||
jQuery( document ).ready( function() {
|
||||
|
||||
var self = {
|
||||
queriedPost: ( ! _.isUndefined( _customizePostPreviewedQueriedObject ) ) ? _customizePostPreviewedQueriedObject : null
|
||||
};
|
||||
|
||||
// Send the queried post object to the Customizer pane when ready.
|
||||
wp.customize.bind( 'preview-ready', function() {
|
||||
wp.customize.preview.bind( 'active', function() {
|
||||
wp.customize.preview.send( 'queried-post', self.queriedPost );
|
||||
} );
|
||||
} );
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue