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
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 70Fix: 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 filterlogin_form_middleexpects an array, according to official Wordpress docs.This causes crashes when other plugins are strict typed.
Example conflicted plugin: hCaptcha for Wordpress