Skip to content

Commit c28e99b

Browse files
committed
Fix missing information at top-level in jf2feed.
1 parent e5acc0c commit c28e99b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

includes/feed-jf2.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99

1010
require_once dirname( __FILE__ ) . '/class-mf2-feed-entry.php';
1111

12-
$items = array( 'type' => 'feed' );
12+
$items = array(
13+
'type' => 'feed',
14+
'name' => get_bloginfo( 'name' ),
15+
'summary' => get_bloginfo( 'description' ),
16+
'url' => get_self_link(),
17+
);
18+
if ( ! empty( $featured ) ) {
19+
$items['featured'] = $featured;
20+
}
21+
1322
while ( have_posts() ) {
1423
the_post();
1524
$item = new Mf2_Feed_Entry( get_the_ID() );

0 commit comments

Comments
 (0)