Skip to content

Commit ce9e7f3

Browse files
author
moldcraft
committed
added hash to post_content
1 parent 9a49762 commit ce9e7f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

class-fw-extension-page-builder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ public function _action_fw_post_options_update( $post_id, $option_id, $sub_keys
183183
$post_content = trim($post_content);
184184
$post_content = implode("\n", array_filter(explode("\n", $post_content), 'trim')); // remove extra \n
185185
$post_content = normalize_whitespace($post_content);
186+
187+
// In case some shortcode option has been changed but it doesn't have impact on html
188+
$post_content .= "\n\n". '<!-- '. md5($builder_data['json']) .' -->';
186189
} else {
187190
$post_content = '<!-- '. md5($builder_data['json']) .' -->';
188191
}

0 commit comments

Comments
 (0)