Replies: 0
1. design3, featured-image.php – first div is before conditional, when is featured not set, then in code is only this orphan open div.
2. bad RETURN, very bad …it’s a bit hard to use, so it’s better not to use too much.
Well, some bad return make my footer disappear on homepage.
-bad used in frontpage.php files:
if ( !comments_open() ) {
return;
}
This return not only prevent add comment button, but stop executing rest code.
Simple demonstration: http://sandbox.onlinephpfunctions.com/code/3e5fb40ad9c8813bdb14fdae197fb7b00a1be903
Probably in other places, similar used causes the loss of some code, such as closing tags.
- This topic was modified 6 minutes ago by infokurs.