Make WordPress Core

Changeset 57694


Ignore:
Timestamp:
02/22/2024 11:54:10 AM (5 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r57687 r57694  
    980980
    981981                $src_file = $icon_dir . '/' . wp_basename( $src );
     982
    982983                list( $width, $height ) = wp_getimagesize( $src_file );
    983                 $ext      = strtolower( substr( $src_file, -4 ) );
     984
     985                $ext = strtolower( substr( $src_file, -4 ) );
     986
    984987                if ( '.svg' === $ext ) {
    985988                    // SVG does not have true dimensions, so this assigns width and height directly.
Note: See TracChangeset for help on using the changeset viewer.