WordPress.org

Plugin Directory

Changeset 590069


Ignore:
Timestamp:
08/25/12 04:16:34 (20 months ago)
Author:
solarissmoke
Message:

Enforce permanent mode for new posts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • disable-comments/trunk/disable-comments.php

    r589654 r590069  
    8888        global $post; 
    8989        // Without a dicussion meta box, comment_status will be set to closed on new/updated posts 
    90         if( in_array( $post->post_type, $this->modified_types ) ) { 
     90        if( !$this->options['permanent'] && in_array( $post->post_type, $this->modified_types ) ) { 
    9191            echo '<input type="hidden" name="comment_status" value="' . $post->comment_status . '" /><input type="hidden" name="ping_status" value="' . $post->ping_status . '" />'; 
    9292        } 
Note: See TracChangeset for help on using the changeset viewer.