[wp-trac] [WordPress Trac] #61145: wp:post-date format including html tag

WordPress Trac noreply at wordpress.org
Sat May 4 14:53:02 UTC 2024


#61145: wp:post-date format including html tag
--------------------------+------------------------------
 Reporter:  jasonmader    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  6.5
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by dmsnell:

Old description:

> <!-- 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>

New description:

 {{{
 <!-- 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>
 }}}

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61145#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list