Advertisement
fauzanjeg

JKIT || Fix Polylang Flags Issues

Nov 14th, 2022
1,320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. /**
  2.  * Fix JKIT issue with Polylang Flags
  3.  *
  4.  * @param array $allowed_protocols Allowed Protocols.
  5.  *
  6.  * @return array
  7.  */
  8. function jkit_fix_pll_flag_issues( $allowed_protocols ) {
  9.     $allowed_protocols = array_merge( $allowed_protocols, array( 'data' ) );
  10.  
  11.     return $allowed_protocols;
  12. }
  13. add_filter( 'kses_allowed_protocols', 'jkit_fix_pll_flag_issues' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement