Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 9db1cd2

Browse files
committed
CS and docblock fixes
1 parent 9bbe088 commit 9db1cd2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

dynamic-featured-image.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -668,25 +668,24 @@ public function get_image_url( $attachment_id, $size = 'full' ) {
668668
}
669669

670670
/**
671-
* Get image thumbnail url of specific size by image url.
671+
* Get image thumbnail url of specific size by attachment id.
672672
*
673-
* @since 2.0.0
673+
* @since 3.7.0
674674
* @access public
675675
*
676-
* @see get_image_id()
677-
* @see wp_get_attachment_image_src()
676+
* @see wp_get_attachment_image_src()
678677
*
679-
* @param int $attachment_id attachment id of an image.
680-
* @param string $size size of the image to fetch (thumbnail, medium, full).
678+
* @param int $attachment_id attachment id of an image.
679+
* @param string $size size of the image to fetch (thumbnail, medium, full).
681680
*
682681
* @return string|null
683682
*/
684683
public function get_image_thumb_by_attachment_id( $attachment_id, $size = 'thumbnail' ) {
685-
if (empty($attachment_id)) {
684+
if ( empty( $attachment_id ) ) {
686685
return null;
687686
}
688687

689-
$image_thumb = wp_get_attachment_image_src( $attachment_id, $size );
688+
$image_thumb = wp_get_attachment_image_src( $attachment_id, $size );
690689

691690
return empty( $image_thumb ) ? null : $image_thumb[0];
692691
}

0 commit comments

Comments
 (0)