diff --git a/wp-includes/post.php b/wp-includes/post.php index e34f0a3266..1efd90b2cd 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3536,7 +3536,7 @@ function wp_delete_attachment( $post_id, $force_delete = false ) { * @param bool $unfiltered Optional, default is false. If true, filters are not run. * @return string|bool Attachment meta field. False on failure. */ -function wp_get_attachment_metadata( $post_id, $unfiltered = false ) { +function wp_get_attachment_metadata( $post_id = 0, $unfiltered = false ) { $post_id = (int) $post_id; if ( !$post =& get_post( $post_id ) ) return false;