mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Coding Standards: Correct alignment in wp-includes/media.php.
This resolves a WPCS warning:
{{{
Found precision alignment of 1 space.
}}}
Follow-up to [55988].
Props jrf.
See #58831.
git-svn-id: https://develop.svn.wordpress.org/trunk@56283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1709,9 +1709,9 @@ function wp_image_add_srcset_and_sizes( $image, $image_meta, $attachment_id ) {
|
||||
}
|
||||
|
||||
// Bail early if an image has been inserted and later edited.
|
||||
if ( preg_match( '/-e[0-9]{13}/', $image_meta['file'], $img_edit_hash ) &&
|
||||
! str_contains( wp_basename( $image_src ), $img_edit_hash[0] ) ) {
|
||||
|
||||
if ( preg_match( '/-e[0-9]{13}/', $image_meta['file'], $img_edit_hash )
|
||||
&& ! str_contains( wp_basename( $image_src ), $img_edit_hash[0] )
|
||||
) {
|
||||
return $image;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user