Last active
January 30, 2024 17:23
-
-
Save lgladdy/e4cb5816c835b11dd2d8f482b16fdcb6 to your computer and use it in GitHub Desktop.
Revisions
-
lgladdy revised this gist
Jan 17, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ add_action( 'acf/will_remove_unsafe_html', 'print_backtrace_for_unsafe_html_removal', 10, 4 ); add_action( 'acf/removed_unsafe_html', 'print_backtrace_for_unsafe_html_removal', 10, 4 ); function print_backtrace_for_unsafe_html_removal( $function, $selector, $field_object, $post_id ) { echo '<h4 style="color:red">Detected Potentially Unsafe HTML Modification</h4>'; echo '<pre>'; debug_print_backtrace(); echo '</pre>'; -
lgladdy created this gist
Jan 17, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <?php add_action( 'acf/will_remove_unsafe_html', 'print_backtrace_for_unsafe_html_removal', 10, 4 ); add_action( 'acf/removed_unsafe_html', 'print_backtrace_for_unsafe_html_removal', 10, 4 ); function print_backtrace_for_unsafe_html_removal( $function, $selector, $field_object, $post_id ) { echo '<h4 style="color:red">Detected Potentially Unsafe HTML Removal</h4>'; echo '<pre>'; debug_print_backtrace(); echo '</pre>'; }