Skip to content

Commit

Permalink
CS fixes, var maybe not initialized, filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola Miljković committed Oct 17, 2018
1 parent a9d592e commit ef2fd49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/class-sm-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit ef2fd49

Please sign in to comment.