Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#61145 closed defect (bug) (worksforme)

wp:post-date format including html tag

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

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 years ago

  • Description modified (diff)

#2 @jasonmader
2 years ago

  • Resolutioninvalid
  • Status newclosed

alas, this does work,

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

#3 @desrosj
2 years ago

  • Milestone Awaiting Review
  • Resolution invalidworksforme
Note: See TracTickets for help on using tickets.