From b56186f3d8b0026043334e346e285e0a1a05d8ee Mon Sep 17 00:00:00 2001 From: Nick Cernis Date: Wed, 6 Mar 2024 09:28:32 +0100 Subject: [PATCH] fix: display Genesis download link (#59) Instead of the anchor tag as plaintext, show the clickable link. --- includes/class-genesis-simple-sidebars.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/class-genesis-simple-sidebars.php b/includes/class-genesis-simple-sidebars.php index 4483f8c..e960246 100644 --- a/includes/class-genesis-simple-sidebars.php +++ b/includes/class-genesis-simple-sidebars.php @@ -108,7 +108,15 @@ class Genesis_Simple_Sidebars { // translators: %1$s is WordPress minimum version, %2$s is Genesis minimum version, %3$s is action and %4$s is link. $message = sprintf( __( 'Genesis Simple Sidebars requires WordPress %1$s and Genesis %2$s, or greater. Please %3$s the latest version of Genesis to use this plugin.', 'genesis-simple-sidebars' ), $this->min_wp_version, $this->min_genesis_version, $action, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa' ); - echo '

' . esc_html( $message ) . '

'; + + $allowed_html = array( + 'a' => array( + 'href' => array(), + 'target' => array(), + ), + ); + + echo '

' . wp_kses( $message, $allowed_html ) . '

'; }