Skip to content

Commit

Permalink
bug(#303): do not show notice if placement is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
maxinacube committed Dec 29, 2022
1 parent f80e1cb commit 7b7db67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Helper/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ function courier_notices_get_notices( $args = array() ) {
*/
function courier_notices_display_notices( $args = array() ) {
$courier_placement = ( ! empty( $args['placement'] ) ) ? $args['placement'] : '';

if ( empty( $courier_placement ) ) {
return false;
}

$courier_style = ( ! empty( $args['style'] ) ) ? $args['style'] : '';
$courier_options = get_option( 'courier_settings', array() );
$courier_notices_view = new View();
Expand Down

0 comments on commit 7b7db67

Please sign in to comment.