From ef2fd49ff4334e434a842a89b8e8c7e6bcf2194c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Miljkovi=C4=87?= Date: Thu, 18 Oct 2018 01:10:21 +0200 Subject: [PATCH] CS fixes, var maybe not initialized, filter name --- includes/class-sm-shortcodes.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/class-sm-shortcodes.php b/includes/class-sm-shortcodes.php index 760d165..bae31da 100755 --- a/includes/class-sm-shortcodes.php +++ b/includes/class-sm-shortcodes.php @@ -87,6 +87,9 @@ public function display_podcasts_list( $atts ) { 'exclude' => null, ); + // Init var. + $services = array(); + // Join default and user options. $args = shortcode_atts( $args, $atts, 'list_podcasts' ); @@ -457,7 +460,7 @@ public function display_images( $atts = array() ) { } // Get images. - $terms = apply_filters( 'sermon-images-get-terms', '', array( + $terms = apply_filters( 'sermon-images-get-terms', '', array( // phpcs:ignore 'taxonomy' => $args['display'], 'term_args' => array( 'order' => $args['order'],