From ce7b6ea266d61e6996abe2fc2a5cede002f36dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20=C4=90=C3=ACnh=20Kh=C3=A1nh?= Date: Tue, 18 Feb 2014 15:24:49 +0700 Subject: [PATCH] Update facebook.php Do not check is_front_page, it can cause of the problem paged 2 (3,etc..) not working when the front page is set to a specific page. --- facebook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/facebook.php b/facebook.php index 2d4c96b8..22802a6d 100644 --- a/facebook.php +++ b/facebook.php @@ -488,7 +488,8 @@ public function public_init() { // check for enabled features by page type $enabled_features = array(); $option_name = 'facebook_%s_features'; - if ( is_home() || is_front_page() ) { + // do not check is_front_page, it can cause of the problem paged 2 (3,etc..) not working when the front page is set to a specific page. + if ( is_home() ) { $enabled_features = get_option( sprintf( $option_name, 'home' ) ); } else if ( is_archive() ) { // all archives wrapped in one option