felixarntz/wp-site-identity

View on GitHub
assets/dist/js/customize-preview.min.js

Summary

Maintainability
A
0 mins
Test Coverage
/*!
 * WP Site Identity (https://github.com/felixarntz/wp-site-identity)
 * By Felix Arntz (https://leaves-and-love.net)
 * Licensed under GNU General Public License v3 (http://www.gnu.org/licenses/gpl-3.0.html)
 */
!function(e){wp.customize.selectiveRefresh.partialConstructor.WPSiteIdentityPartial=wp.customize.selectiveRefresh.Partial.extend({initialize:function(t,i){i&&i.primarySetting&&i.settings&&1===i.settings.length&&e.liveSettings.includes(i.primarySetting.replace("wpsi_owner_data[","").replace("]",""))&&wp.customize(i.primarySetting,function(e){e.bind(function(e){var t=document.querySelectorAll(i.selector);Array.from(t).forEach(function(t){t.textContent=e})})}),wp.customize.selectiveRefresh.Partial.prototype.initialize.apply(this,[t,i])}})}(wpsiCustomizePreview);