Skip to content

Commit d27cb59

Browse files
author
Nikola Miljković
authored
Merge pull request #61 from WP-for-Church/dev
Release 2.4.8
2 parents 655ecb1 + 856a1c9 commit d27cb59

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

includes/options.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ function wpfc_init() {
3131
}
3232

3333
register_setting( 'wpfc_plugin_options', 'wpfc_options', $args );
34-
wp_enqueue_media();
34+
35+
if ( isset( $_GET['page'] ) && strpos( $_GET['page'], 'options.php' ) !== false ) {
36+
wp_enqueue_media();
37+
}
3538
}
3639

3740
// Add menu page
@@ -82,8 +85,6 @@ function wpfc_sermon_manager_settings_page_link( $link_text = '' ) {
8285
// Add scripts
8386
function wpfc_sermon_admin_styles() {
8487
wp_enqueue_script( 'media-upload' );
85-
wp_enqueue_script( 'thickbox' );
86-
wp_enqueue_style( 'thickbox' );
8788
wp_enqueue_script( 'jquery-ui-tabs' );
8889
wp_enqueue_script( 'jquery-ui-sortable' );
8990
wp_enqueue_script( 'jquery-ui-draggable' );
@@ -119,7 +120,7 @@ function wpfc_sermon_options_render_form() {
119120
text: 'Use this image'
120121
},
121122
library: {
122-
type: [ 'image' ]
123+
type: ['image']
123124
},
124125
multiple: false
125126
});
@@ -588,7 +589,8 @@ function wpfc_sermon_options_render_form() {
588589
<th scope="row"><?php _e( 'Cover Image', 'sermon-manager' ); ?></th>
589590
<td class="option">
590591
<input id="wpfc_options[itunes_cover_image]" size="45" type="text"
591-
name="wpfc_options[itunes_cover_image]" class="itunes_cover_image_field"
592+
name="wpfc_options[itunes_cover_image]"
593+
class="itunes_cover_image_field"
592594
value="<?php esc_attr_e( $itunes_cover_image ); ?>"/>
593595
<input id="upload_cover_image" type="button" class="button"
594596
value="Upload Image"/>

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.4.7
7+
Stable tag: 2.4.8
88

99
Add audio and video sermons, manage speakers, series, and more to your church website.
1010

@@ -83,6 +83,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
8383
2. Sermon Files
8484

8585
== Changelog ==
86+
= 2.4.8 =
87+
* Fix featured image not working
88+
8689
= 2.4.7 =
8790
* Fix PHP notice in the footer
8891
* Fix slashes in RSS feed

sermons.php

Lines changed: 1 addition & 1 deletion
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.4.7
6+
Version: 2.4.8
77
Author: WP for Church
88
Contributors: wpforchurch, jprummer, jamzth
99
Author URI: http://www.wpforchurch.com/

0 commit comments

Comments
 (0)