From 1262c0639efdca1f6ac60100f05f3f905a97c2ff Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Fri, 7 Feb 2025 15:27:23 +0300 Subject: [PATCH] Removed accidental duplication. --- .../plugins/jetpack/modules/sharedaddy/sharing-service.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/plugins/jetpack/modules/sharedaddy/sharing-service.php b/projects/plugins/jetpack/modules/sharedaddy/sharing-service.php index b188810580110..d726ec387adc3 100644 --- a/projects/plugins/jetpack/modules/sharedaddy/sharing-service.php +++ b/projects/plugins/jetpack/modules/sharedaddy/sharing-service.php @@ -965,10 +965,6 @@ function sharing_display( $text = '', $echo = false ) { return $text; } - if ( empty( $post ) ) { - return $text; - } - if ( ( is_preview() || is_admin() ) && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { return $text; }