Skip to content

Commit

Permalink
changed function
Browse files Browse the repository at this point in the history
  • Loading branch information
prconcepcion committed Oct 31, 2023
1 parent 5d0a9fd commit 099c515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/block/progress-bar/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function stackable_progress_bar_value_remove_commas( $block_content, $block ) {
return $block_content;
}

if ( ! str_contains( $block_content, ',' ) ) {
if ( stripos( $block_content, ',' ) === false ) {
return $block_content;
}

Expand Down
2 changes: 1 addition & 1 deletion src/block/progress-circle/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function stackable_progress_circle_value_remove_commas( $block_content, $block )
return $block_content;
}

if ( ! str_contains( $block_content, ',' ) ) {
if ( stripos( $block_content, ',' ) === false ) {
return $block_content;
}

Expand Down

0 comments on commit 099c515

Please sign in to comment.