HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/imagify/views/notice-temporary.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

$notices = array();

foreach ( $data as $notice_data ) {
	if ( empty( $notices[ $notice_data['type'] ] ) ) {
		$notices[ $notice_data['type'] ] = array();
	}

	$notices[ $notice_data['type'] ][] = $notice_data;
}

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