diff options
Diffstat (limited to 'plugins/jetpack/_inc/facebook-embed.js')
-rw-r--r-- | plugins/jetpack/_inc/facebook-embed.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/plugins/jetpack/_inc/facebook-embed.js b/plugins/jetpack/_inc/facebook-embed.js index d4284acf..580aef68 100644 --- a/plugins/jetpack/_inc/facebook-embed.js +++ b/plugins/jetpack/_inc/facebook-embed.js @@ -32,26 +32,5 @@ jQuery( document.body ).on( 'post-load', facebookEmbed ); } - // Re-render Facebook XFBML when partials are re-rendered in the Customizer. - jQuery( function() { - var hasSelectiveRefresh = ( - 'undefined' !== typeof wp && - wp.customize && - wp.customize.selectiveRefresh && - wp.customize.widgetsPreview && - wp.customize.widgetsPreview.WidgetPartial - ); - if ( ! hasSelectiveRefresh ) { - return; - } - - // Render Facebook widget in rendered partial. - wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) { - if ( placement.container ) { - FB.XFBML.parse( placement.container[0] ); - } - } ); - } ); - facebookEmbed(); })( this ); |