Skip to content

@parse_url in compat.php #73

@apermo

Description

@apermo

$host = @parse_url( home_url() );

phpcs: Silencing errors is strongly discouraged. Use proper error checking instead. Found: @parse_url( home_url(...
phpcs: parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

Suggestion is to use $host = wp_parse_url( home_url() ); instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions