WP-Comments-Post.PHP Redirect Bug

Automatically receive updates via email...
Enter your email address:
Delivered by FeedBurner

As of writing this post (December 26, 2007) our blog has a problem of showing the post where a users posted his comment. For example, you will post a comment a certain article of this blog. After clicking the submit comment button, the Wordpress system doesn’t redirect the user to the page or post where the user submitted the comment.

If we’ll look at the code of the wp-comments-post.php file we’ll find this:

$location = ( empty($_POST['redirect_to']) ? get_permalink($comment_post_ID) : $_POST['redirect_to'] ) . ‘#comment-’ . $comment_id;
$location = apply_filters(’comment_post_redirect’, $location, $comment);

wp_redirect($location);

This code actually works for the redirection after processing the comment posted. But since it doesn’t redirect so I am thinking that there was a problem with setting the variables for $location or else the problem was at the code of wp_redirect() function.

I am still searching information how to fix but still failed to found. If you know how to fix please help me. Thanks

Rate this:
2.8
Automatically receive updates via email...
Enter your email address:
Delivered by FeedBurner
Save to del.icio.usStumble It!Submit To NetscapeDigg This!
Tags: , , ,
Posted by User ImageSELaplana, 2 January 2007 at Wordpress (No. of Views: 1466)

Comments

3 Responses to “WP-Comments-Post.PHP Redirect Bug”

  1. No MyBlogLog Account
    1
    no imagedeep (Check me out!) Says:

    Deep-Throat total porn gallery xxx deep-throat deep-throat Cool Site sex gallery video porn movies deep-throat

  2. No MyBlogLog Account
    2
    no imageav loo (Check me out!) Says:

    nice articles

  3. No MyBlogLog Account
    3
    no imagePuebla (Check me out!) Says:

    Graste stapiante. The probliemno instante thene code. In mailo sente code latere. Mare egeino esta mailo?
    Regardo Gracia!

Leave a Reply

Search Lyrics by Artists: 0-9 - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z