From 1ccfb939a8c9446157301e7e2ed17c1579063ea8 Mon Sep 17 00:00:00 2001 From: Nikola Date: Thu, 21 Sep 2017 12:03:29 +0200 Subject: [PATCH 1/3] fix fatal error on PHP <5.5 --- includes/class-sm-dates-wp.php | 2 +- readme.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/class-sm-dates-wp.php b/includes/class-sm-dates-wp.php index e31e338..572050d 100644 --- a/includes/class-sm-dates-wp.php +++ b/includes/class-sm-dates-wp.php @@ -39,6 +39,6 @@ public static function hook() { return; } - add_filter( 'get_the_date', array( self::class, 'get_the_date' ), 10, 3 ); + add_filter( 'get_the_date', array( get_class( new SM_Dates_WP ), 'get_the_date' ), 10, 3 ); } } \ No newline at end of file diff --git a/readme.txt b/readme.txt index a2b7ef3..f898af2 100755 --- a/readme.txt +++ b/readme.txt @@ -89,6 +89,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man 2. Sermon Files == Changelog == += 2.6.1 = +* Fix fatal error on old PHP versions + = 2.6 = * Fix PHP warning regarding sorting * Fix Taxonomy images not working on initial plugin install (and sometimes for existing ones as well - needs plugin re-activation) From 883511a8ed06d64d8ee597c0582cb42882dc299e Mon Sep 17 00:00:00 2001 From: Nikola Date: Thu, 21 Sep 2017 12:06:17 +0200 Subject: [PATCH 2/3] Rewrite preacher slug on settings save --- includes/options.php | 3 ++- readme.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/options.php b/includes/options.php index 5c88b98..b5271f5 100755 --- a/includes/options.php +++ b/includes/options.php @@ -26,7 +26,8 @@ static function wpfc_validate_options( $input ) { $input['archive_title'] = wp_filter_nohtml_kses( $input['archive_title'] ); // Sanitize textbox input (strip html tags, and escape characters) $input['podcasts_per_page'] = intval( $input['podcasts_per_page'] ); - if ( SermonManager::getOption( 'archive_slug' ) != $input['archive_slug'] ) { + if ( SermonManager::getOption( 'archive_slug' ) != $input['archive_slug'] || + SermonManager::getOption( 'preacher_label' ) != $input['preacher_label'] ) { update_option( 'sm_flush_rewrite_rules', '1' ); } diff --git a/readme.txt b/readme.txt index f898af2..77b5506 100755 --- a/readme.txt +++ b/readme.txt @@ -91,6 +91,7 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man == Changelog == = 2.6.1 = * Fix fatal error on old PHP versions +* Fix custom preacher slug not working = 2.6 = * Fix PHP warning regarding sorting From 6556516a63c3f07740ad551cfc980566531287be Mon Sep 17 00:00:00 2001 From: Nikola Date: Thu, 21 Sep 2017 12:12:31 +0200 Subject: [PATCH 3/3] Update version --- readme.txt | 2 +- sermons.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 77b5506..de7c5a6 100755 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: church, sermon, sermons, preaching, podcasting, manage, managing, podcasts Requires at least: 4.5 Tested up to: 4.8.2 Requires PHP: 5.6 -Stable tag: 2.6 +Stable tag: 2.6.1 License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/sermons.php b/sermons.php index 5e3fd57..b72afa4 100755 --- a/sermons.php +++ b/sermons.php @@ -3,7 +3,7 @@ * Plugin Name: Sermon Manager for WordPress * Plugin URI: https://www.wpforchurch.com/products/sermon-manager-for-wordpress/ * Description: Add audio and video sermons, manage speakers, series, and more. - * Version: 2.6 + * Version: 2.6.1 * Author: WP for Church * Author URI: https://www.wpforchurch.com/ * Requires at least: 4.5