Skip to content

Commit 5ff4602

Browse files
committed
fix: get_option is never null
1 parent 1ec5add commit 5ff4602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/global-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,14 +662,14 @@ public function form_tag_selector( $tag ) {
662662
}
663663

664664
public function form_paragraph_selector() {
665-
$is_apply_body_to_html = get_option( 'stackable_is_apply_body_to_html' ) ?? false;
666665
$selectors = array_merge(
667666
$this->form_tag_selector( 'p' ), // Core text
668667
$this->form_tag_selector( 'li' ), // Core lists
669668
$this->form_tag_selector( 'td' ) // Core table cells
670669
);
671670

672671
// Add 'html' only if is_apply_body_to_html is true
672+
$is_apply_body_to_html = get_option( 'stackable_is_apply_body_to_html' );
673673
if ( $is_apply_body_to_html ) {
674674
$selectors[] = 'html';
675675
}

0 commit comments

Comments
 (0)