Skip to content

Block editor uses view context causing REST API override to fail. #84

@peterwilsoncc

Description

@peterwilsoncc

The WordPress block editor now requests the media endpoint using the view context.

The should_rest_image_downsize method in Tachyon needs to be updated to account for this as Tachyon URLs are now used in the block editor regardless of the tachyon_disable_in_admin filter's return value.

Tachyon will need to update the REST API override to use wp.apiFetch middleware similar to the code used in Photon.

See this gist for a version that works with Tachyon. https://gist.github.com/peterwilsoncc/47481740a6bacfcbde5e063232041808

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