Skip to content

Commit 74b9127

Browse files
committed
Tests: Fix incorrect variable name from [38330].
See #37630. git-svn-id: https://develop.svn.wordpress.org/trunk@38331 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b93e073 commit 74b9127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function create_object( $args, $legacy_parent = 0, $legacy_args = array() ) {
2525

2626
$r = array_merge( array(
2727
'file' => '',
28-
'parent' => 0,
28+
'post_parent' => 0,
2929
), $args );
3030

3131
return wp_insert_attachment( $r, $r['file'], $r['post_parent'] );

0 commit comments

Comments
 (0)