Make WordPress Core

Ticket #63704: 63704.patch

File 63704.patch, 1.0 KB (added by bhaveshdesai, 14 months ago)

Patch to fix typo in get_udims() and mark unused parameter in debug_fclose().

  • wp-admin/includes/deprecated.php

     
    5353}
    5454
    5555/**
    56  * Calculated the new dimensions for a downsampled image.
     56 * Calculates the new dimensions for a downsampled image.
    5757 *
    5858 * @since 2.0.0
    5959 * @deprecated 3.5.0 Use wp_constrain_dimensions()
  • wp-includes/deprecated.php

     
    28902890 */
    28912891function debug_fclose( $fp ) {
    28922892        _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
     2893        // Unused parameter.
    28932894}
    28942895
    28952896/**
     
    48044805                        $value = 'lazy';
    48054806                }
    48064807
    4807                 return str_replace( '<img', '<img loading="' . esc_attr( $value ) . '"', $image );
     4808                return str_replace( '<img ', '<img loading="' . esc_attr( $value ) . '" ', $image );
    48084809        }
    48094810
    48104811        return $image;