diff --git a/includes/options.php b/includes/options.php index b862c49..17eeec7 100755 --- a/includes/options.php +++ b/includes/options.php @@ -31,7 +31,10 @@ function wpfc_init() { } register_setting( 'wpfc_plugin_options', 'wpfc_options', $args ); - wp_enqueue_media(); + + if ( isset( $_GET['page'] ) && strpos( $_GET['page'], 'options.php' ) !== false ) { + wp_enqueue_media(); + } } // Add menu page @@ -82,8 +85,6 @@ function wpfc_sermon_manager_settings_page_link( $link_text = '' ) { // Add scripts function wpfc_sermon_admin_styles() { wp_enqueue_script( 'media-upload' ); - wp_enqueue_script( 'thickbox' ); - wp_enqueue_style( 'thickbox' ); wp_enqueue_script( 'jquery-ui-tabs' ); wp_enqueue_script( 'jquery-ui-sortable' ); wp_enqueue_script( 'jquery-ui-draggable' ); @@ -119,7 +120,7 @@ function wpfc_sermon_options_render_form() { text: 'Use this image' }, library: { - type: [ 'image' ] + type: ['image'] }, multiple: false }); @@ -588,7 +589,8 @@ function wpfc_sermon_options_render_form() { diff --git a/readme.txt b/readme.txt index bcf5550..8d342a5 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://wpforchurch.com/ Tags: church, sermon, sermons, preaching, podcasting Requires at least: 4.5 Tested up to: 4.8.1 -Stable tag: 2.4.7 +Stable tag: 2.4.8 Add audio and video sermons, manage speakers, series, and more to your church website. @@ -83,6 +83,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man 2. Sermon Files == Changelog == += 2.4.8 = +* Fix featured image not working + = 2.4.7 = * Fix PHP notice in the footer * Fix slashes in RSS feed diff --git a/sermons.php b/sermons.php index 71d6f40..3a5fe7b 100755 --- a/sermons.php +++ b/sermons.php @@ -3,7 +3,7 @@ Plugin Name: Sermon Manager for WordPress Plugin URI: http://www.wpforchurch.com/products/sermon-manager-for-wordpress/ Description: Add audio and video sermons, manage speakers, series, and more. Visit Wordpress for Church for tutorials and support. -Version: 2.4.7 +Version: 2.4.8 Author: WP for Church Contributors: wpforchurch, jprummer, jamzth Author URI: http://www.wpforchurch.com/