Changeset 54543 for branches/6.0/src/wp-includes/blocks/rss.php
- Timestamp:
- 10/17/2022 04:22:04 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/wp-includes/blocks/rss.php
r53157 r54543 21 21 22 22 if ( is_wp_error( $rss ) ) { 23 return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . $rss->get_error_message() . '</div></div>';23 return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . esc_html( $rss->get_error_message() ) . '</div></div>'; 24 24 } 25 25 … … 49 49 $date = sprintf( 50 50 '<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ', 51 date_i18n( get_option( 'c' ), $date),52 date_i18n( get_option( 'date_format' ), $date)51 esc_attr( date_i18n( get_option( 'c' ), $date ) ), 52 esc_attr( date_i18n( get_option( 'date_format' ), $date ) ) 53 53 ); 54 54 }
Note: See TracChangeset
for help on using the changeset viewer.