You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Double checked that all existing XML docs have the `xsi` attributes and schema reference of the `<documentation>` element.
* Verified that the contents of `<standard>` elements is consistently indented (with four spaces).
* Verified that all `<code>` `title` attributes use proper punctuation.
Copy file name to clipboardExpand all lines: WordPress/Docs/Arrays/ArrayIndentationStandard.xml
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,18 @@
5
5
>
6
6
<standard>
7
7
<![CDATA[
8
-
The array closing bracket indentation should line up with the start of the content on the line containing the array opener.
8
+
The array closing bracket indentation should line up with the start of the content on the line containing the array opener.
9
9
]]>
10
10
</standard>
11
11
<code_comparison>
12
-
<codetitle="Valid: Closing bracket lined up correctly">
12
+
<codetitle="Valid: Closing bracket lined up correctly.">
13
13
<![CDATA[
14
14
$args = array(
15
15
'post_id' => 22,
16
16
<em>);</em>
17
17
]]>
18
18
</code>
19
-
<codetitle="Invalid: Closing bracket lined up incorrectly">
19
+
<codetitle="Invalid: Closing bracket lined up incorrectly.">
20
20
<![CDATA[
21
21
$args = array(
22
22
'post_id' => 22,
@@ -26,11 +26,11 @@ $args = array(
26
26
</code_comparison>
27
27
<standard>
28
28
<![CDATA[
29
-
In multi-line arrays, array items should be indented by a 4-space tab for each level of nested array, so that the array visually matches its structure.
29
+
In multi-line arrays, array items should be indented by a 4-space tab for each level of nested array, so that the array visually matches its structure.
30
30
]]>
31
31
</standard>
32
32
<code_comparison>
33
-
<codetitle="Valid: Correctly indented array">
33
+
<codetitle="Valid: Correctly indented array.">
34
34
<![CDATA[
35
35
$args = array(
36
36
'post_id' => 22,
@@ -88,7 +88,7 @@ $args = array(
88
88
</code>
89
89
</code_comparison>
90
90
<code_comparison>
91
-
<codetitle="Valid: Opener and comma after closer are indented correctly">
91
+
<codetitle="Valid: Opener and comma after closer are indented correctly.">
Copy file name to clipboardExpand all lines: WordPress/Docs/PHP/IniSetStandard.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
>
6
6
<standard>
7
7
<![CDATA[
8
-
Using ini_set() and similar functions for altering PHP settings at runtime is discouraged. Changing runtime configuration might break other plugins and themes, and even WordPress itself.
8
+
Using ini_set() and similar functions for altering PHP settings at runtime is discouraged. Changing runtime configuration might break other plugins and themes, and even WordPress itself.
For some configuration values there are alternative ways available - either via WordPress native functionality of via standard PHP - to achieve the same without the risk of breaking interoperability. These alternatives are preferred.
25
+
For some configuration values there are alternative ways available - either via WordPress native functionality of via standard PHP - to achieve the same without the risk of breaking interoperability. These alternatives are preferred.
Copy file name to clipboardExpand all lines: WordPress/Docs/WP/PostsPerPageStandard.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@
5
5
>
6
6
<standard>
7
7
<![CDATA[
8
-
Using "posts_per_page" or "numberposts" with the value set to an high number opens up the potential for making requests slow if the query ends up querying thousands of posts.
8
+
Using "posts_per_page" or "numberposts" with the value set to an high number opens up the potential for making requests slow if the query ends up querying thousands of posts.
9
9
10
-
You should always fetch the lowest number possible that still gives you the number of results you find acceptable.
10
+
You should always fetch the lowest number possible that still gives you the number of results you find acceptable.
0 commit comments