Skip to content

Commit 91217a7

Browse files
committed
Fix ACF Theme fields, requirements print
1 parent 13dd6f1 commit 91217a7

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

app/Fields/Theme_Fields.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ public function init() {
1313
$this->add_options_page( 'Theme options' );
1414

1515
$this->has(
16-
$this->build()
16+
$this->build('theme_options', [
17+
'style' => 'seamless',
18+
])
1719
->addTab( 'General' )
1820
->addFields( $this->general_tab() )
1921
->addTab( 'Socials Links' )

requirements.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Just_Theme_Framework_Checker {
6767
private function __construct() {
6868
global $pagenow;
6969
if ( ! is_admin() && 'wp-login.php' !== $pagenow && ! $this->check_requirements() ) {
70-
throw new Exception( 'Your theme requires Just Theme Framework and Titan Framework plugins to be installed and activated.' );
70+
throw new Exception( 'Your theme requires WordPress Theme Framework and Advanced Custom Fields PRO plugins to be installed and activated.' );
7171
}
7272
add_action( 'admin_notices', array( $this, 'display_requirements_admin_notice' ) );
7373
}
@@ -127,7 +127,17 @@ public function display_requirements_admin_notice() {
127127
}
128128

129129
$html = '<div class="error"><h3>Please fix the errors below to use current activated theme:</h3><p>' . implode( '</p><p>', $warnings ) . '</p></div>';
130-
echo wp_kses( $html, array( 'div', 'h3', 'p' ) );
130+
echo wp_kses( $html, array(
131+
'div' => [
132+
'class' => true,
133+
],
134+
'h3' => true,
135+
'p' => true,
136+
'a' => [
137+
'href' => true,
138+
'target' => true,
139+
],
140+
) );
131141
}
132142
}
133143

0 commit comments

Comments
 (0)