Skip to content

Commit 8159efa

Browse files
committed
Get rid of entire if
1 parent 71d44e5 commit 8159efa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mf2-feed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: MF2 Feed
44
* Plugin URI: http://github.com/indieweb/wordpress-mf2-feed/
55
* Description: Adds a Microformats2 JSON feed for every entry
6-
* Version: 2.1.0
6+
* Version: 3.0.0
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT
@@ -124,7 +124,7 @@ public static function add_html_header() {
124124
<link rel="alternate" type="<?php echo esc_attr( feed_content_type( 'mf2' ) ); ?>" href="<?php echo esc_url( get_post_comments_feed_link( null, 'mf2' ) ); ?>" />
125125
<link rel="alternate" type="<?php echo esc_attr( feed_content_type( 'jf2' ) ); ?>" href="<?php echo esc_url( get_post_comments_feed_link( null, 'jf2' ) ); ?>" />
126126
<?php
127-
} elseif ( ) {
127+
} else {
128128
?>
129129
<link rel="alternate" type="<?php echo esc_attr( feed_content_type( 'mf2' ) ); ?>" href="<?php echo esc_url( get_feed_link( 'mf2' ) ); ?>" />
130130
<link rel="alternate" type="<?php echo esc_attr( feed_content_type( 'jf2feed' ) ); ?>" href="<?php echo esc_url( get_feed_link( 'jf2' ) ); ?>" />

0 commit comments

Comments
 (0)