Make WordPress Core

Opened 2 months ago

Closed 2 months ago

Last modified 8 weeks ago

#61145 closed defect (bug) (worksforme)

wp:post-date format including html tag

Reported by: jasonmader's profile jasonmader Owned by:
Milestone: Priority: normal
Severity: minor Version: 6.5
Component: Date/Time Keywords:
Focuses: Cc:

Description (last modified by dmsnell)

<!-- wp:post-date {"format":"d <span>M</span>"} -->

results in,

<time datetime="2024-05-04T11:38:30-04:00">
    04 <30pam5>May</30pam5>
</time>

escaping \s and \n, which seems like it should work, only results in,

<time datetime="2024-05-04T11:38:30-04:00">May 4, 2024</time>

Change History (3)

#1 @dmsnell
2 months ago

  • Description modified (diff)

#2 @jasonmader
2 months ago

  • Resolution set to invalid
  • Status changed from new to closed

alas, this does work,

<?php
{"format":"d <\\s\\p\\a\\n>M</\\s\\p\\a\\n>"}

#3 @desrosj
8 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution changed from invalid to worksforme
Note: See TracTickets for help on using tickets.