Skip to content

Commit

Permalink
update(#303): Do not show notice is 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 8de74db commit b6729a8
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 b6729a8

Please sign in to comment.