Skip to content

Update Hyde::asset() method to consider protocol relative URLs // to be remote #1788

@emmadesilva

Description

@emmadesilva

We may also want to check we use this across the board.

The featured image class uses the following: (Maybe we move it to the Hyperlinks class?)

public static function isRemote(string $source): bool
{
    return str_starts_with($source, 'http') || str_starts_with($source, '//');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions