Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions themes/osi/archive-sc_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @package osi
*/


if ( ! class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) {
add_action('init',
function() {
Expand Down
1 change: 0 additions & 1 deletion themes/osi/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {
Expand Down
1 change: 1 addition & 0 deletions themes/osi/inc/sugar-calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Sugar Calendar Compatibility File.
*/


// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
1 change: 0 additions & 1 deletion themes/osi/template-parts/content-press-mentions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<div class="entry-content post--content">
<?php
$sugar_cal_post_type_id = 'placeholder';

if ( class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) {
$sugar_cal_post_type_id = sugar_calendar_get_event_post_type_id();
}
Expand Down
1 change: 0 additions & 1 deletion themes/osi/template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<div class="entry-content post--content">
<?php
$sugar_cal_post_type_id = 'placeholder';

if ( class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) {
$sugar_cal_post_type_id = sugar_calendar_get_event_post_type_id();
}
Expand Down