Skip to content

Commit c94f358

Browse files
committed
updated prefix number in docs and the order of since tag
1 parent 3650b7c commit c94f358

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function <em>wp_save_post()</em> {}
101101
</code_comparison>
102102
<standard>
103103
<![CDATA[
104-
Prefixes must have a minimum length of three character to be considered valid, as many plugins and themes share the same initials.
104+
Prefixes must have a minimum length of four character to be considered valid, as many plugins and themes share the same initials.
105105
]]>
106106
</standard>
107107
<code_comparison>

WordPress/Sniffs/NamingConventions/PrefixAllGlobalsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ final class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
5858
/**
5959
* Minimal number of characters the prefix needs in order to be valid.
6060
*
61-
* @since 2.2.0
6261
* @since 3.2.0 The minimum number of characters was raised from 3 to 4.
62+
* @since 2.2.0
6363
*
6464
* @link https://github.com/WordPress/WordPress-Coding-Standards/issues/1733 Issue 1733.
6565
* @link https://github.com/WordPress/WordPress-Coding-Standards/issues/2467 Issue 2467.

0 commit comments

Comments
 (0)