Changeset 63101 for branches/6.0/src/wp-includes/blocks/post-date.php
- Timestamp:
- 08/06/2026 07:42:30 PM (3 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
r63100 r63101 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="%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 ); 29 27 } 30 28
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)