diff --git a/themes/osi/archive-sc_event.php b/themes/osi/archive-sc_event.php index b362938..403a3ba 100644 --- a/themes/osi/archive-sc_event.php +++ b/themes/osi/archive-sc_event.php @@ -7,6 +7,7 @@ * @package osi */ + if ( ! class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) { add_action('init', function() { diff --git a/themes/osi/functions.php b/themes/osi/functions.php index dca0243..cd748ea 100755 --- a/themes/osi/functions.php +++ b/themes/osi/functions.php @@ -337,7 +337,6 @@ function register_footer_above_sidebar() { /** * Adjust the 'news' (post archive) to show 1 fewer posts on the first page, for symmetry */ - add_action( 'pre_get_posts', 'osi_query_offset', 1 ); function osi_query_offset( &$query ) { if ( ! ( $query->is_blog() || is_main_query() ) || is_admin() ) { diff --git a/themes/osi/inc/sugar-calendar.php b/themes/osi/inc/sugar-calendar.php index e982423..12c098c 100644 --- a/themes/osi/inc/sugar-calendar.php +++ b/themes/osi/inc/sugar-calendar.php @@ -3,6 +3,7 @@ * Sugar Calendar Compatibility File. */ + // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; diff --git a/themes/osi/template-parts/content-press-mentions.php b/themes/osi/template-parts/content-press-mentions.php index 7037246..34514ee 100644 --- a/themes/osi/template-parts/content-press-mentions.php +++ b/themes/osi/template-parts/content-press-mentions.php @@ -15,7 +15,6 @@