From 9e5fdba09284d47e5ceb5ca90f9fc3dfe3b6f06b Mon Sep 17 00:00:00 2001 From: Phill <38789408+SavPhill@users.noreply.github.com> Date: Fri, 20 May 2022 17:23:02 +0700 Subject: [PATCH 1/2] Remove Unused Link Referring to the issue I created: https://github.com/WordPress/wpcs-docs/issues/78 There is no Naming Conventions topic or #naming-conventions anchor within the page. Therefore I have removed the link in this PR as it is no longer useful. --- wordpress-coding-standards/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress-coding-standards/javascript.md b/wordpress-coding-standards/javascript.md index 529da8b..338a74e 100644 --- a/wordpress-coding-standards/javascript.md +++ b/wordpress-coding-standards/javascript.md @@ -285,7 +285,7 @@ window.wp = window.wp || {}; ## Naming Conventions -Variable and function names should be full words, using camel case with a lowercase first letter. This is an area where this standard differs from the [WordPress PHP coding standards](https://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions). +Variable and function names should be full words, using camel case with a lowercase first letter. This is an area where this standard differs from the WordPress PHP coding standards. Names should be descriptive, but not excessively so. Exceptions are allowed for iterators, such as the use of `i` to represent the index in a loop. From 3ed0ff05b5fab950a5e31d3e493ffef2ff2c87a1 Mon Sep 17 00:00:00 2001 From: Phill <38789408+SavPhill@users.noreply.github.com> Date: Fri, 20 May 2022 17:33:54 +0700 Subject: [PATCH 2/2] Update wordpress-coding-standards/javascript.md Co-authored-by: Gary Jones --- wordpress-coding-standards/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress-coding-standards/javascript.md b/wordpress-coding-standards/javascript.md index 338a74e..02e9e2a 100644 --- a/wordpress-coding-standards/javascript.md +++ b/wordpress-coding-standards/javascript.md @@ -285,7 +285,7 @@ window.wp = window.wp || {}; ## Naming Conventions -Variable and function names should be full words, using camel case with a lowercase first letter. This is an area where this standard differs from the WordPress PHP coding standards. +Variable and function names should be full words, using camel case with a lowercase first letter. This is an area where this standard differs from the [WordPress PHP coding standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions). Names should be descriptive, but not excessively so. Exceptions are allowed for iterators, such as the use of `i` to represent the index in a loop.