From c461b147745af3596f37ad7f9464cb9bd6ec587d Mon Sep 17 00:00:00 2001 From: Alex Prokopenko Date: Tue, 18 Sep 2018 18:48:56 +0300 Subject: [PATCH] Fix requirements frontend exception and admin print --- requirements.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/requirements.php b/requirements.php index 2e6cc90..9f4870b 100644 --- a/requirements.php +++ b/requirements.php @@ -62,7 +62,7 @@ class Just_Theme_Framework_Checker { private function __construct() { global $pagenow; if ( ! is_admin() && 'wp-login.php' !== $pagenow && ! $this->check_requirements() ) { - throw new Exception( 'Your theme requires Just Theme Framework and Titan Framework plugins to be installed and activated.' ); + throw new Exception( 'Your theme requires WordPress Theme Framework plugin to be installed and activated.' ); } add_action( 'admin_notices', array( $this, 'display_requirements_admin_notice' ) ); } @@ -124,7 +124,17 @@ public function display_requirements_admin_notice() { $html = '

Please fix the errors below to use current activated theme:

' . implode( '

', $warnings ) . '

'; - echo wp_kses( $html, array( 'div', 'h3', 'p' ) ); + echo wp_kses( $html, array( + 'div' => [ + 'class' => true, + ], + 'h3' => true, + 'p' => true, + 'a' => [ + 'href' => true, + 'target' => true, + ], + ) ); } }