Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit e1b4778

Browse files
committed
raw field config fix
Signed-off-by: Kevin Provance <[email protected]>
1 parent 0b9a588 commit e1b4778

File tree

1 file changed

+10
-1
lines changed
  • sample/sections/additional-types

1 file changed

+10
-1
lines changed

sample/sections/additional-types/raw.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88

99
defined( 'ABSPATH' ) || exit;
1010

11+
$sample_html = '';
12+
if ( file_exists( $dir . 'info-html.html' ) ) {
13+
global $wp_filesystem;
14+
15+
$fs = Redux_Filesystem::get_instance();
16+
17+
$sample_html = $wp_filesystem->get_contents( $dir . 'info-html.html' );
18+
}
19+
1120
Redux::set_section(
1221
$opt_name,
1322
array(
@@ -28,7 +37,7 @@
2837
'id' => 'opt-raw_info_5',
2938
'type' => 'raw',
3039
'full_width' => false,
31-
'title' => esc_html__( 'Raw Field <code>full_width</code> False', 'your-textdomain-here' ),
40+
'title' => wp_kses_post( __( 'Raw Field <code>full_width</code> set to <code>false</code>', 'your-textdomain-here' ) ),
3241
'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
3342
'desc' => esc_html__( 'Description', 'your-textdomain-here' ),
3443
'content' => $sample_html,

0 commit comments

Comments
 (0)