Description:
When adding the post published date using the dynamic inserter, specifying a Custom Format corrupts the data displayed.
Step-by-step reproduction instructions:
- In the site editor, edit a post template
- Insert a dynamic post date into a paragraph using the dynamic inserter
- Choose Custom Format
- Specify a valid date format (e.g. F Y)
- View the post
Please note: Using any predefined format works. And using the dynamic content directly in a paragraph with a custom format also works. The issue is specifically with the dynamic inserter.
Screenshots, screen recording, code snippet
Environment info
- WordPress version: 5.9.3
- Gutenberg Plugin version: -
- Cwicly Plugin version: 1.2.9.5.1
- Cwicly Theme version: 1.0.3