Comments on: The Newbie Developer’s Guide to WordPress’ PHP Coding Standards https://torquemag.io/2017/06/wordpress-php-coding-standards/ All the Word that's fit to Press Fri, 13 Nov 2020 19:27:15 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Michael https://torquemag.io/2017/06/wordpress-php-coding-standards/#comment-574589 Fri, 13 Nov 2020 19:27:15 +0000 https://torquemag.io/?p=81726#comment-574589 Hi John,

Thanks for the article. I noticed that it was published in 2017…i am just venturing out into the wilderness of coding (html, CSS and php) and away from a heavy reliancy on page builders. Is this still relevant now as a bookmark to reference back to?

]]>
By: Nihal https://torquemag.io/2017/06/wordpress-php-coding-standards/#comment-318043 Tue, 09 Oct 2018 09:48:52 +0000 https://torquemag.io/?p=81726#comment-318043 Hey John,
Good one! just a note the line below in 1 rule looks like need single quote for target attribute…
echo “$linkname“;

]]>
By: guido https://torquemag.io/2017/06/wordpress-php-coding-standards/#comment-191394 Sat, 12 Aug 2017 06:26:20 +0000 https://torquemag.io/?p=81726#comment-191394 What about shorthand php coding if/else $class = ($count == 0) ? ‘item active’ : ‘item’;

Is it allowed or does this also need the whole thing in brackets?

]]>
By: Brian Murphy https://torquemag.io/2017/06/wordpress-php-coding-standards/#comment-181306 Fri, 23 Jun 2017 05:58:43 +0000 https://torquemag.io/?p=81726#comment-181306 Will they ever revamp the space usage guidelines? I go blind every time I have to dig into WordPress code. Getting on board with the PSR-2 standard would make reading WordPress code a million times easier.

]]>