[Resolved] WordPress coding standards
I started learning WordPress plugin development and I would like to learn as many things as possible the right way at the beginning.
I have been going over the coding standards page:
In the “Space Usage” section, it suggests to add spaces before and after parenthesis of blocks and functions. I accept that this improves the readability but when I checked the WordPress installation files (e.g., wp-login.php) I noticed that they are not standardized either. In some places there are spaces as suggested, but in some places there aren’t.
I am used to coding with no spaces (if not necessary) and I want to ask your opinion about this coding standards. Is it better that I stick to them? If they are standards, why the WordPress files are not following them strictly?
- The topic ‘[Resolved] WordPress coding standards’ is closed to new replies.