WordPress.org

Make WordPress Core

Changeset 52231


Ignore:
Timestamp:
11/22/2021 08:40:26 AM (2 weeks ago)
Author:
SergeyBiryukov
Message:

Editor: Check the correct post type support property for initial_edits.

The property to check should be editor instead of content, as posts don't have a content support property.

This addresses an e2e test failure in Gutenberg.

Follow-up to [52230].

Props talldanwp.
See #53813.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r52230 r52231  
    8787    }
    8888
    89     if ( post_type_supports( $post->post_type, 'content' ) ) {
     89    if ( post_type_supports( $post->post_type, 'editor' ) ) {
    9090        $initial_edits['content'] = $post->post_content;
    9191    }
Note: See TracChangeset for help on using the changeset viewer.