Skip to content

Commit

Permalink
Fix PHP spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed Jul 19, 2023
1 parent 9441ccf commit a3014ac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/block-supports/behaviors.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ function gutenberg_render_behaviors_support_lightbox( $block_content, $block ) {
$z->next_tag( 'img' );

if ( isset( $block['attrs']['id'] ) ) {
$img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] );
$img_metadata = wp_get_attachment_metadata( $block['attrs']['id'] );
$img_width = $img_metadata['width'];
$img_height = $img_metadata['height'];
$img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] );
$img_metadata = wp_get_attachment_metadata( $block['attrs']['id'] );
$img_width = $img_metadata['width'];
$img_height = $img_metadata['height'];
} else {
$img_uploaded_src = $z->get_attribute( 'src' );
$img_width = 'none';
$img_height = 'none';
$img_uploaded_src = $z->get_attribute( 'src' );
$img_width = 'none';
$img_height = 'none';
}

$w = new WP_HTML_Tag_Processor( $content );
Expand Down

0 comments on commit a3014ac

Please sign in to comment.