Skip to content

Commit 792d2db

Browse files
committed
Fix: Legal consent links alignment issue
1 parent 2ac0d9d commit 792d2db

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

GDPR/Controllers/LegalConsent.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ public function __construct( $register_hooks = true ) {
9797
private function register_hooks() {
9898
add_action( 'wp_ajax_tutor_gdpr_legal_consents', array( $this, 'handle_legal_consent_ajax' ) );
9999
add_filter( 'tutor_localize_data', array( $this, 'extend_localize_data' ) );
100-
add_filter(
101-
'safe_style_css',
102-
function ( $styles ) {
103-
$styles[] = 'display';
104-
return $styles;
105-
}
106-
);
107100
add_action( 'tutor_login_form_end', array( $this, 'show_consent_field_on_login_form' ) );
108101
}
109102

@@ -783,6 +776,14 @@ private static function render_constructed_label_text( object $consent ): void {
783776
$message = str_replace( '{' . $key . '}', $anchor, $message );
784777
}
785778

779+
add_filter(
780+
'safe_style_css',
781+
function ( $styles ) {
782+
$styles[] = 'display';
783+
return $styles;
784+
}
785+
);
786+
786787
echo wp_kses(
787788
$message,
788789
array(

0 commit comments

Comments
 (0)