'; + the_archive_description( '
', '
' ); + break; default: echo apply_filters( 'sm_templates_wrapper_start', '
' ); break; From 84e2b6c710856b78697ffac8eb69a637a8586619 Mon Sep 17 00:00:00 2001 From: maslybs Date: Wed, 5 Dec 2018 14:47:28 +0200 Subject: [PATCH 02/10] remove sidebar ad on settings --- includes/admin/views/html-admin-settings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/admin/views/html-admin-settings.php b/includes/admin/views/html-admin-settings.php index d9ac3e9..710bedb 100644 --- a/includes/admin/views/html-admin-settings.php +++ b/includes/admin/views/html-admin-settings.php @@ -43,6 +43,7 @@
+

Sermon Manager Pro

@@ -80,7 +81,7 @@ class="button-primary">
- +

From 64f4f09717c8d44314ddf9fad1aa9cd16b53a788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Thu, 6 Dec 2018 11:44:21 +0100 Subject: [PATCH 03/10] Dynamically get sermon taxonomies --- includes/sm-core-functions.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/includes/sm-core-functions.php b/includes/sm-core-functions.php index ce2906a..010f240 100644 --- a/includes/sm-core-functions.php +++ b/includes/sm-core-functions.php @@ -859,16 +859,10 @@ function set_service_type( $post_ID ) { /** * Returns registered Sermon Manager's taxonomies. * - * @return array + * @return array Array of taxonomy names. * * @since 2.13.5 */ function sm_get_taxonomies() { - return array( - 'wpfc_preacher', - 'wpfc_sermon_series', - 'wpfc_sermon_topics', - 'wpfc_bible_book', - 'wpfc_service_type', - ); + return get_object_taxonomies( 'wpfc_sermon' ); } From f9e06ec819ac8e5f04266cc6b192f4f2c030cf37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Thu, 6 Dec 2018 12:03:59 +0100 Subject: [PATCH 04/10] Fix terms not having sermon date set + improve speed of saving sermons --- includes/class-sm-dates-wp.php | 73 +++++++++++++++++++++++++--------- readme.txt | 2 + 2 files changed, 57 insertions(+), 18 deletions(-) diff --git a/includes/class-sm-dates-wp.php b/includes/class-sm-dates-wp.php index e8a52a0..b4e0212 100644 --- a/includes/class-sm-dates-wp.php +++ b/includes/class-sm-dates-wp.php @@ -40,9 +40,8 @@ public static function get_the_date( $the_date = '', $d = '', $post = null ) { */ public static function hook() { add_action( 'save_post_wpfc_sermon', array( get_class(), 'maybe_update_date' ), 10, 3 ); - add_action( 'save_post_wpfc_sermon', array( get_class(), 'save_series_date' ), 20, 3 ); - add_action( 'save_post_wpfc_sermon', array( get_class(), 'update_series_date' ), 30 ); - add_action( 'pre_post_update', array( get_class(), 'get_original_series' ) ); + add_action( 'save_post_wpfc_sermon', array( get_class(), 'save_terms_dates' ), 20, 3 ); + add_action( 'pre_post_update', array( get_class(), 'get_original_terms' ) ); add_action( 'pre_post_update', array( get_class(), 'get_original_date' ) ); add_filter( 'cmb2_override_sermon_date_meta_remove', '__return_true' ); add_filter( 'cmb2_override_sermon_date_meta_save', '__return_true' ); @@ -62,11 +61,29 @@ public static function hook() { * * @param int $post_ID Post ID. * - * @since 2.8 + * @since 2.8 + * + * @deprecated 2.15.11 - in favor of SM_Dates_WP::get_original_terms() + * @see SM_Dates_WP::get_original_terms() */ public static function get_original_series( $post_ID ) { - if ( get_post_type( $post_ID ) === 'wpfc_sermon' ) { - $GLOBALS['sm_original_series'] = wp_get_object_terms( $post_ID, 'wpfc_sermon_series' ); + SM_Dates_WP::get_original_terms( $post_ID ); + } + + /** + * Used to save terms dates that were there before sermon update, for later comparison. + * + * @param int $post_ID Post ID. + * + * @since 2.15.11 + */ + public static function get_original_terms( $post_ID ) { + if ( get_post_type( $post_ID ) !== 'wpfc_sermon' ) { + return; + } + + foreach ( sm_get_taxonomies() as $taxonomy ) { + $GLOBALS[ 'sm_original_' . $taxonomy ] = wp_get_object_terms( $post_ID, $taxonomy ); } } @@ -77,25 +94,45 @@ public static function get_original_series( $post_ID ) { * @param WP_Post $post Post object. * @param bool $update Whether this is an existing post being updated or not. * - * @since 2.8 + * @since 2.8 + * + * @deprecated 2.15.11 - in favor of SM_Dates_WP::save_terms_dates() + * @see SM_Dates_WP::save_terms_dates() */ public static function save_series_date( $post_ID, $post, $update ) { + SM_Dates_WP::save_terms_dates( $post_ID, $post, $update ); + } + + /** + * Saves sermon date as term meta for all terms for that sermon, used for ordering. + * + * @param int $post_ID Post ID. + * @param WP_Post $post Post object. + * @param bool $update Whether this is an existing post being updated or not. + * + * @since 2.15.11 + */ + public static function save_terms_dates( $post_ID, $post, $update ) { if ( ! isset( $_POST['tax_input'] ) ) { return; } - $series = $_POST['tax_input']['wpfc_sermon_series']; - $orig_series = $GLOBALS['sm_original_series']; + foreach ( sm_get_taxonomies() as $taxonomy ) { + $terms = isset( $_POST['tax_input'][ $taxonomy ] ) ? $_POST['tax_input'][ $taxonomy ] : array(); + $orig_terms = $GLOBALS[ 'sm_original_' . $taxonomy ]; - if ( $update ) { - foreach ( $orig_series as $term ) { - delete_term_meta( $term->term_id, 'sermon_date' ); + // Easier to delete all meta and re-add those who stayed, than to hunt ones who are deleted. + if ( $update ) { + foreach ( $orig_terms as $term ) { + delete_term_meta( $term->term_id, 'sermon_date' ); + } } - } - if ( ! empty( $series ) ) { - foreach ( $orig_series as $term_id ) { - update_term_meta( $term_id, 'sermon_date_' . $post_ID, get_post_meta( $post_ID, 'sermon_date', true ) ); + // Add all dates. + if ( ! empty( $terms ) ) { + foreach ( $orig_terms as $term ) { + update_term_meta( $term->term_id, 'sermon_date_' . $post_ID, get_post_meta( $post_ID, 'sermon_date', true ) ); + } } } } @@ -104,8 +141,8 @@ public static function save_series_date( $post_ID, $post, $update ) { * Left here for backwards-compatibility reasons. * Does exactly the same as - self::update_term_dates(); * - * @since 2.8 - * @deprecated + * @since 2.8 + * @deprecated 2.13.0 */ public static function update_series_date() { self::update_term_dates(); diff --git a/readme.txt b/readme.txt index 8492743..6aac658 100755 --- a/readme.txt +++ b/readme.txt @@ -124,6 +124,8 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man ## Changelog ## ### 2.15.11 ### * New: Add support for "The7" theme +* Fix: Improve the speed of post saving on websites with many sermons +* Dev: Fix terms not having sermon date set ### 2.15.10 ### * Change: Add "include" and "exclude" parameters to the shortcode From b9b75f7a43ecbc7aa8ff09ad9d0bfb4458362acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Thu, 6 Dec 2018 16:07:37 +0100 Subject: [PATCH 05/10] Fix terms not having their date set --- includes/class-sm-dates-wp.php | 167 ++++++++++++++++++------------- includes/class-sm-install.php | 25 +++-- includes/class-sm-shortcodes.php | 19 +++- includes/sm-update-functions.php | 25 +++++ 4 files changed, 156 insertions(+), 80 deletions(-) diff --git a/includes/class-sm-dates-wp.php b/includes/class-sm-dates-wp.php index b4e0212..9f885f4 100644 --- a/includes/class-sm-dates-wp.php +++ b/includes/class-sm-dates-wp.php @@ -67,7 +67,7 @@ public static function hook() { * @see SM_Dates_WP::get_original_terms() */ public static function get_original_series( $post_ID ) { - SM_Dates_WP::get_original_terms( $post_ID ); + self::get_original_terms( $post_ID ); } /** @@ -82,8 +82,25 @@ public static function get_original_terms( $post_ID ) { return; } + $data = array(); + foreach ( sm_get_taxonomies() as $taxonomy ) { - $GLOBALS[ 'sm_original_' . $taxonomy ] = wp_get_object_terms( $post_ID, $taxonomy ); + // Create an empty taxonomy. + $data[ $taxonomy ] = array(); + + // Get taxonomy terms. + $terms = wp_get_object_terms( $post_ID, $taxonomy ); + + // Fill out the terms, if any. + foreach ( $terms as $term ) { + $data[ $taxonomy ][] = $term->term_id; + } + + // New format. taxonomy => array(...terms). + $GLOBALS['sm_original_terms'] = $data; + + // Back-compat. + $GLOBALS[ 'sm_original_' . $taxonomy ] = $terms; } } @@ -100,7 +117,7 @@ public static function get_original_terms( $post_ID ) { * @see SM_Dates_WP::save_terms_dates() */ public static function save_series_date( $post_ID, $post, $update ) { - SM_Dates_WP::save_terms_dates( $post_ID, $post, $update ); + self::save_terms_dates( $post_ID, $post, $update ); } /** @@ -117,96 +134,110 @@ public static function save_terms_dates( $post_ID, $post, $update ) { return; } + $original_terms = $GLOBALS['sm_original_terms']; + $updated_terms = isset( $_POST['tax_input'] ) ? $_POST['tax_input'] : null; + + $updated_terms += array_fill_keys( sm_get_taxonomies(), array() ); + + if ( ! $updated_terms ) { + return; + } + foreach ( sm_get_taxonomies() as $taxonomy ) { - $terms = isset( $_POST['tax_input'][ $taxonomy ] ) ? $_POST['tax_input'][ $taxonomy ] : array(); - $orig_terms = $GLOBALS[ 'sm_original_' . $taxonomy ]; + $new_terms = $updated_terms[ $taxonomy ]; + $orig_terms = $original_terms[ $taxonomy ]; - // Easier to delete all meta and re-add those who stayed, than to hunt ones who are deleted. - if ( $update ) { - foreach ( $orig_terms as $term ) { - delete_term_meta( $term->term_id, 'sermon_date' ); + // Remove the date of the current sermon from removed terms. + foreach ( $orig_terms as $term ) { + if ( ! in_array( $term, $new_terms ) ) { + delete_term_meta( $term, 'sermon_date_' . $post_ID ); } } - // Add all dates. - if ( ! empty( $terms ) ) { - foreach ( $orig_terms as $term ) { - update_term_meta( $term->term_id, 'sermon_date_' . $post_ID, get_post_meta( $post_ID, 'sermon_date', true ) ); + // Add the date of the current sermon to its terms. + if ( ! empty( $new_terms ) ) { + foreach ( $new_terms as $term ) { + update_term_meta( $term, 'sermon_date_' . $post_ID, get_post_meta( $post_ID, 'sermon_date', true ) ); } } + + // Update the main date. + self::update_term_dates( $taxonomy, $orig_terms + $new_terms ); } } /** - * Left here for backwards-compatibility reasons. - * Does exactly the same as - self::update_term_dates(); + * Loops through taxonomies and terms and sets latest available sermon date. * - * @since 2.8 - * @deprecated 2.13.0 - */ - public static function update_series_date() { - self::update_term_dates(); - } - - /** - * Loops through all terms and sets latest available sermon date. + * @param string $taxonomy The taxonomy to update. Default all. + * @param array|string $terms The term(s) to update. Default all. * * @since 2.13.0 - extended to all terms + * @since 2.15.11 - added parameters */ - public static function update_term_dates() { - foreach ( - get_terms( array( - 'taxonomy' => array( - 'wpfc_sermon_series', - 'wpfc_preacher', - 'wpfc_sermon_topics', - 'wpfc_bible_book', - 'wpfc_service_type', - ), - 'hide_empty' => true, - ) ) as $term - ) { - $term_meta = get_term_meta( $term->term_id ); - - if ( empty( $term_meta['sermon_date'] ) ) { + public static function update_term_dates( $taxonomy = '', $terms = array() ) { + $taxonomies = $taxonomy ? array( $taxonomy ) : sm_get_taxonomies(); + + foreach ( $taxonomies as $taxonomy ) { + $the_terms = ! empty( $terms ) ? (array) $terms : null; + + if ( null === $the_terms ) { + $get_terms = get_terms( + array( + 'taxonomy' => $taxonomy, + 'hide_empty' => false, + ) + ); + + foreach ( $get_terms as $term ) { + $the_terms[] = $term->term_id; + } + } + + // Save the most recent sermon date to the term. + foreach ( $the_terms as $term ) { + $meta = get_term_meta( $term ); $dates = array(); - foreach ( $term_meta as $name => $value ) { - if ( strpos( $name, 'sermon_date_' ) !== false ) { - $dates[] = $value[0]; + + // Gather all of the dates. + foreach ( $meta as $meta_key => $meta_value ) { + if ( substr( $meta_key, 0, 12 ) !== 'sermon_date_' ) { + continue; } - } - if ( ! empty( $dates ) ) { - arsort( $dates ); - $date = $dates[0]; - } else { - $query = new WP_Query( array( - 'post_type' => 'wpfc_sermon', - 'posts_per_page' => 1, - 'meta_key' => 'sermon_date', - 'meta_value_num' => time(), - 'meta_compare' => '<=', - 'orderby' => 'meta_value_num', - 'tax_query' => array( - array( - 'taxonomy' => $term->taxonomy, - 'field' => 'term_id', - 'terms' => $term->term_id, - ), - ), - ) ); - if ( $query->have_posts() ) { - $date = get_post_meta( $query->posts[0]->ID, 'sermon_date', true ); - } else { - $date = 0; + $sermon_date = intval( $meta_value[0] ); + + if ( $sermon_date ) { + $dates[] = $sermon_date; } } - update_term_meta( $term->term_id, 'sermon_date', $date ); + // If we can't find a date, remove the existing. + if ( empty( $dates ) ) { + delete_term_meta( $term, 'sermon_date' ); + continue; + } + + // Sort the dates by newest first (DESC). + rsort( $dates ); + + // Update the date. + update_term_meta( $term, 'sermon_date', $dates[0] ); } } } + /** + * Left here for backwards-compatibility reasons. + * Does exactly the same as - self::update_term_dates(); + * + * @since 2.8 + * @deprecated 2.13.0 + */ + public static function update_series_date() { + self::update_term_dates(); + } + /** * Used to save date that was there before sermon update, for later comparison. * diff --git a/includes/class-sm-install.php b/includes/class-sm-install.php index 2500ebc..4fb795c 100644 --- a/includes/class-sm-install.php +++ b/includes/class-sm-install.php @@ -19,47 +19,50 @@ class SM_Install { * @var array */ public static $db_updates = array( - '2.8' => array( + '2.8' => array( 'sm_update_28_revert_old_dates', 'sm_update_28_convert_dates_to_unix', 'sm_update_28_fill_out_empty_dates', 'sm_update_28_fill_out_series_dates', 'sm_update_28_save_sermon_render_into_post_content', ), - '2.8.4' => array( + '2.8.4' => array( 'sm_update_284_resave_sermons', ), - '2.9' => array( + '2.9' => array( 'sm_update_29_fill_out_series_dates', 'sm_update_29_convert_settings', ), - '2.9.3' => array( + '2.9.3' => array( 'sm_update_293_fix_import_dates', ), - '2.10' => array( + '2.10' => array( 'sm_update_210_update_options', ), - '2.11' => array( + '2.11' => array( 'sm_update_211_render_content', 'sm_update_211_update_date_time', ), - '2.12.3' => array( + '2.12.3' => array( 'sm_update_2123_fix_preacher_permalink', ), - '2.13.0' => array( + '2.13.0' => array( 'sm_update_2130_fill_out_sermon_term_dates', 'sm_update_2130_remove_excerpts', ), - '2.14.0' => array( + '2.14.0' => array( 'sm_update_2140_convert_bible_verse', ), - '2.15.0' => array( + '2.15.0' => array( 'sm_update_2150_audio_file_ids', 'sm_update_2150_audio_duration_and_size', ), - '2.15.2' => array( + '2.15.2' => array( 'sm_update_2152_remove_default_image', ), + '2.15.11' => array( + 'sm_update_21511_update_term_dates', + ), ); /** diff --git a/includes/class-sm-shortcodes.php b/includes/class-sm-shortcodes.php index 0de6f91..10914a5 100755 --- a/includes/class-sm-shortcodes.php +++ b/includes/class-sm-shortcodes.php @@ -403,7 +403,7 @@ public function convert_taxonomy_name( $name, $new_name ) { * * @type string $atts ['display'] The taxonomy, possible options: series, preachers. * @type string $atts ['order'] Sorting order, possible options: ASC, DESC. - * @type string $atts ['ordrerby'] Possible options: id, count, name, slug, term_group, none. + * @type string $atts ['ordrerby'] Possible options: id, count, name, slug, term_group, sermon (or date), none. * @type string $atts ['size'] Possible options: sermon_small, sermon_medium, sermon_wide, thumbnail, medium, * large, full, or any size added with add_image_size(). * @type bool $atts ['hide_title'] Should we hide title, default false. @@ -459,6 +459,23 @@ public function display_images( $atts = array() ) { return 'Error: Invalid "list" parameter.
Possible values are: "series", "preachers", "topics" and "books".
You entered: "' . $args['display'] . '"'; } + // Format args. + $args = array( + 'taxonomy' => $args['display'], + 'term_args' => array( + 'order' => $args['order'], + 'orderby' => $args['orderby'], + ), + ); + + // Order by most recent sermon. + if ( in_array( $args['orderby'], array( 'sermon', 'date' ) ) ) { + $args['term_args']['orderby'] = 'meta_value_num'; + $args['term_args']['meta_key'] = 'sermon_date'; + $args['term_args']['meta_value'] = time(); + $args['term_args']['meta_compare'] = '<'; + } + // Get images. $terms = apply_filters( 'sermon-images-get-terms', '', array( // phpcs:ignore 'taxonomy' => $args['display'], diff --git a/includes/sm-update-functions.php b/includes/sm-update-functions.php index e5118cc..c46d897 100644 --- a/includes/sm-update-functions.php +++ b/includes/sm-update-functions.php @@ -436,3 +436,28 @@ function sm_update_2152_remove_default_image() { // Mark it as done, backup way. update_option( 'wp_sm_updater_' . __FUNCTION__ . '_done', 1 ); } + +/** + * Updates all term dates so we can sort terms by latest sermon. + */ +function sm_update_21511_update_term_dates() { + global $wpdb; + + // All sermons. + $sermons = $wpdb->get_results( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type = %s", 'wpfc_sermon' ) ); + + foreach ( $sermons as $sermon ) { + $id = $sermon->ID; + + $terms = wp_get_object_terms( $id, sm_get_taxonomies() ); + + foreach ( $terms as $term ) { + update_term_meta( $term->term_id, 'sermon_date_' . $id, get_post_meta( $id, 'sermon_date', true ) ); + } + } + + SM_Dates_WP::update_term_dates(); + + // Mark it as done, backup way. + update_option( 'wp_sm_updater_' . __FUNCTION__ . '_done', 1 ); +} From 659dea1b714e0d44389702dabeacbc830abeac25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Thu, 6 Dec 2018 16:22:43 +0100 Subject: [PATCH 06/10] Add date order to series shortcode --- includes/class-sm-shortcodes.php | 10 ++-------- readme.txt | 1 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/includes/class-sm-shortcodes.php b/includes/class-sm-shortcodes.php index 10914a5..f77f482 100755 --- a/includes/class-sm-shortcodes.php +++ b/includes/class-sm-shortcodes.php @@ -469,7 +469,7 @@ public function display_images( $atts = array() ) { ); // Order by most recent sermon. - if ( in_array( $args['orderby'], array( 'sermon', 'date' ) ) ) { + if ( in_array( $args['term_args']['orderby'], array( 'sermon', 'date' ) ) ) { $args['term_args']['orderby'] = 'meta_value_num'; $args['term_args']['meta_key'] = 'sermon_date'; $args['term_args']['meta_value'] = time(); @@ -477,13 +477,7 @@ public function display_images( $atts = array() ) { } // Get images. - $terms = apply_filters( 'sermon-images-get-terms', '', array( // phpcs:ignore - 'taxonomy' => $args['display'], - 'term_args' => array( - 'order' => $args['order'], - 'orderby' => $args['orderby'], - ), - ) ); + $terms = apply_filters( 'sermon-images-get-terms', '', $args ); // phpcs:ignore // $terms will always return an array if ( ! empty( $terms ) ) { diff --git a/readme.txt b/readme.txt index 6aac658..c342666 100755 --- a/readme.txt +++ b/readme.txt @@ -124,6 +124,7 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man ## Changelog ## ### 2.15.11 ### * New: Add support for "The7" theme +* Change: Add "sermon" order to [sermon_images] shortcode. It will order the series by newest sermon * Fix: Improve the speed of post saving on websites with many sermons * Dev: Fix terms not having sermon date set From 5a2ab79cf1d21236808b4a7671f003b417edb74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Fri, 7 Dec 2018 03:16:00 +0100 Subject: [PATCH 07/10] CS fix --- views/wpfc-podcast-feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/wpfc-podcast-feed.php b/views/wpfc-podcast-feed.php index bd3ddf9..3bbefb2 100644 --- a/views/wpfc-podcast-feed.php +++ b/views/wpfc-podcast-feed.php @@ -106,7 +106,7 @@ 'terms' => $term, ), ); - + // Append term name to the feed title, so it looks like "Feed Name - Term Name". $settings['title'] = single_term_title( $settings['title'] . ' - ', false ); } From 087aa65a72ebe779bacfa8e8a08cf89e275c13cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Fri, 7 Dec 2018 11:23:58 +0100 Subject: [PATCH 08/10] CS fixes --- includes/admin/class-sm-admin-settings.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/includes/admin/class-sm-admin-settings.php b/includes/admin/class-sm-admin-settings.php index 9402669..e57ca9e 100644 --- a/includes/admin/class-sm-admin-settings.php +++ b/includes/admin/class-sm-admin-settings.php @@ -167,6 +167,9 @@ public static function save() { * Pass any false value to `sm_clear_feed_transients` filter to skip clearing transients. */ if ( 'podcast' === $current_tab && apply_filters( 'sm_clear_feed_transients', true ) ) { + /* @noinspection SqlNoDataSourceInspection */ + + /* @noinspection SqlResolve */ $wpdb->query( "DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_feed_%') OR `option_name` LIKE ('_transient_timeout_feed_%')" ); } @@ -301,7 +304,7 @@ public static function output_fields( $options, $values = array() ) { class="" placeholder="" size="" - + disabled="disabled" @@ -331,7 +334,7 @@ class="" value="" class="colorpick" placeholder="" - + disabled="disabled" @@ -361,7 +364,7 @@ class="colorpick" class="" placeholder="" - + disabled="disabled" > @@ -387,7 +390,7 @@ class="" class="" - + disabled="disabled" > @@ -424,7 +427,7 @@ class=""
+ disabled="disabled" > @@ -482,7 +485,7 @@ class=""
+ disabled="disabled" > @@ -532,7 +535,7 @@ class="" class="" placeholder="" - + disabled="disabled" @@ -543,7 +546,8 @@ class="" class="button upload-image" title="Choose Default Image"> Upload Default Image Date: Fri, 7 Dec 2018 18:23:06 +0100 Subject: [PATCH 09/10] Update WordPress version --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index c342666..a3b7452 100755 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wpforchurch, nikolam Donate link: http://wpforchurch.com/ Tags: church, sermon, sermons, preaching, podcasting, manage, managing, podcasts, itunes Requires at least: 4.7.0 -Tested up to: 4.9 +Tested up to: 5.0 Requires PHP: 5.3 Stable tag: 2.15.10 License: GPLv2 From d47768bb162e287fe4bc3a6c453feca9084a2a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Fri, 7 Dec 2018 18:26:21 +0100 Subject: [PATCH 10/10] Update versions --- readme.txt | 2 +- sermons.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index a3b7452..6f0d952 100755 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: church, sermon, sermons, preaching, podcasting, manage, managing, podcasts Requires at least: 4.7.0 Tested up to: 5.0 Requires PHP: 5.3 -Stable tag: 2.15.10 +Stable tag: 2.15.11 License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/sermons.php b/sermons.php index 5248566..6ee9f9d 100755 --- a/sermons.php +++ b/sermons.php @@ -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.15.10 + * Version: 2.15.11 * Author: WP for Church * Author URI: https://www.wpforchurch.com/ * Requires at least: 4.5