Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed issue #13

  • Loading branch information...
commit 023ce5e07b6566b63b47259779e2fcb17038c03d 1 parent f052f0d
@bueltge authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 remove-comments-absolute.php
View
9 remove-comments-absolute.php
@@ -126,7 +126,7 @@ public function set_comment_status( $posts ) {
* @since 0.0.1
* @param string | boolean $open
* @param string | integer $post_id
- * @return string $posts
+ * @eturn string $posts
*/
public function close_comments( $open, $post_id ) {
@@ -136,7 +136,7 @@ public function close_comments( $open, $post_id ) {
$post = get_post( $post_id );
if ( $post->post_type ) // all post types
- return FALSE; // @see http://codex.wordpress.org/Option_Reference#Discussion
+ return FALSE; // 'closed' don`t work; @see http://codex.wordpress.org/Option_Reference#Discussion
return $open;
}
@@ -165,15 +165,14 @@ public function remove_comments() {
// alternative define an array( 'post', 'page' )
foreach ( get_post_types() as $post_type ) {
// comment status
- //remove_meta_box( 'commentstatusdiv', $post_type, 'normal' );
+ remove_meta_box( 'commentstatusdiv', $post_type, 'normal' );
// remove trackbacks
- /*remove_meta_box( 'trackbacksdiv', $post_type, 'normal' );
+ remove_meta_box( 'trackbacksdiv', $post_type, 'normal' );
// remove all comments/trackbacks from tables
if ( post_type_supports( $post_type, 'comments' ) ) {
remove_post_type_support( $post_type, 'comments' );
remove_post_type_support( $post_type, 'trackbacks' );
}
- */
}
// remove dashboard meta box for recents comments
Please sign in to comment.
Something went wrong with that request. Please try again.