Home Forums Plugin Support WP User Frontend Pro Comments are turned off after edit

This topic is: resolved

Tagged: ,

This topic contains 5 replies, has 2 voices, and was last updated by  bazelski 6 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2190

    bazelski
    Participant
    Post count: 28

    Post is created with form and the comments are allowed when the post is created. The problem is after updating that post with the edit form, comments are turned off. Can I change that, I need comments enabled for every post

    #2191

    Tareq Hasan
    Keymaster
    Post count: 2831

    I guess some other plugin might be doing this, there's no way this plugin is doing that.

    #2192

    bazelski
    Participant
    Post count: 28

    I will check

    #2221

    bazelski
    Participant
    Post count: 28

    Its from WPFU. I deactivated all other plugins and changed to default theme, its still working the same. “Allow people to post comments on new articles ” in discussion settings is checked

    #2227

    Tareq Hasan
    Keymaster
    Post count: 2831

    Confirming that bug, but thats from WordPress itself. If you don't set a comment_status while updating a post, it automatically closes the comment option. Here's a fix, putting it to your themes functions.php will work.
    [php]
    function wpufe_set_comment_status( $args ) {
    $args[‘comment_status'] = ‘open';

    return $args;
    }

    add_filter( ‘wpuf_update_post_args', ‘wpufe_set_comment_status' );
    [/php]

    #2228

    bazelski
    Participant
    Post count: 28

    Great. Its working good with the fix.  Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Comments are turned off after edit’ is closed to new replies.