Created
February 20, 2013 15:53
-
-
Save anonymous/4996553 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (function_exists('contact_detail')) { | |
$chair = contact_detail('chair'), | |
$address = contact_detail('address') | |
} | |
?> |
What is wrong with line 1?
I can fix the indentations. :)
Its actually indented correctly on my machine, it just copied across weird.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 2 has a comma at the end not a semicolon, line 3 lacks a semi-colon, the statement is thus incomplete, and will cause a fatal syntax error when it reaches the closing brace on line 4.
Also line 1 has both the opening tags and the if statement, line 4 is mis-indented, and line 5s closing php tag isn't aligned with the opening tag.
WP Coding standards would say you're also missing blank space between your function args and your parameters, and inside your if statement