Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Adagio improvements #717

Merged
merged 8 commits into from
Feb 11, 2016
Merged

Conversation

colin-marshall
Copy link
Collaborator

Credit to @Aetles.

WordPress recommends this: "Omitting the closing PHP tag at the end of a file is preferred."
https://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces
It is better description and this is what Underscores does.
This is a personal preference. It is allowed in javascript (since ES5). The trailing commas reduces risk of copy-paste errors and it makes the diffs looks cleaner (no touching of other lines when adding/removing entries in arrays).
Both content.php and content-none.php are template parts and therefore it is more logical to place them in template-parts folder.

(Underscores does this too, but not default themes like TwentyTwelve.)
olefredrik added a commit that referenced this pull request Feb 11, 2016
@olefredrik olefredrik merged commit 673ad70 into olefredrik:master Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants