diff --git a/includes/class-sm-dates-wp.php b/includes/class-sm-dates-wp.php index 78552e9..ecacd65 100644 --- a/includes/class-sm-dates-wp.php +++ b/includes/class-sm-dates-wp.php @@ -176,7 +176,7 @@ public static function maybe_update_date( $post_ID, $post, $update ) { if ( $update ) { // compare sermon date and if user changed it update sermon date and disable auto update - if ( ! empty( $GLOBALS['sm_original_sermon_date'] ) && ! empty( $_POST['sermon_date'] ) ) { + if ( ! empty( $_POST['sermon_date'] ) ) { $dt = DateTime::createFromFormat( SermonManager::getOption( 'date_format' ) ?: 'm/d/Y', $_POST['sermon_date'] ); $dt_post = DateTime::createFromFormat( 'U', mysql2date( 'U', $post->post_date ) ); diff --git a/includes/shortcodes.php b/includes/shortcodes.php index a2952e0..a87b8b9 100755 --- a/includes/shortcodes.php +++ b/includes/shortcodes.php @@ -880,16 +880,6 @@ function displaySermons( $atts = array() ) { if ( $query->have_posts() ) { ob_start(); ?>
' . __( 'Download Files', 'sermon-manager-for-wordpress' ) . ''; if ( get_wpfc_sermon_meta( 'sermon_audio' ) ) { - $html .= '' . __( 'MP3', 'sermon-manager-for-wordpress' ) . ''; + $html .= '' . __( 'MP3', 'sermon-manager-for-wordpress' ) . ''; } if ( get_wpfc_sermon_meta( 'sermon_notes' ) ) { - $html .= '' . __( 'Notes', 'sermon-manager-for-wordpress' ) . ''; + $html .= '' . __( 'Notes', 'sermon-manager-for-wordpress' ) . ''; } if ( get_wpfc_sermon_meta( 'sermon_bulletin' ) ) { - $html .= '' . __( 'Bulletin', 'sermon-manager-for-wordpress' ) . ''; + $html .= '' . __( 'Bulletin', 'sermon-manager-for-wordpress' ) . ''; } $html .= '
'; $html .= '