mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Merge pull request #1643 from ultimatemember/fix/privacy_policy
Fix the "Privacy Policy" field in the registration form (CU-86cxva4f0)
This commit is contained in:
@@ -12,7 +12,12 @@
|
||||
* @var object $um_content_query
|
||||
* @var array $args
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
// The "Privacy Policy" field content can not contain forms.
|
||||
$allowed_html = UM()->get_allowed_html( 'templates' );
|
||||
unset( $allowed_html['form'] );
|
||||
?>
|
||||
|
||||
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
||||
<div class="um-field um-field-type_terms_conditions" data-key="use_terms_conditions_agreement" style="display:block;padding:0;">
|
||||
@@ -22,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
$um_content_query = get_post( $args['use_gdpr_content_id'] );
|
||||
if ( ! empty( $um_content_query ) && ! is_wp_error( $um_content_query ) ) {
|
||||
$content = apply_filters( 'um_gdpr_policies_page_content', $um_content_query->post_content, $args );
|
||||
echo apply_filters( 'the_content', $content, $um_content_query->ID );
|
||||
echo wp_kses( apply_filters( 'the_content', $content, $um_content_query->ID ), $allowed_html );
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user