Run the attachment_fields_to_save filter even if we don't get the fields we used to get. props nacin. fixes #22774
git-svn-id: http://core.svn.wordpress.org/trunk@23094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dd4f8b9273
commit
68524f7c6f
|
@ -235,8 +235,8 @@ function edit_post( $post_data = null ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $post_data['attachments'][ $post_ID ] ) )
|
$attachment_data = isset( $post_data['attachments'][ $post_ID ] ) ? $post_data['attachments'][ $post_ID ] : array();
|
||||||
$post_data = apply_filters( 'attachment_fields_to_save', $post_data, $post_data['attachments'][ $post_ID ] );
|
$post_data = apply_filters( 'attachment_fields_to_save', $post_data, $attachment_data );
|
||||||
}
|
}
|
||||||
|
|
||||||
add_meta( $post_ID );
|
add_meta( $post_ID );
|
||||||
|
|
Loading…
Reference in New Issue