Skip to content

Commit b207c17

Browse files
committed
NamingConventions/PrefixAllGlobals: update the functions list based on WP 6.9.0-RC2
Based on a scan of WP Core at commit WordPress/wordpress-develop@87e656 using a preliminary sniff created for issue 1803.
1 parent 638dbce commit b207c17

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

WordPress/Sniffs/NamingConventions/PrefixAllGlobalsSniff.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ final class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
149149
* Only overrulable constants are listed, i.e. those defined within core within
150150
* a `if ( ! defined() ) {}` wrapper.
151151
*
152-
* {@internal To be updated after every major release. Last updated for WordPress 6.8.1.}
152+
* {@internal To be updated after every major release. Last updated for WordPress 6.9.0-RC2.}
153153
*
154154
* @since 1.0.0
155155
* @since 3.0.0 Renamed from `$whitelisted_core_constants` to `$allowed_core_constants`.
@@ -203,7 +203,7 @@ final class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
203203
*
204204
* Note: deprecated functions should still be included in this list as plugins may support older WP versions.
205205
*
206-
* {@internal To be updated after every major release. Last updated for WordPress 6.8.1.}
206+
* {@internal To be updated after every major release. Last updated for WordPress 6.9.0-RC2.}
207207
*
208208
* @since 3.0.0.
209209
*
@@ -342,7 +342,11 @@ final class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
342342
'wp_cache_flush_group' => true,
343343
'wp_cache_flush_runtime' => true,
344344
'wp_cache_get_multiple' => true,
345+
'wp_cache_get_multiple_salted' => true,
346+
'wp_cache_get_salted' => true,
345347
'wp_cache_set_multiple' => true,
348+
'wp_cache_set_multiple_salted' => true,
349+
'wp_cache_set_salted' => true,
346350
'wp_cache_supports' => true,
347351
'wp_check_password' => true,
348352
'wp_clear_auth_cookie' => true,
@@ -392,7 +396,7 @@ final class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
392396
*
393397
* Note: deprecated classes should still be included in this list as plugins may support older WP versions.
394398
*
395-
* {@internal To be updated after every major release. Last updated for WordPress 6.8.1.}
399+
* {@internal To be updated after every major release. Last updated for WordPress 6.9.0-RC2.}
396400
*
397401
* @since 3.0.0.
398402
*
@@ -407,6 +411,7 @@ final class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
407411
'TwentyTwenty_Walker_Comment' => true,
408412
'TwentyTwenty_Walker_Page' => true,
409413
'Twenty_Twenty_One_Customize' => true,
414+
'WP_Block_Cloner' => true,
410415
'WP_User_Search' => true,
411416
'wp_atom_server' => true, // Deprecated.
412417
);

0 commit comments

Comments
 (0)