mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Set the default parent id to 0, instead of -1, in Tests_Post_Attachments::_make_attachment(). Prevents Out of range value for column 'post_parent' database error without papering over it in core.
See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@26004 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e512f03e75
commit
ecbcfc5a20
@ -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']) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user