Skip to content

Commit 2b0f2b7

Browse files
committed
Third try for autodeployment
1 parent f241c9d commit 2b0f2b7

5 files changed

Lines changed: 2 additions & 3 deletions

File tree

themes/osi/archive-sc_event.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @package osi
88
*/
99

10+
1011
if ( ! class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) {
1112
add_action('init',
1213
function() {

themes/osi/functions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ function register_footer_above_sidebar() {
337337
/**
338338
* Adjust the 'news' (post archive) to show 1 fewer posts on the first page, for symmetry
339339
*/
340-
341340
add_action( 'pre_get_posts', 'osi_query_offset', 1 );
342341
function osi_query_offset( &$query ) {
343342
if ( ! ( $query->is_blog() || is_main_query() ) || is_admin() ) {

themes/osi/inc/sugar-calendar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Sugar Calendar Compatibility File.
44
*/
55

6+
67
// Exit if accessed directly
78
if ( ! defined( 'ABSPATH' ) ) {
89
exit;

themes/osi/template-parts/content-press-mentions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<div class="entry-content post--content">
1616
<?php
1717
$sugar_cal_post_type_id = 'placeholder';
18-
1918
if ( class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) {
2019
$sugar_cal_post_type_id = sugar_calendar_get_event_post_type_id();
2120
}

themes/osi/template-parts/content.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<div class="entry-content post--content">
1616
<?php
1717
$sugar_cal_post_type_id = 'placeholder';
18-
1918
if ( class_exists( 'Sugar_Calendar\\Requirements_Check' ) ) {
2019
$sugar_cal_post_type_id = sugar_calendar_get_event_post_type_id();
2120
}

0 commit comments

Comments
 (0)