[wp-hackers] Code formatting

Lutz Schröer latz at elektroelch.de
Tue Jul 5 16:24:13 UTC 2011


I've started to format the code of older files to make them WP coding 
standard compliant. The codex says that there should be spaces at round 
brackets:

function( parameter ) {}

but it does not say anything about square brackets. So what's the 
preferred style?

$_POST['link_url']
or
$_POST[ 'link_url' ]

latz


More information about the wp-hackers mailing list