WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Commenting on future posts (2 posts)

  1. tgiokdi
    Member
    Posted 4 years ago #

    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.

  2. tgiokdi
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic