mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding Standards: Correct alignment in wp_get_attachment_image_src().
This resolves a WPCS warning:
{{{
Equals sign not aligned with surrounding statements
}}}
so that the output of `composer format` is clean.
Follow-up to [57687].
See #59650.
git-svn-id: https://develop.svn.wordpress.org/trunk@57694 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
34fb70014e
commit
9433cc089a
@ -979,8 +979,11 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon
|
||||
$icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' );
|
||||
|
||||
$src_file = $icon_dir . '/' . wp_basename( $src );
|
||||
|
||||
list( $width, $height ) = wp_getimagesize( $src_file );
|
||||
$ext = strtolower( substr( $src_file, -4 ) );
|
||||
|
||||
$ext = strtolower( substr( $src_file, -4 ) );
|
||||
|
||||
if ( '.svg' === $ext ) {
|
||||
// SVG does not have true dimensions, so this assigns width and height directly.
|
||||
$width = 48;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user