Skip to content

Commit 797da79

Browse files
author
Nikola Miljković
authored
Merge pull request #72 from WP-for-Church/dev
Release 2.5.1
2 parents 3ae5a06 + 3e7ad8c commit 797da79

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

includes/template-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function render_wpfc_sorting( $args = array() ) {
168168
continue;
169169
}
170170

171-
if ( ! empty( get_query_var( $filter ) ) && $value = get_query_var( $filter ) ) {
171+
if ( get_query_var( $filter ) !== '' && $value = get_query_var( $filter ) ) {
172172
$hidden .= "<input type='hidden' name='$filter' value='$value'>" . PHP_EOL;
173173
}
174174
}

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: http://wpforchurch.com/
44
Tags: church, sermon, sermons, preaching, podcasting
55
Requires at least: 4.5
66
Tested up to: 4.8.1
7-
Stable tag: 2.5.0
7+
Stable tag: 2.5.1
88
Requires PHP: 5.6
99

1010
Add audio and video sermons, manage speakers, series, and more to your church website.
@@ -84,6 +84,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
8484
2. Sermon Files
8585

8686
== Changelog ==
87+
= 2.5.1 =
88+
* Fix fatal error on older PHP versions
89+
8790
= 2.5.0 =
8891
* Add media functions in the sermon editor
8992
* Add options to filtering shortcode

sermons.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Sermon Manager for WordPress
44
Plugin URI: http://www.wpforchurch.com/products/sermon-manager-for-wordpress/
55
Description: Add audio and video sermons, manage speakers, series, and more. Visit <a href="http://wpforchurch.com" target="_blank">Wordpress for Church</a> for tutorials and support.
6-
Version: 2.5.0
6+
Version: 2.5.1
77
Author: WP for Church
88
Contributors: wpforchurch, jprummer, jamzth
99
Author URI: http://www.wpforchurch.com/
@@ -366,7 +366,7 @@ public static function render_php_version_warning() {
366366
?>
367367
<div class="notice notice-wpfc-php notice-warning is-dismissible" data-notice="render_php_version_warning">
368368
<p>
369-
<?php echo sprintf( "You are running <strong>PHP %s</strong>, but Sermon Manager recommends <strong>PHP %s</strong>. If you encounter issues, update PHP to a recommended version and check if they are still there.", PHP_VERSION, '5.6.0' ); ?>
369+
<?php echo sprintf( "You are running <strong>PHP %s</strong>, but Sermon Manager recommends at least <strong>PHP %s</strong>. If you encounter issues, update PHP to a recommended version and check if they are still there.", PHP_VERSION, '5.6.0' ); ?>
370370
</p>
371371
</div>
372372
<?php

0 commit comments

Comments
 (0)