Make WordPress Core

Ticket #58831: 58831-no-precision-alignment.patch

File 58831-no-precision-alignment.patch, 884 bytes (added by jrf, 4 months ago)
  • src/wp-includes/media.php

    From 5477da88f0f2e3d8e1fcaaa43bba1aeb9e5bbfcf Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Wed, 19 Jul 2023 22:46:00 +0200
    Subject: [PATCH] CS: no precision alignment
    
    ---
     src/wp-includes/media.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index db5565e385..a2004e36a2 100644
    a b function wp_image_add_srcset_and_sizes( $image, $image_meta, $attachment_id ) { 
    17101710
    17111711        // Bail early if an image has been inserted and later edited.
    17121712        if ( preg_match( '/-e[0-9]{13}/', $image_meta['file'], $img_edit_hash ) &&
    1713                  ! str_contains( wp_basename( $image_src ), $img_edit_hash[0] ) ) {
     1713                ! str_contains( wp_basename( $image_src ), $img_edit_hash[0] ) ) {
    17141714
    17151715                return $image;
    17161716        }