Skip to content

Refactor the File_Editor_URL Traits to use a single filter instead of two. #314

Description

@mukeshpanchal27

Followup: #298 (comment)

Currently, the File_Editor_URL Traits codebase unconditionally passes the line parameter, which seems to be an unnecessary operation. There's a need for a more thoughtful approach to change this behaviour. In addition, it appears that the two filters (wp_plugin_check_validation_error_source_file_editor_url_template, wp_plugin_check_validation_error_source_file_path) in use are overly complex, and there might be an opportunity to streamline them into a single filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] EnhancementA suggestion for improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions