wpexpertsio / password-protected

Password protect your WordPress site quickly and simply
https://wordpress.org/plugins/password-protected/
69 stars 63 forks source link

Issue using Login Designer #197

Open imCorfitz opened 2 years ago

imCorfitz commented 2 years ago

When uploading a logo using Login designer for the password protected page, it pulls the thumbnail instead of the full logo, so it is cropped and stretched.

imCorfitz commented 2 years ago
Screenshot 2022-06-13 at 12 51 07

Additionally it has a random "undefined" label at the bottom of the screen.

TheMacGuyRocks commented 2 years ago

Can confirm the same fault, although my page is not respecting any choices I make in Login Designer.

imCorfitz commented 2 years ago

This is actually a bug in Login Designer's plugin. I have temporarily fixed this myself by editing the plugin code. plugins > login-designer > includes > class-login-designer-password-protected.php line 144.

Changed $logo = wp_get_attachment_image_url( $logo ); to $logo = wp_get_attachment_image_url( $logo, "large" );.

I have also reported the bug to Login Designer.

Regarding the undefined label at the bottom, it seems to be the result of <?php do_action( 'login_footer' ); ?> not returning a language switcher when disabled. This script is found in plugins > password-protected > theme > password-protected-login.php line 155.