Skip to content

Commit

Permalink
Fix incorrect strpos check
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Apr 17, 2020
1 parent 3f658c2 commit 8fa8e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/blocks/revue/revue.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class="<?php echo esc_attr( $base_class . 'last-name' ); ?>"
endif;

// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
if ( strpos( 'wp-block-jetpack-revue__fallback', $content ) ) {
if ( false !== strpos( $content, 'wp-block-jetpack-revue__fallback' ) ) {
echo $content;
} else {
echo get_deprecated_v1_revue_button( $attributes );
Expand Down

0 comments on commit 8fa8e1c

Please sign in to comment.