Skip to content

Commit

Permalink
Fix php sniffs
Browse files Browse the repository at this point in the history
  • Loading branch information
SohamPatel46 committed Jan 22, 2025
1 parent 8982faf commit 876205e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/webp-uploads/picture-element.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ function webp_uploads_wrap_image_in_picture( string $image, string $context, int
* Adds CSS to make Lightbox trigger BUTTON visible on an Image lightbox when Picture Element is enabled.
*
* @since n.e.x.t
*
*/
function webp_make_lightbox_trigger_button_visible(): void {
if ( has_filter( 'render_block_core/image', 'block_core_image_render_lightbox' ) ) {

Check failure on line 178 in plugins/webp-uploads/picture-element.php

View workflow job for this annotation

GitHub Actions / PHP

Only booleans are allowed in an if condition, int|false given.
Expand All @@ -185,7 +184,6 @@ function webp_make_lightbox_trigger_button_visible(): void {
* Add an action to wp_footer conditionally for lighbox trigger button visibility.
*
* @since n.e.x.t
*
*/
function webp_add_footer_action_for_lightbox_button_visibility(): void {
if ( webp_uploads_is_picture_element_enabled() ) {
Expand Down

0 comments on commit 876205e

Please sign in to comment.