mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Docs: Replace multiple single line comments with multi-line comments.
This changeset updates various comments as per WordPress PHP Inline Documentation Standards. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments. Follow-up to [56174], [56175], [56176], [56177], [56178], [56179], [56180], [56191]. Props costdev, audrasjb. See #58459. git-svn-id: https://develop.svn.wordpress.org/trunk@56192 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6614,8 +6614,10 @@ function wp_get_attachment_caption( $post_id = 0 ) {
|
||||
function wp_get_attachment_thumb_url( $post_id = 0 ) {
|
||||
$post_id = (int) $post_id;
|
||||
|
||||
// This uses image_downsize() which also looks for the (very) old format $image_meta['thumb']
|
||||
// when the newer format $image_meta['sizes']['thumbnail'] doesn't exist.
|
||||
/*
|
||||
* This uses image_downsize() which also looks for the (very) old format $image_meta['thumb']
|
||||
* when the newer format $image_meta['sizes']['thumbnail'] doesn't exist.
|
||||
*/
|
||||
$thumbnail_url = wp_get_attachment_image_url( $post_id, 'thumbnail' );
|
||||
|
||||
if ( empty( $thumbnail_url ) ) {
|
||||
|
||||
Reference in New Issue
Block a user