Skip to content

Commit de03d96

Browse files
committed
Code. Merge current fix/dev to the branch.
1 parent a42e8ce commit de03d96

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/Cleantalk/Antispam/EmailEncoder/EmailEncoder.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,18 @@ protected function init()
131131
'widget_block_content',
132132
'render_block',
133133
);
134-
foreach ( $hooks_to_encode as $hook ) {
135-
$this->shortcodes->addActionsBeforeModify($hook, 9);
136-
add_filter($hook, array($this, 'modifyContent'), 10);
137-
}
138134

139135
// Search data to buffer
140136
if ($apbct->settings['data__email_decoder_buffer'] && !apbct_is_ajax() && !apbct_is_rest() && !apbct_is_post() && !is_admin()) {
141137
add_action('wp', 'apbct_buffer__start');
142138
add_action('shutdown', 'apbct_buffer__end', 0);
143139
add_action('shutdown', array($this, 'bufferOutput'), 2);
144140
$this->shortcodes->addActionsAfterModify('shutdown', 3);
141+
} else {
142+
foreach ( $hooks_to_encode as $hook ) {
143+
$this->shortcodes->addActionsBeforeModify($hook, 9);
144+
add_filter($hook, array($this, 'modifyContent'), 10);
145+
}
145146
}
146147

147148
// integration with Business Directory Plugin

lib/Cleantalk/Antispam/EmailEncoder/EmailEncoderHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class EmailEncoderHelper
1414
private $attribute_exclusions_signs = array(
1515
'input' => array('placeholder', 'value'),
1616
'img' => array('alt', 'title'),
17+
'div' => array('data-et-multi-view'),
1718
);
1819

1920
/**

0 commit comments

Comments
 (0)