Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#53537 new defect (bug)

Default content overwrittern when using a default post format

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

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 5 years ago.

Download all attachments as: .zip

Change History (2)

@Chouby
5 years ago

#1 @Chouby
5 years ago

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