Ticket #55165: 55165.diff
File 55165.diff, 646 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/blocks/site-logo.php
14 14 */ 15 15 function render_block_core_site_logo( $attributes ) { 16 16 $adjust_width_height_filter = function ( $image ) use ( $attributes ) { 17 if ( empty( $attributes['width'] ) || empty( $image ) ) {17 if ( empty( $attributes['width'] ) || empty( $image ) || ! $image[1] || ! $image[2] ) { 18 18 return $image; 19 19 } 20 20 $height = (float) $attributes['width'] / ( (float) $image[1] / (float) $image[2] );