In the node.tpl.php file there is this if statement:
<?php
<?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?>
?>
I imagine this is pretty hard to understand for newer coders and people unfamiliar with operator precedence.
Could we maybe at least add some internal parenthesis to make it more clear, like:
<?php
<?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || (!$page && $title)): ?>
?>
Comments
Comment #1
johnalbinWhen I've tried adding parenthesis where they aren't actually needed, people jump in and say that themers need to learn PHP better. :-\
I'm going to mark this as "won't fix", but I feel sympathy for this complex PHP.
Can't wait for Drupal 8's twig theme system!
Comment #1.0
johnalbinFixing typo