url bug in listing_contact.php can_submit
-
Hi, there is a
url bug in listing_contact.php can_submit
codewp_login_url( site_url( $_SERVER[ 'REQUEST_URI' ] ) )
is incorrect for child sites which are subdirectories because request_uri includes the subdirectory part of the site path, which is also included by site_url() causing a doubling up of this part of the path.The working code would be:
wp_login_url( get_permalink() )
This would need to be fixed in the plugin as filters can’t readily handle the invalid parameters being passed to site_url and wp_login_url
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘url bug in listing_contact.php can_submit’ is closed to new replies.