[wp-trac] [WordPress Trac] #53537: Default content overwrittern when using a default post format
WordPress Trac
noreply at wordpress.org
Mon Jun 28 09:07:55 UTC 2021
#53537: Default content overwrittern when using a default post format
--------------------------+-----------------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
1. Programmatically define a default content. For example:
{{{#!php
<?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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53537>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list