mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 14:23:31 +00:00
Merge branch 'trunk' into improve/actor-mode
This commit is contained in:
commit
bc42235c86
1 changed files with 6 additions and 1 deletions
|
@ -123,9 +123,14 @@ class Extra_Fields {
|
||||||
'type' => 'Link',
|
'type' => 'Link',
|
||||||
'name' => \get_the_title( $post ),
|
'name' => \get_the_title( $post ),
|
||||||
'href' => \esc_url( $tags->get_attribute( 'href' ) ),
|
'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;
|
$link_added = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue