Add the path to the directory in which you placed your copy of the PHPCompatibility repo to the PHP CodeSniffer configuration using the below command from the command line:
phpcs --config-set installed_paths /path/to/PHPCompatibility
When updating static blocks markup and attributes, block authors need to consider existing posts using the old versions of their block. In order to provide a good upgrade path, you can choose one of the following strategies:
If you try to run npm install some-module -g and you receive npm ERR! Error: EACCES, here are some options
npm install some-module -g
npm ERR! Error: EACCES
sudo
I’ve added two sniffs into the Generic standard. The codes are Generic.Arrays.DisallowLongArraySyntax and Generic.Arrays.DisallowShortArraySyntax and both also fix the errors found.
Generic.Arrays.DisallowLongArraySyntax
Generic.Arrays.DisallowShortArraySyntax
WordPress 4.6 introduces a new class for querying taxonomies. Like WP_Query,WP_User_Query,and WP_Comment_Query.
WP_Query
WP_User_Query
WP_Comment_Query
When using WordPress own query classes, you can be at ease — all caching and security measures are done by
This release deprecates the @codingStandards comment syntax used for sending commands to PHP_CodeSniffer. The existing syntax will continue to work in all version 3 releases, but will be removed in version 4
@codingStandards
Like I said, WP_DEBUG is the common debug flag we use when working with WordPress. You normally see something like this in the wp-config file define( 'WP_DEBUG', 'true' ); This is what’s called a constant; it’s…
define( 'WP_DEBUG', 'true' );
<?phpfunction register_scripts() { if (!is_admin()){ wp_deregister_script('jquery'); // Lets use the most modern version rather than the one packaged with Wordpress wp_deregister_script( 'l10n' ); // Unneccessary http…
WordPress 4.7 will introduce some new goodies for theme developers, and you can test them out now in trunk. These changes make powerful new functionality available to themes and plugins. It would be great to see theme developers testing…