Merge remote-tracking branch 'remotes/origin/fix/xss_security'

This commit is contained in:
nikitasinelnikov
2019-07-11 19:10:41 +03:00
9 changed files with 383 additions and 334 deletions
@@ -150,6 +150,16 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
}
/**
* Fixed ForumWP access to Forums message
*/
function forumwp_fix() {
if ( function_exists( 'FMWP' ) ) {
remove_filter( 'single_template', array( FMWP()->shortcodes(), 'cpt_template' ) );
}
}
/**
* @param $profile_url
* @param $page_id