From 6d5f3a7a8662f354257076ad69e3be1ef8761c6c Mon Sep 17 00:00:00 2001 From: Harald Kastner Date: Thu, 22 Jun 2017 09:03:52 +0200 Subject: [PATCH] like-box.php breaks WP Let like-box.php throw the error and exit. --- 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..72dd044d 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; + exit($e->errorMessage()); } unset( $where );