From ce5b94d8876475d6cb162dde8fddf1b8408a6d0b Mon Sep 17 00:00:00 2001 From: Rajendra Kumar Bhochalya Date: Thu, 23 Feb 2017 14:24:06 +0530 Subject: [PATCH] remove break statement from catch block --- social-plugins/widgets/like-box.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social-plugins/widgets/like-box.php b/social-plugins/widgets/like-box.php index a5181306..74a6ecdc 100644 --- a/social-plugins/widgets/like-box.php +++ b/social-plugins/widgets/like-box.php @@ -81,7 +81,7 @@ public static function sanitize_facebook_page_url( $url ) { try { $page_info = Facebook_WP_Extend::graph_api_with_app_access_token( '/fql', 'GET', array( 'q' => 'SELECT page_url FROM page WHERE ' . $where ) ); } catch ( WP_FacebookApiException $e ) { - break; + return ''; } unset( $where );