[Plugin: Theme My Login] Parameter 'instance' in function theme_my_login() is ignored
-
The function theme_my_login() is ignoring the ‘instance’ parameter when set, and generating a new one. Changing line 591 in
includes/class-theme-my-login.php
from:} else {
to:
} elseif ( !isset($atts['instance']) || !is_string($atts['instance']) || '' == trim($atts['instance']) ) {
fixes this, allowing for more predictable form ids and making the function behave as told in the documentation.
I hope this helps!
EDIT: Added empty string test.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Theme My Login] Parameter 'instance' in function theme_my_login() is ignored’ is closed to new replies.