Skip to content

Commit 1303e4e

Browse files
committed
Merge branch 'develop'
2 parents 5fa3635 + c461b14 commit 1303e4e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

requirements.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Just_Theme_Framework_Checker {
6262
private function __construct() {
6363
global $pagenow;
6464
if ( ! is_admin() && 'wp-login.php' !== $pagenow && ! $this->check_requirements() ) {
65-
throw new Exception( 'Your theme requires Just Theme Framework and Titan Framework plugins to be installed and activated.' );
65+
throw new Exception( 'Your theme requires WordPress Theme Framework plugin to be installed and activated.' );
6666
}
6767
add_action( 'admin_notices', array( $this, 'display_requirements_admin_notice' ) );
6868
}
@@ -124,7 +124,17 @@ public function display_requirements_admin_notice() {
124124
$html = '<div class="error"><h3>Please fix the errors below to use current activated theme:</h3><p>'
125125
. implode( '</p><p>', $warnings )
126126
. '</p></div>';
127-
echo wp_kses( $html, array( 'div', 'h3', 'p' ) );
127+
echo wp_kses( $html, array(
128+
'div' => [
129+
'class' => true,
130+
],
131+
'h3' => true,
132+
'p' => true,
133+
'a' => [
134+
'href' => true,
135+
'target' => true,
136+
],
137+
) );
128138
}
129139
}
130140

0 commit comments

Comments
 (0)