Skip to content

Commit

Permalink
PLANET-7388: Fix deprecated message on strpos (#1185)
Browse files Browse the repository at this point in the history
Fix deprecated message on strpos

Fix strpos first arg as null
  • Loading branch information
lithrel authored Jan 26, 2024
1 parent 1977a86 commit 0ba7b58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ job-references:
WP_TITLE: Greenpeace Base Development

jobs:
php74-tests:
<<: *php_job
docker:
- image: greenpeaceinternational/p4-unit-tests:php7.4
auth:
<<: *docker_auth
- image: cimg/mysql:5.7
auth:
<<: *docker_auth

php81-tests:
<<: *php_job
docker:
Expand Down Expand Up @@ -367,8 +357,6 @@ workflow_definitions:
workflows:
branch:
jobs:
- php74-tests:
<<: *on_pr
- php81-tests:
<<: *on_pr
- frontend-tests:
Expand Down
2 changes: 1 addition & 1 deletion classes/search/block/sql/class-like.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __toString(): string {

if ( 'core' === $block_ns ) {
$block = '%';
} elseif ( 0 === strpos( $block_name, 'core/' ) ) {
} elseif ( $block_name && 0 === strpos( $block_name, 'core/' ) ) {
$block = explode( '/', $block_name )[1];
} else {
$name = $block_name ? $block_name : '%';
Expand Down

0 comments on commit 0ba7b58

Please sign in to comment.