Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#53537 new defect (bug)

Default content overwrittern when using a default post format

Reported by: chouby's profile Chouby Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

  1. Programmatically define a default content. For example:
    <?php
    add_filter(
            'default_content',
            function() {
                    return 'My default content';
            }
    );
    
  2. Go to Settings > Writing and select a default post format, for example, 'image'.
  3. Create a new post.

I expect the editor content to display "My default content'. It displays a block image instead.

The test must be done ith a theme supporting post formats such as Twenty Twenty One.

Attachments (1)

53537.diff (780 bytes) - added by Chouby 3 years ago.

Download all attachments as: .zip

Change History (2)

@Chouby
3 years ago

#1 @Chouby
3 years ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.