Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Feb 3, 2025
1 parent b2229aa commit 3c7be22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/notice-temporary.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
defined( 'ABSPATH' ) || exit;

$notices = array();

Expand All @@ -11,9 +11,9 @@
$notices[ $notice_data['type'] ][] = $notice_data;
}

foreach ( $notices as $type => $type_notices ) {
foreach ( $notices as $type_id => $type_notices ) {
?>
<div class="<?php echo $type; ?> settings-error notice is-dismissible">
<div class="<?php echo $type_id; ?> settings-error notice is-dismissible">
<?php foreach ( $type_notices as $details ) { ?>
<p><strong><?php echo wp_kses( $details['message'], [ 'code' => [] ] ); ?></strong></p>
<?php } ?>
Expand Down

0 comments on commit 3c7be22

Please sign in to comment.