Skip to content

Commit

Permalink
Merge pull request #110 from WP-for-Church/dev
Browse files Browse the repository at this point in the history
Hotfix 2.7
  • Loading branch information
Nikola Miljković authored Sep 27, 2017
2 parents 6eeed8b + 198b9ae commit 50d7068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function render_wpfc_sorting( $args = array() ) {
// reset values
$hidden = array();

$action = get_site_url() . '/' . ( SermonManager::getOption( 'common_base_slug' ) ? ( '/' . ( SermonManager::getOption( 'archive_slug' ) ?: 'sermons' ) ) : '' );
$action = get_site_url() . '/' . ( SermonManager::getOption( 'common_base_slug' ) ? ( '/' . ( SermonManager::getOption( 'archive_slug' ) ?: 'sermons' ) ) : '' );

// Filters HTML fields data
$filters = array(
Expand Down Expand Up @@ -185,7 +185,7 @@ function render_wpfc_sorting( $args = array() ) {
<select name="<?php echo $filter['taxonomy'] ?>"
title="<?php echo $filter['title'] ?>"
id="<?php echo $filter['taxonomy'] ?>"
onchange="return this.form.submit()"
onchange="if(this.options[this.selectedIndex].value !== ''){return this.form.submit()}else{window.location = '<?= get_site_url() . '/' . ( SermonManager::getOption( 'archive_slug' ) ?: 'sermons' ) ?>';}"
<?php echo ! empty( $args[ $filter['taxonomy'] ] ) && $args['visibility'] === 'disable' ? 'disabled' : '' ?>>
<option value=""><?php echo $filter['title'] ?></option>
<?php echo wpfc_get_term_dropdown( $filter['taxonomy'], ! empty( $args[ $filter['taxonomy'] ] ) ? $args[ $filter['taxonomy'] ] : '' ); ?>
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
* Fix widget styling
* Fix new sermons not working on some servers
* Fix sermon time not being correct when using "Date Preached"
* Fix filtering/sorting
* Lots of minor bug fixes
* General performance and compatibility fixes

Expand Down

0 comments on commit 50d7068

Please sign in to comment.