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
- 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)