Skip to content

Commit

Permalink
Fix array
Browse files Browse the repository at this point in the history
  • Loading branch information
kadencewp committed Dec 3, 2024
1 parent b7553a7 commit 0f8f4b8
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/Uplink/Messages/Expired_Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@ public function get(): string {

$message_content = apply_filters( 'stellarwp/uplink/' . Config::get_hook_prefix() . '/messages/expired_key', $message_content );

$allowed_html = array(
'a' => array(
'href' => array(),
'title' => array(),
'class' => array()
),
'br' => array(),
'em' => array(),
'strong' => array(),
'div' => array(
'class' => array()
),
'p' => array(
'class' => array()
),
'span' => array(
'class' => array()
),
);
$allowed_html = [
'a' => [
'href' => [],
'title' => [],
'class' => []
],
'br' => [],
'em' => [],
'strong' => [],
'div' => [
'class' => []
],
'p' => [
'class' => []
],
'span' => [
'class' => []
],
];

$message = '<div class="notice notice-warning">';
$message .= wp_kses( $message_content, $allowed_html );
Expand Down

0 comments on commit 0f8f4b8

Please sign in to comment.