Skip to content

Wrong or misleading descriptive comments in Code (core) #2053

@kixe

Description

@kixe

Please correct wrong and misleading comments

PageArray::filterData()
https://github.com/processwire/processwire/blob/4725ece5f86374a8de73d132e54b0ac4c9ae1f09/wire/core/PageArray.php#L391

WRONG: "Filter out Pages that don't match the selector."
RIGHT: "Filter out pages that match or do not match the selector (destructive)"

PageArray::filter()
https://github.com/processwire/processwire/blob/4725ece5f86374a8de73d132e54b0ac4c9ae1f09/wire/core/PageArray.php#L406

WRONG: "Filter out pages that don't match the selector (destructive)"
RIGHT: "Filter out pages that match the selector (destructive)"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions