Skip to content

Require alternative syntax for control structures in templates #18

@westonruter

Description

@westonruter

It is easy to sneak in logic into templates. I think a handy way to remind yourself not to do this is to always use PHP's alternative syntax for control structures in WP templates: http://www.php.net/manual/en/control-structures.alternative-syntax.php

The use of this syntax lends itself much better to meshing with markup since the tags are much more apparent, and it makes it much easier to indent with markup. Lastly, it is much more readable to see <?php endif; ?> then just <?php } ?>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions