Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Fix pagination not working when the front page is set to a specific page #519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down