mirror of
git://develop.git.wordpress.org/
synced 2025-03-21 04:20:01 +01:00
Docs: Update syntax for multi-line comment in wp_generate_attachment_metadata()
per the documentation standards.
Follow-up to [23766], [25968], [35554], [51162]. Props hellofromTonya. Fixes #52603. git-svn-id: https://develop.svn.wordpress.org/trunk@51166 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5bf13be488
commit
82bd4bf5f7
@ -490,8 +490,11 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
|
||||
$support = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) || post_type_supports( 'attachment:audio', 'thumbnail' );
|
||||
}
|
||||
|
||||
// wp_read_video_metadata() and wp_read_audio_metadata() return `false` if the attachment
|
||||
// does not exist in the local filesystem, so make sure to convert the value to an array.
|
||||
/*
|
||||
* wp_read_video_metadata() and wp_read_audio_metadata() return `false`
|
||||
* if the attachment does not exist in the local filesystem,
|
||||
* so make sure to convert the value to an array.
|
||||
*/
|
||||
if ( ! is_array( $metadata ) ) {
|
||||
$metadata = array();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user