Optional parameter bug fixed. Deprecated curly braces syntax fixed. Thanks for reporting both, Matthias :)

This commit is contained in:
azett 2020-09-06 11:12:22 +02:00
parent e65bb9c549
commit 04900d4154
2 changed files with 580 additions and 491 deletions

View File

@ -383,7 +383,10 @@ function theme_def_feed_comments_link($str, $feed, $id) {
return BLOG_BASEURL . "?x=entry:$id;comments:1;feed:{$feed}";
}
function theme_comments_feed_link($feed = 'rss2', $id) {
function theme_comments_feed_link($feed, $id) {
if (empty($feed)) {
$feed = 'rss2';
}
return apply_filters('post_comments_feed_link', '', $feed, $id);
}

File diff suppressed because it is too large Load Diff