Make WordPress Core

Opened 7 weeks ago

Closed 7 weeks ago

Last modified 6 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
7 weeks ago

  • Description modified (diff)

#2 @jasonmader
7 weeks 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
6 weeks ago

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