diff --git a/tests/phpunit/tests/post/attachments.php b/tests/phpunit/tests/post/attachments.php index 89854edd3e..f9a20eba70 100644 --- a/tests/phpunit/tests/post/attachments.php +++ b/tests/phpunit/tests/post/attachments.php @@ -16,7 +16,7 @@ class Tests_Post_Attachments extends WP_UnitTestCase { parent::tearDown(); } - function _make_attachment($upload, $parent_post_id=-1) { + function _make_attachment( $upload, $parent_post_id = 0 ) { $type = ''; if ( !empty($upload['type']) ) {