Support » Plugin: WP GDPR » Checkbox not displaying – suggested fix

  • Resolved Ben Sibley

    (@bensibley)


    Hello,

    I’m a theme developer here on wordpress.org and had a user approach me about the checkbox in WP GDPR not displaying with one of my themes (Chosen).

    The checkbox does not display because Chosen edits the comment form using the comment_form_field_comment filter. The filter uses the standard priority (10) which is a common practice when modifying the comment form with a theme. However, WP GDPR uses a priority of 1 on this same filter to add the checkbox which causes it to be overridden.

    I’d like to propose updating the hook priority to a value >10 on L36 of controller/controller-comments.php. This will ensure the checkbox is added even if themes edit the comment form as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kim Vanrijckel

    (@vanrijckel)

    Hi Ben,

    First of all, thanks for Your feedback and issue report.
    We will look into it and keep you posted.

    Regards,
    Kim Vanrijckel

    Ben Sibley

    (@bensibley)

    Sounds good, thanks Kim!

    Plugin Author Kim Vanrijckel

    (@vanrijckel)

    Ben,

    I am glad to say that issue is solved and should not appear in our next release.

    Thanks for Your help!

    Ben Sibley

    (@bensibley)

    Sure thing! Thanks for being so responsive.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.