From b1a27a2b2ed7c0b203456c4b4fcab791073bef63 Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Tue, 14 Mar 2017 16:56:26 +0300 Subject: [PATCH] Reverted part of the changes introduced in #6339. --- modules/sharedaddy/sharing-service.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/sharedaddy/sharing-service.php b/modules/sharedaddy/sharing-service.php index f89d8592d568e..a3a3e6d82d02d 100644 --- a/modules/sharedaddy/sharing-service.php +++ b/modules/sharedaddy/sharing-service.php @@ -548,9 +548,6 @@ function sharing_add_footer() { ); wp_localize_script( 'sharing-js', 'sharing_js_options', $sharing_js_options); } -} - -function sharing_add_footer_scripts_inline() { $sharer = new Sharing_Service(); $enabled = $sharer->get_blog_services(); foreach ( array_merge( $enabled['visible'], $enabled['hidden'] ) AS $service ) { @@ -779,9 +776,6 @@ function sharing_display( $text = '', $echo = false ) { // Enqueue scripts for the footer add_action( 'wp_footer', 'sharing_add_footer' ); - - // Print inline scripts that depend on jQuery - add_action( 'wp_footer', 'sharing_add_footer_scripts_inline', 25 ); } }