SELaplana >> Wordpress >>

WP-Comments-Post.PHP Redirect Bug

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

Tweet This
Bookmark and Share
Tweet This!

Comments

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

  1. deep says:

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

  2. av loo says:

    nice articles

  3. Puebla says:

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

  4. marketfishing says:

    Large selection of name brand discount and wholesale fishing tackle, gear, rods and reels.

  5. Brokakeroko says:

    I like your site. Brokakeroko

  6. dilshil says:

    fantastic website its realy a nice artical

  7. its a nice concept i like it

  8. hasham says:

    i don,t think that there is any bug in wordpress

  9. avl abd says:

    wp-comments-post.php has issues.

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

Marketing / SEO Top Blogs TopOfBlogs Internet Blogs - BlogCatalog Blog Directory tracker Technology & Computers - Top Blogs Philippines Top Marketing SEO blogs Marketing & SEO Blogs