Permalink
Browse files

Filter calls '__return_zero' function directly in stead of its name

  • Loading branch information...
1 parent 98205ca commit ddf8742d716e74322d7adc044657463672aef71a @barryceelen barryceelen committed Jul 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 remove-comments-absolute.php
@@ -183,7 +183,7 @@ public function remove_comments() {
// int values
foreach ( array( 'comments_notify', 'default_pingback_flag' ) as $option ) {
- add_filter( 'pre_option_' . $option, __return_zero() );
+ add_filter( 'pre_option_' . $option, '__return_zero' );
//update_option( $option, 1 );
}
// string false

0 comments on commit ddf8742

Please sign in to comment.