Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
bugfix for add_filter :(
Browse files Browse the repository at this point in the history
  • Loading branch information
bueltge committed Jun 7, 2011
1 parent c737b97 commit dcf3d91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions remove-comments-absolute.php
Expand Up @@ -6,11 +6,11 @@
* Domain Path: /languages * Domain Path: /languages
* Description: Deactivate comments functions and remove areas absolutely from the WordPress install * Description: Deactivate comments functions and remove areas absolutely from the WordPress install
* Author: Frank Bültge * Author: Frank Bültge
* Version: 0.0.1 * Version: 0.0.2
* Licence: GPLv2 * Licence: GPLv2
* Author URI: http://bueltge.de * Author URI: http://bueltge.de
* Upgrade Check: none * Upgrade Check: none
* Last Change: 01.06.2011 * Last Change: 07.06.2011
*/ */


if ( ! class_exists( 'Remove_Comments_Absolute' ) ) { if ( ! class_exists( 'Remove_Comments_Absolute' ) ) {
Expand All @@ -32,8 +32,8 @@ public function __construct () {


add_filter( 'the_posts', array( $this, 'set_comment_status' ) ); add_filter( 'the_posts', array( $this, 'set_comment_status' ) );


add_filter( 'comments_open', array( $this, 'close_comments', 10, 2 ) ); add_filter( 'comments_open', array( $this, 'close_comments'), 10, 2 );
add_filter( 'pings_open', array( $this, 'close_comments', 10, 2 ) ); add_filter( 'pings_open', array( $this, 'close_comments'), 10, 2 );


add_action( 'admin_init', array( $this, 'remove_comments' ) ); add_action( 'admin_init', array( $this, 'remove_comments' ) );
add_filter( 'add_menu_classes', array( $this, 'add_menu_classes' ) ); add_filter( 'add_menu_classes', array( $this, 'add_menu_classes' ) );
Expand Down

0 comments on commit dcf3d91

Please sign in to comment.