Advertisement
fauzanjeg

JKIT || Fix Security Issues

Feb 15th, 2024
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. /**
  2.  * Fix Security Issues
  3.  *
  4.  * @param array $allowedtags Allowed HTML Tags.
  5.  *
  6.  * @return array
  7.  */
  8. function fix_jkit_allowed_html( $allowedtags ) {
  9.     if ( isset( $allowedtags['script'] ) ) {
  10.         unset( $allowedtags['script'] );
  11.     }
  12.  
  13.     return $allowedtags;
  14. }
  15. add_filter( 'wp_kses_allowed_html', 'fix_jkit_allowed_html', 9999 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement