Sam's notebook

Running tests on WordPress coding standards March 9th, 2016, 8AM

Programming

The docs for WordPress-Coding-Standards assume that one is installing things globally, but I don’t like my hacking on phpcs to break my usage of it elsewhere, so I wanted to cordon things off in their own little dev area. This is how. Clone the two required repositories to directories next to each other: cd ~/public_html/wordpress/ […]

[No comments] [Keywords: , , , ] [Permanent link]

Spaces around dots March 8th, 2016, 2PM

Programming

One of the first odd things that one finds when starting to work with WordPress code is the excessive use of spaces. Something like: do_something(‘Words of ‘.$widget->noun($attrs[‘ish’])); becomes the the stretched out: do_something( ‘Words of ‘ . $widget->noun( $attrs[‘ish’] ) ); Which is fine, and actually now I’ve been using it for a decade I’m […]

[No comments] [Keywords: , , , ] [Permanent link]