Changeset 63066
- Timestamp:
- 08/06/2026 03:39:30 PM (3 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
package.json (modified) (1 diff)
-
src/wp-includes/assets/script-loader-packages.php (modified) (2 diffs)
-
src/wp-includes/assets/script-modules-packages.php (modified) (1 diff)
-
src/wp-includes/blocks/latest-comments.php (modified) (1 diff)
-
src/wp-includes/blocks/post-content.php (modified) (1 diff)
-
src/wp-includes/blocks/post-date.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/package.json
r63026 r63066 8 8 }, 9 9 "gutenberg": { 10 "sha": " f05e40e91c54f29c449b1f33d0db89f5166812d9",10 "sha": "ea285b45692aed6c4f95353671393402f97f0aa7", 11 11 "ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build" 12 12 }, -
trunk/src/wp-includes/assets/script-loader-packages.php
r63026 r63066 453 453 ) 454 454 ), 455 'version' => ' b818e670c0d0297645f2'455 'version' => '51385a88f6721b4a849f' 456 456 ), 457 457 'edit-widgets.js' => array( … … 544 544 ) 545 545 ), 546 'version' => ' e3c5b4a412541c51a59d'546 'version' => '6ef3b2a5f3b9e37bb337' 547 547 ), 548 548 'element.js' => array( -
trunk/src/wp-includes/assets/script-modules-packages.php
r63026 r63066 212 212 ) 213 213 ), 214 'version' => ' b9a1df775b12692a9ffb'214 'version' => '06bbdee380f4cf86dff0' 215 215 ), 216 216 'core-abilities/index.js' => array( -
trunk/src/wp-includes/blocks/latest-comments.php
r62143 r63066 121 121 $list_items_markup .= '</footer>'; 122 122 if ( 'full' === $display_content ) { 123 $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_text( $comment ) ) . '</div>'; 123 $comment_text = post_password_required( $comment->comment_post_ID ) 124 ? __( 'Password protected' ) 125 : get_comment_text( $comment ); 126 $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( $comment_text ) . '</div>'; 124 127 } elseif ( 'excerpt' === $display_content ) { 125 128 $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_excerpt( $comment ) ) . '</div>'; -
trunk/src/wp-includes/blocks/post-content.php
r62143 r63066 57 57 $tag_name = 'div'; 58 58 59 if ( ! empty( $attributes['tagName'] ) && tag_escape( $attributes['tagName'] ) === $attributes['tagName'] ) { 60 $tag_name = $attributes['tagName']; 59 if ( isset( $attributes['tagName'] ) && is_string( $attributes['tagName'] ) ) { 60 /** 61 * The allowed tag names match the options offered in the editor. 62 * 63 * @see packages/block-library/src/post-content/edit.js 64 */ 65 $allowed_tag_names = array( 'div', 'main', 'section', 'article' ); 66 $normalized_tag_name = strtolower( $attributes['tagName'] ); 67 68 if ( in_array( $normalized_tag_name, $allowed_tag_names, true ) ) { 69 $tag_name = $normalized_tag_name; 70 } 61 71 } 62 72 -
trunk/src/wp-includes/blocks/post-date.php
r62584 r63066 82 82 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); 83 83 84 $time_tag = sprintf( '<time datetime="%1$s">%2$s</time>', $unformatted_date, $formatted_date);84 $time_tag = sprintf( '<time datetime="%1$s">%2$s</time>', esc_attr( $unformatted_date ), esc_html( $formatted_date ) ); 85 85 86 86 if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $block->context['postId'] ) ) {
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)