Skip to content

Commit

Permalink
Fix PHP notification
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Apr 29, 2019
1 parent 4d64f32 commit cecce29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extensions/blocks/tiled-gallery/tiled-gallery.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName

/**
* Tiled Gallery block. Depends on the Photon module.
*
Expand Down Expand Up @@ -69,7 +70,7 @@ public static function render( $attr, $content ) {

// Because URLs are already "photon", the photon function used short-circuits
// before ssl is added. Detect ssl and add is if necessary.
$is_ssl = false !== strpos( $src_parts[1], 'ssl=1' );
$is_ssl = ! empty( $src_parts[1] ) && false !== strpos( $src_parts[1], 'ssl=1' );

if ( ! $orig_width || ! $orig_height || ! $orig_src ) {
continue;
Expand Down

0 comments on commit cecce29

Please sign in to comment.