Skip to content

Photon: ensure compatibility with Block editor #10580

Closed

Description

@jeherve

Steps to reproduce the issue

The issue is described in details here: WordPress/gutenberg#8734

The problem is related to the image_downsize filter, which is normally suppressed (in both Photon and ExactDN) by a call to is_admin(), but Gutenberg doesn't use admin-ajax, it uses the REST API, which doesn't send any signals about being in wp-admin.
[...]
Photon and ExactDN should pre-empt the parsing of image_downsize for the REST API when it is detected that the request is made from the editor.

Activity

  1. added
    Bug
    [Feature] Photon
    [Focus] Blocks
    on Nov 9, 2018
  2. added this to the 6.7.1 milestone on Nov 9, 2018
  3. modified the milestones: 6.7.1, 6.8 on Nov 15, 2018
  4. nosilver4u commented on Jun 2, 2020

    @nosilver4u

    FYI, this now happens again for new uploads in the block editor, because $request['context'] is not set.
    I'm using this:
    if ( is_string( $route ) && false !== strpos( $route, 'wp/v2/media' ) && ! empty( $request['post'] ) && ! empty( $request->get_file_params() ) )...

  5. jeherve commented on Jun 2, 2020

    @jeherve
    MemberAuthor

    @nosilver4u Thanks for the comment. It just happened that #16035 was reported earlier today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bug[Feature] Photon[Focus] Blocks[Pri] High

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions