WordPress.org

Plugin Directory

Changeset 590475


Ignore:
Timestamp:
08/26/12 10:53:33 (20 months ago)
Author:
solarissmoke
Message:

Permanent mode should apply to pings as well

File:
1 edited

Legend:

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

    r590094 r590475  
    211211        global $wpdb; 
    212212        $bits = implode( ', ', array_pad( array(), count( $types ), '%s' ) ); 
    213         $wpdb->query( $wpdb->prepare( "UPDATE `$wpdb->posts` SET `comment_status` = 'closed' WHERE `post_type` IN ( $bits )", $types ) ); 
     213        $wpdb->query( $wpdb->prepare( "UPDATE `$wpdb->posts` SET `comment_status` = 'closed', ping_status = 'closed' WHERE `post_type` IN ( $bits )", $types ) ); 
    214214    } 
    215215} 
Note: See TracChangeset for help on using the changeset viewer.