Skip to content

Commit

Permalink
Leaner arg construction
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Jan 5, 2020
1 parent 69066d1 commit f2ce1b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WidgetContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ function check_widget_visibility( $widget_id ) {
continue;
}

$widget_context_args = array();

// Make sure that context settings for this widget are defined
if ( ! isset( $this->context_options[ $widget_id ][ $context_id ] ) ) {
$widget_context_args = array();
} else {
if ( ! empty( $this->context_options[ $widget_id ][ $context_id ] ) ) {
$widget_context_args = $this->context_options[ $widget_id ][ $context_id ];
}

Expand Down

0 comments on commit f2ce1b6

Please sign in to comment.