We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_comment
null
1 parent aae9348 commit 6e82432Copy full SHA for 6e82432
tests/phpunit/tests/admin/exportWp.php
@@ -299,11 +299,11 @@ public function test_export_wp_should_not_include_empty_comments_when_filtered()
299
$post_id = self::factory()->post->create( array( 'post_title' => 'Test Post' ) );
300
self::factory()->comment->create_post_comments( $post_id, 3 );
301
302
- // Add filter to make get_comment return false.
+ // Add filter to make get_comment return null.
303
add_action(
304
'export_wp',
305
function () {
306
- add_filter( 'get_comment', '__return_false' );
+ add_filter( 'get_comment', '__return_null' );
307
}
308
);
309
0 commit comments