Skip to content

Infinite Scroll - Minor warning when search query is empty #2075

@dboune

Description

@dboune

The following warning occurs when viewing a search page with no query.

Warning: strpos(): Empty needle in plugins/jetpack/modules/infinite-scroll/infinity.php on line 452

        if ( false !== strpos( $post->post_title, current( $search_terms ) ) ) {
            return true;
        }
        return false;

With an empty s query var, $search_terms is an array with one empty element.

Metadata

Metadata

Assignees

Labels

BugWhen a feature is broken and / or not performing as intended[Feature] Infinite Scroll

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions