form action should use site_url() not get_home_url()
-
Hi, i found that when WordPress is installed in a sub directory this plugin assumes that the form action in displayBeforeForm() is https://domain.com/wp-comments-post.php but in my case it needed to be https://domain.com/wp/wp-comments-post.php this is easily fixed by changing:
action=”‘. get_home_url() .’/wp-comments-post.php”
for:
action=”‘. site_url() .’/wp-comments-post.php”
- The topic ‘form action should use site_url() not get_home_url()’ is closed to new replies.