Skip to content

Commit a03e907

Browse files
committed
Replace NBSP characters with spaces
1 parent 88f981e commit a03e907

File tree

1 file changed

+4
-4
lines changed
  • wordpress-coding-standards

1 file changed

+4
-4
lines changed

wordpress-coding-standards/php.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Note that requiring the use of braces just means that _single-statement inline c
127127

128128
### Use `elseif`, not `else if`
129129

130-
`else if` is not compatible with the colon syntax for `if|elseif` blocks. For this reason, use `elseif` for conditionals.
130+
`else if` is not compatible with the colon syntax for `if|elseif` blocks. For this reason, use `elseif` for conditionals.
131131

132132
### Declaring Arrays
133133

@@ -582,9 +582,9 @@ While this operator does exist in Core, it is often used lazily instead of doing
582582
583583
### Don't `extract()`
584584

585-
Per [#22400](https://core.trac.wordpress.org/ticket/22400 "Remove all, or at least most, uses of extract() within WordPress"):
585+
Per [#22400](https://core.trac.wordpress.org/ticket/22400 "Remove all, or at least most, uses of extract() within WordPress"):
586586

587-
> `extract()` is a terrible function that makes code harder to debug and harder to understand. We should discourage it's [sic] use and remove all of our uses of it.
587+
> `extract()` is a terrible function that makes code harder to debug and harder to understand. We should discourage it's [sic] use and remove all of our uses of it.
588588
589589

590590
Joseph Scott has [a good write-up of why it's bad](https://blog.josephscott.org/2009/02/05/i-dont-like-phps-extract-function/).
@@ -598,4 +598,4 @@ Joseph Scott has [a good write-up of why it's bad](https://blog.josephscott.org/
598598
- November 13, 2013: [Braces should always be used, even when they are optional](https://make.wordpress.org/core/2013/11/13/proposed-coding-standards-change-always-require-braces/)
599599
- June 20, 2014: Add (#error-control-operator) to discourage use of the [error control operator]((https://www.php.net/manual/en/language.operators.errorcontrol.php)) (`@`). See [#wordpress-dev](https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2014-06-20&sort=asc#m873356).
600600
- October 20, 2014: Update brace usage to indicate that the alternate syntax for control structures is allowed, even encouraged. It is single-line inline control structures that are forbidden.
601-
- January 21, 2014: Add section to forbid extract().
601+
- January 21, 2014: Add section to forbid extract().

0 commit comments

Comments
 (0)