Skip to content

Commit 2ae8079

Browse files
committed
Docs: Increase the specificity of various property documentation.
See #55646 git-svn-id: https://develop.svn.wordpress.org/trunk@54318 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1b89272 commit 2ae8079

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/wp-includes/class-wp-locale-switcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class WP_Locale_Switcher {
3434
* Holds all available languages.
3535
*
3636
* @since 4.7.0
37-
* @var array An array of language codes (file names without the .mo extension).
37+
* @var string[] An array of language codes (file names without the .mo extension).
3838
*/
3939
private $available_languages = array();
4040

src/wp-includes/class-wp-object-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class WP_Object_Cache {
5252
* List of global cache groups.
5353
*
5454
* @since 3.0.0
55-
* @var array
55+
* @var string[]
5656
*/
5757
protected $global_groups = array();
5858

src/wp-includes/class-wp-post-type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ final class WP_Post_Type {
222222
* Default empty array.
223223
*
224224
* @since 4.6.0
225-
* @var array $taxonomies
225+
* @var string[] $taxonomies
226226
*/
227227
public $taxonomies = array();
228228

@@ -282,7 +282,7 @@ final class WP_Post_Type {
282282
* @link https://developer.wordpress.org/block-editor/developers/block-api/block-templates/
283283
*
284284
* @since 5.0.0
285-
* @var array $template
285+
* @var array[] $template
286286
*/
287287
public $template = array();
288288

src/wp-includes/class-wp-rewrite.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class WP_Rewrite {
185185
* Rewrite rules to match against the request to find the redirect or query.
186186
*
187187
* @since 1.5.0
188-
* @var array
188+
* @var string[]
189189
*/
190190
public $rules;
191191

@@ -195,7 +195,7 @@ class WP_Rewrite {
195195
* Those not generated by the class, see add_rewrite_rule().
196196
*
197197
* @since 2.1.0
198-
* @var array
198+
* @var string[]
199199
*/
200200
public $extra_rules = array();
201201

@@ -205,7 +205,7 @@ class WP_Rewrite {
205205
* Those not generated by the class, see add_rewrite_rule().
206206
*
207207
* @since 2.3.0
208-
* @var array
208+
* @var string[]
209209
*/
210210
public $extra_rules_top = array();
211211

@@ -216,23 +216,23 @@ class WP_Rewrite {
216216
* and are added by add_external_rule().
217217
*
218218
* @since 2.1.0
219-
* @var array
219+
* @var string[]
220220
*/
221221
public $non_wp_rules = array();
222222

223223
/**
224224
* Extra permalink structures, e.g. categories, added by add_permastruct().
225225
*
226226
* @since 2.1.0
227-
* @var array
227+
* @var array[]
228228
*/
229229
public $extra_permastructs = array();
230230

231231
/**
232232
* Endpoints (like /trackback/) added by add_rewrite_endpoint().
233233
*
234234
* @since 2.1.0
235-
* @var array
235+
* @var array[]
236236
*/
237237
public $endpoints;
238238

0 commit comments

Comments
 (0)