WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Commenting on future posts

[Resolved] Commenting on future posts

  • Up until this last update, I was able to comment on future posts. Anyone have any idea how to revert this behavior? I liked being able to make a comment on a post that wasn’t live yet.

Viewing 1 replies (of 1 total)
  • ok, to comment on future posts, open up your wp-comments-post.php and look for this line :

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

    and remove the future part to make it looks like :
    ‘} elseif ( in_array($status->post_status, array(‘draft’, ‘pending’) ) ) {

    and that will re-enable commenting on future posts.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Commenting on future posts’ is closed to new replies.
Skip to toolbar