Skip to content

Commit

Permalink
Release 2.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola committed Jan 24, 2018
2 parents 1bb177b + 9693e13 commit cacfec8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 26 deletions.
23 changes: 0 additions & 23 deletions includes/admin/sm-admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,3 @@ function sm_get_screen_ids() {

return apply_filters( 'sm_screen_ids', $screen_ids );
}

function sm_debug_get_update_functions() {
$options = array(
'' => '---',
);

foreach ( \SM_Install::$db_updates as $version => $functions ) {
foreach ( $functions as $function ) {
if ( get_option( 'wp_sm_updater_' . $function . '_done', 0 ) ) {
$name = '[AE]';
} else {
$name = '[NE]';
}

$name .= ' ' . $function . ' ';
$name .= "($version)";

$options[ $function ] = $name;
}
}

return $options;
}
30 changes: 30 additions & 0 deletions includes/sm-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,3 +561,33 @@ function get_sermon_series_image_url( $series_id = 0 ) {

return ! empty( $associations[ $series_id ] ) ? wp_get_attachment_image_url( $associations[ $series_id ] ) : null;
}

/**
* Gets dropdown options for a setting in "Debug" tab of Sermon Manager Settings
*
* @return array
*
* @since 2.11.0
*/
function sm_debug_get_update_functions() {
$options = array(
'' => '---',
);

foreach ( \SM_Install::$db_updates as $version => $functions ) {
foreach ( $functions as $function ) {
if ( get_option( 'wp_sm_updater_' . $function . '_done', 0 ) ) {
$name = '[AE]';
} else {
$name = '[NE]';
}

$name .= ' ' . $function . ' ';
$name .= "($version)";

$options[ $function ] = $name;
}
}

return $options;
}
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: church, sermon, sermons, preaching, podcasting, manage, managing, podcasts
Requires at least: 4.5
Tested up to: 4.9.2
Requires PHP: 5.3
Stable tag: 2.11.0
Stable tag: 2.11.1
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -102,6 +102,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
2. Sermon Files

## Changelog ##
### 2.11.1 ###
* Fix: Fatal error on update because of not-loaded function

### 2.11.0 ###
* New: Added a debug tab in settings
* New: Added an option to disable book order in book filter dropdown
Expand Down
4 changes: 2 additions & 2 deletions sermons.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.0
* Version: 2.11.1
* Author: WP for Church
* Author URI: https://www.wpforchurch.com/
* Requires at least: 4.5
Expand Down Expand Up @@ -228,13 +228,13 @@ private function _includes() {
*/
$includes = array(
'includes/class-sm-autoloader.php', // Autoloader
'includes/sm-core-functions.php', // Core Sermon Manager functions
'includes/class-sm-dates.php', // Dates operations
'includes/class-sm-dates-wp.php', // Attach to WP filters
'includes/class-sm-api.php', // API
'includes/class-sm-post-types.php', // Register post type, taxonomies, etc
'includes/class-sm-install.php', // Install and update functions
'includes/sm-deprecated-functions.php', // Deprecated SM functions
'includes/sm-core-functions.php', // Deprecated SM functions
'includes/sm-formatting-functions.php', // Data formatting
'includes/sm-cmb-functions.php', // CMB2 Meta Fields functions
'includes/taxonomy-images/taxonomy-images.php', // Images for Custom Taxonomies
Expand Down

0 comments on commit cacfec8

Please sign in to comment.