Skip to content

Fatal error on login form/modal login. #2355

Description

@bgolemba

Issue: Crash on pages with login form or modal login form when other plugins add to this filter with strict typed parameters
File: /templates/login-form.php, line 70
Fix: Add proper typing to apply_filters('login_form_middle') for consistency and compatibility with other plugins.

apply_filters('login_form_middle') pass second attribute as an empty string but filter login_form_middle expects an array, according to official Wordpress docs.
This causes crashes when other plugins are strict typed.
Example conflicted plugin: hCaptcha for Wordpress

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions