From d32aa67e803131c94815c6e0d52695d8c74ca708 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Jun 2021 19:10:58 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@51166 git-svn-id: http://core.svn.wordpress.org/trunk@50775 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image.php | 7 +++++-- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 5580ee5978..d8d5d5b34b 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -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(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 47335421a8..13d3297aaf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta2-51165'; +$wp_version = '5.8-beta2-51166'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.