[resolved] Comments on scheduled posts no longer available after upgrading to v2.9.2 (5 posts)

  1. thegunninghawk
    Posted 6 years ago #

    Good afternoon.

    Early this week I upgraded WordPress to v2.9.2 and I noticed that I can no longer post a comment on scheduled posts. The reason I do this is because on certain articles I shut down comments to avoid invalidation of the cache and I like to advise the reader when doing so.

    According to http://codex.wordpress.org/Version_2.9.2, wp-comments-post.php was indeed changed. Can anyone help me understand the cause? I tried with both Firefox and IE7 and on both I got the blank page. Before v2.9.2, I remember having the same problem if the article was set as draft, but not as scheduled.

    Thank you.

  2. thegunninghawk
    Posted 6 years ago #

    Just a small note to say I am still experiencing this despite moving to a more powerful server. Not that I expected it to fix the problem but at least we know it's not a machine problem.

    Anyone can try it on his blog please just to confirm?

  3. anpsince83
    Posted 6 years ago #

    We are experiencing the same thing, gunninghawk. We use future posts to display our upcoming events and now we definitely cannot comment on them anymore.

    I did some digging around and it turns out the old behavior (allowing comments on future posts) was considered a bug. Check out this ticket on the WordPress trac. This bug was patched with 2.9.2.

    If you want to revert back to the old behavior, the only way I have figured out is to edit the core in wp-comments-post.php. Change the following line:

    } elseif ( in_array($status->post_status, array('draft', 'future', 'pending') ) ) {


    } elseif ( in_array($status->post_status, array('draft', 'pending') ) ) {

    Now I am not a fan of editing the core, and so what would be ideal is a solution through a hook or a plugin. That is beyond my skillset, so if there are any developers out there that can offer a solution it would be much appreciated.

    Hope this helps!

  4. albertine
    Posted 6 years ago #

    Same problem for me :(

  5. thegunninghawk
    Posted 5 years ago #

    I confirm anpsince83's change does the trick, brilliant mate!

Topic Closed

This topic has been closed to new replies.

About this Topic