• Hrohh

    (@hrohh)


    Hi, in

    comment-attachment-init.php

    #674
    echo ‘</form><form action=”‘. get_home_url() .’/wp-comments-post.php” method=”POST” enctype=”multipart/form-data” id=”attachmentForm” class=”comment-form” novalidate>’;

    should be
    echo ‘</form><form action=”‘. get_site_url() .’/wp-comments-post.php” method=”POST” enctype=”multipart/form-data” id=”attachmentForm” class=”comment-form” novalidate>’;

    We can have WordPress core file in different area ??

Viewing 1 replies (of 1 total)
  • Much appreciated! I had this issue, my WordPress is in its own folder, so after any post it would lead me to 404 page and redirect to wp-comments-post.php. So I literally hardcoded the path to my folder into this line and it worked, but of course your solution is better so I will use your code.

    • This reply was modified 7 years, 11 months ago by 528491.
Viewing 1 replies (of 1 total)
  • The topic ‘bug in with home_url()’ is closed to new replies.