Ticket #16090: 16090.diff
File 16090.diff, 484 bytes (added by , 14 years ago) |
---|
-
wp-includes/comment.php
1958 1958 if ( !$days_old ) 1959 1959 return $posts; 1960 1960 1961 if ( 'page' == $posts[0]->post_type ) 1962 return $posts; 1963 1961 1964 if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( $days_old * 24 * 60 * 60 ) ) { 1962 1965 $posts[0]->comment_status = 'closed'; 1963 1966 $posts[0]->ping_status = 'closed';