diff --git a/admin/class-gdpr-admin.php b/admin/class-gdpr-admin.php index 87011773..e1fc8f10 100755 --- a/admin/class-gdpr-admin.php +++ b/admin/class-gdpr-admin.php @@ -236,11 +236,13 @@ public function sanitize_consents( $consents ) { unset( $consents[ $key ] ); continue; } + $output[ $key ] = array( - 'name' => sanitize_text_field( wp_unslash( $props['name'] ) ), - 'policy-page' => isset( $props['policy-page'] ) ? absint( $props['policy-page'] ) : 0, - 'description' => isset( $props['description'] ) ? wp_kses( wp_unslash( $props['description'] ), $this->allowed_html ) : '', - 'registration' => isset( $props['registration'] ) ? wp_kses( wp_unslash( $props['registration'] ), $this->allowed_html ) : '', + 'name' => sanitize_text_field( wp_unslash( $props['name'] ) ), + 'policy-page' => isset( $props['policy-page'] ) ? absint( $props['policy-page'] ) : 0, + 'policy-page-url' => isset( $props['policy-page-url'] ) ? sanitize_text_field( $props['policy-page-url'] ) : '', + 'description' => isset( $props['description'] ) ? wp_kses( wp_unslash( $props['description'] ), $this->allowed_html ) : '', + 'registration' => isset( $props['registration'] ) ? wp_kses( wp_unslash( $props['registration'] ), $this->allowed_html ) : '', ); } return $output; diff --git a/admin/partials/settings.php b/admin/partials/settings.php index 38247013..76cc4263 100755 --- a/admin/partials/settings.php +++ b/admin/partials/settings.php @@ -382,12 +382,15 @@ + + OR + diff --git a/admin/partials/templates/tmpl-consents.php b/admin/partials/templates/tmpl-consents.php index 0985ac56..d8e2d7ef 100644 --- a/admin/partials/templates/tmpl-consents.php +++ b/admin/partials/templates/tmpl-consents.php @@ -15,6 +15,8 @@ + + OR