Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokopenko committed Sep 18, 2018
2 parents 5fa3635 + c461b14 commit 1303e4e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions requirements.php
Expand Up @@ -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' ) );
}
Expand Down Expand Up @@ -124,7 +124,17 @@ public function display_requirements_admin_notice() {
$html = '<div class="error"><h3>Please fix the errors below to use current activated theme:</h3><p>'
. implode( '</p><p>', $warnings )
. '</p></div>';
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,
],
) );
}
}

Expand Down

0 comments on commit 1303e4e

Please sign in to comment.