Wrong comment-forward

Wrong comment-forward

Postby Yoda2003 » Wed 3. Jul 2013, 21:33

Hi,

i want to use really-static with commentredirect. After posting a comment you will be redirected to your "right" wordpress blog and not to your static-site. I testet this function on your blog.phpwelt.net page, its the same there.

Is there any workaround?
Yoda2003
 

Re: Wrong comment-forward

Postby Yoda2003 » Wed 3. Jul 2013, 21:50

Okay, i found an workaround, probably very ugly :p

In the fake wp-comments-post.php i replaced the two lines:
if(substr($a,0,5)=="Locat")header($a);
else die($a);

with

header('Location: ' . $_SERVER['HTTP_REFERER']);

The Comment will be posted and the user will get back to the comment page.
Yoda2003
 


Return to bugs


cron