diff --git a/.circleci/config.yml b/.circleci/config.yml index 325608105..3cef3a215 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -367,8 +357,6 @@ workflow_definitions: workflows: branch: jobs: - - php74-tests: - <<: *on_pr - php81-tests: <<: *on_pr - frontend-tests: diff --git a/classes/search/block/sql/class-like.php b/classes/search/block/sql/class-like.php index 8598b69a5..8e9d4b029 100644 --- a/classes/search/block/sql/class-like.php +++ b/classes/search/block/sql/class-like.php @@ -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 : '%';