Erik Molenaar (erikmolenaarnl) reported an issue with the {more_replies} variable sometimes not returning a value. Simon (simon) explained that this occurs when there are no more hidden replies, causing the variable to return an empty string.
Erik (erikmolenaarnl) acknowledged the explanation but pointed out that a hyperlink with no link text is still displayed, suggesting this should be fixed. Simon (simon) agreed and plans to address the issue by modifying the default template to avoid rendering a p tag with no content when there are no replies.
I notice the variable {more_replies} sometimes does not return a value.
On most posts it works, but for some, it just returns a blank: Welcome - TechSmith Screencast
Please note I changed the template via filter discourse_replies_html, but this is still the case on the default Discourse templates (by removing the filter). I did not see any errors in my PHP logs.
If there are no more replies, then it just returns an empty string. For this post Radware Captcha Page what I’m seeing is 3 replies on the forum and 3 replies displayed on WordPress, so more_replies is returning an empty string. Are there cases on your site where there are more replies on the forum than are displayed on WordPress and the more_replies text is empty?
I see that I should add a filter to the more_replies text. I can do that right away.