[wp-trac] [WordPress Trac] #41749: add comma in last array value in (wp-login.php , wp-signup.php)
WordPress Trac
noreply at wordpress.org
Tue Aug 29 09:57:10 UTC 2017
#41749: add comma in last array value in (wp-login.php ,wp-signup.php)
-----------------------------+------------------------
Reporter: umangvaghela123 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: duplicate
Keywords: has-patch | Focuses:
-----------------------------+------------------------
Changes (by netweb):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Thanks @umangvaghela123, I'm going to close this and mark it as a
duplicate of #41057 as what you have patched here in
[attachment:41749.patch] is already covered by that ticket.
----
It's also worth noting that the comma for the last item in arrays is only
for multiline arrays and not single line arrays
See https://make.wordpress.org/core/handbook/best-practices/coding-
standards/php/#indentation
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41749#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list