Changeset 63100 for branches/6.0/src/wp-includes/blocks/post-date.php
- Timestamp:
- 08/06/2026 07:38:52 PM (2 months ago)
- File:
-
- 1 edited
-
branches/6.0/src/wp-includes/blocks/post-date.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/wp-includes/blocks/post-date.php
r53157 r63100 24 24 $formatted_date = get_the_date( empty( $attributes['format'] ) ? '' : $attributes['format'], $post_ID ); 25 25 if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) { 26 $formatted_date = sprintf( '<a href="%1s">%2s</a>', get_the_permalink( $post_ID ), $formatted_date ); 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 ); 27 29 } 28 30
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)