Make WordPress Core


Ignore:
Timestamp:
09/08/2026 02:39:56 PM (2 weeks ago)
Author:
desrosj
Message:

General: Bump the pinned hash for Gutenberg to 5a04179.

This updates the pinned commit hash of the Gutenberg repository from 2872d71cde528d82675f14862a1b84e2b8abbaea to 5a0417990a9404cc2562cdd35e3054cb0d3e546e (version 23.7.0).

A full list of changes included in this commit can be found on GitHub: ​https://github.com/WordPress/gutenberg/compare/2872d71cde528d82675f14862a1b84e2b8abbaea..v23.7.0.

Fixes #66065.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/rss.php

    r62739 r63533  
    1616 */
    1717function render_block_core_rss( $attributes ) {
    18         if ( in_array( untrailingslashit( $attributes['feedURL'] ), array( site_url(), home_url() ), true ) ) {
     18        $feed_url = $attributes['feedURL'] ?? null;
     19        if ( ! is_string( $feed_url ) ) {
     20                return '';
     21        }
     22
     23        if ( in_array( untrailingslashit( $feed_url ), array( site_url(), home_url() ), true ) ) {
    1924                return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'Adding an RSS feed to this site’s homepage is not supported, as it could lead to a loop that slows down your site. Try using another block, like the <strong>Latest Posts</strong> block, to list posts from the site.' ) . '</div></div>';
    2025        }
    2126
    22         $rss = fetch_feed( $attributes['feedURL'] );
     27        $rss = fetch_feed( $feed_url );
    2328
    2429        if ( is_wp_error( $rss ) ) {
    … …  
    3439
    3540        $open_in_new_tab = ! empty( $attributes['openInNewTab'] );
    36         $rel             = ! empty( $attributes['rel'] ) ? trim( $attributes['rel'] ) : '';
     41        $rel_attr        = $attributes['rel'] ?? null;
     42        $rel             = is_string( $rel_attr ) && '' !== $rel_attr ? trim( $rel_attr ) : '';
    3743
    3844        $link_attributes = '';
Note: See TracChangeset for help on using the changeset viewer.