Merge branch 'trunk' into improve/actor-mode

This commit is contained in:
Matthias Pfefferle 2024-10-15 15:10:02 +02:00 committed by GitHub
commit bc42235c86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,9 +123,14 @@ class Extra_Fields {
'type' => 'Link',
'name' => \get_the_title( $post ),
'href' => \esc_url( $tags->get_attribute( 'href' ) ),
'rel' => explode( ' ', $tags->get_attribute( 'rel' ) ),
);
$rel = $tags->get_attribute( 'rel' );
if ( $rel && \is_string( $rel ) ) {
$attachment['rel'] = \explode( ' ', $rel );
}
$link_added = true;
}
}