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 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Editor | Keywords: | has-patch |
Focuses: | Cc: |
Description
- Programmatically define a default content. For example:
<?php add_filter( 'default_content', function() { return 'My default content'; } );
- Go to Settings > Writing and select a default post format, for example, 'image'.
- 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)
Note: See
TracTickets for help on using
tickets.