Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Merged
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
6 changes: 3 additions & 3 deletions dara/inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ function dara_jetpack_setup() {
/**
* Footer widgets Callback for Infinite Scroll
*/
if ( function_exists( 'jetpack_is_mobile' ) && class_exists( 'Jetpack_User_Agent_Info' ) ) {
if ( function_exists( 'jetpack_is_mobile' ) && class_exists( 'User_Agent_Info' ) ) {
function dara_has_footer_widgets() {

if ( ( Jetpack_User_Agent_Info::is_ipad() && is_active_sidebar( 'sidebar-1' ) ) || ( jetpack_is_mobile( '', true ) && is_active_sidebar( 'sidebar-1' ) ) ) {
if ( ( User_Agent_Info::is_ipad() && is_active_sidebar( 'sidebar-1' ) ) || ( jetpack_is_mobile( '', true ) && is_active_sidebar( 'sidebar-1' ) ) ) {
return true;
}
elseif ( is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) ) {
Expand Down Expand Up @@ -170,4 +170,4 @@ function dara_has_post_thumbnail( $post = null ) {
} else {
return has_post_thumbnail( $post );
}
}
}