Make WordPress Core


Ignore:
Timestamp:
08/06/2026 07:42:30 PM (3 months ago)
Author:
desrosj
Message:

Revert 61300 from the 6.0 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/wp-includes/blocks/post-date.php

    r63100 r63101  
    2424        $formatted_date     = get_the_date( empty( $attributes['format'] ) ? '' : $attributes['format'], $post_ID );
    2525        if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) {
    26                 $formatted_date = sprintf( '<a href="%1$s">%2$s</a>', esc_url( get_the_permalink( $post_ID ) ), esc_html( $formatted_date ) );
    27         } else {
    28                 $formatted_date = esc_html( $formatted_date );
     26                $formatted_date = sprintf( '<a href="%1s">%2s</a>', get_the_permalink( $post_ID ), $formatted_date );
    2927        }
    3028
Note: See TracChangeset for help on using the changeset viewer.