[wp-hackers] Coding Standards

Toivo Lainevool tlainevool at xmlpatterns.com
Wed Sep 1 16:54:19 UTC 2004


Mike Little wrote:

>As Alex already pointed out, we already have guidelines here:
>http://wordpress.org/docs/developer/coding-style/
>
>Perhaps they could be more explicit though: i.e. "Pear standards
>except as noted here."
>
>Mike
>  
>
The problem is the wp code *doesn't* follow the pear standards as far as 
I can tell.

For example, the PEAR standard states:
"Class names should always begin with an uppercase letter" 
(http://pear.php.net/manual/en/standards.naming.php)

Examples of wp class names: xmlrpc_client,  wpdb

Right now it seems like wp coding standards are "self-documenting", that 
is, you just look at the code and try to copy the style the best you can.

-- 

Toivo Lainevool
http://0blog.com
http://www.XMLPatterns.com - XML Design Patterns.





More information about the hackers mailing list