fix featured image for photos
protect against passing non-existent array to foreach
return main template file instead of page tempate
Merge remote-tracking branch 'remotes/upstream/master'
protect against PHP warning in title generation
make template filterable
make comment output filterable
Merge remote-tracking branch 'remotes/upstream/master' into ongoing-fixes
Revert "fix featured image for photos"

This reverts commit 383a9fa05f94a99c5962557174911c6b7e7116e2.
Merge remote-tracking branch 'remotes/upstream/master' into ongoing-fixes
correct spelling of Modify
Merge pull request #461 from christianwach/ongoing-fixes

Ongoing fixes