WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#53537 new defect (bug)

Default content overwrittern when using a default post format

Reported by: 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 months ago.

Download all attachments as: .zip

Change History (2)

@Chouby
3 months ago

#1 @Chouby
3 months ago

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