[wp-trac] [WordPress Trac] #24582: Why WordPress PHP spacing standards aren't compatible with PHP standards?

WordPress Trac noreply at wordpress.org
Sat Jun 15 13:05:03 UTC 2013


#24582: Why WordPress PHP spacing standards aren't compatible with PHP standards?
--------------------------+-----------------------------
 Reporter:  Looimaster    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I'm wondering why WordPress PHP guide requires that files have spaces
 after each bracket and before/after single quotes and in other places that
 they aren't used by most of the PHP developers (including PHP creators):
 http://make.wordpress.org/core/handbook/coding-standards/php/#php

 * The proper PHP standard (and the most readable to the most of the
 population) is this: http://pl1.php.net/manual/en/function.function-
 exists.php
 * Or this can be a reference as well:
 http://pear.php.net/manual/en/standards.funcdef.php
 * Or in the worst case Google's coding standards should be used (although
 I don't like some of their decisions): http://google-
 styleguide.googlecode.com/svn/trunk/cppguide.xml

 Is this something that is likely to change in the future?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24582>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list