Commit fde5ddd334 for wordpress.org
commit fde5ddd334058c56b2d537f093abbc7a6f69735d
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Sat Jun 28 21:28:34 2025 +0000
Coding Standards: Explicitly return `null` in `wp_set_all_user_settings()`.
This matches the documented `@return` type.
Follow-up to [22256], [37263], [39932], [48320].
Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60361
git-svn-id: http://core.svn.wordpress.org/trunk@59697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/option.php b/wp-includes/option.php
index 0280d53758..3b4f461724 100644
--- a/wp-includes/option.php
+++ b/wp-includes/option.php
@@ -1880,7 +1880,7 @@ function wp_set_all_user_settings( $user_settings ) {
}
if ( ! is_user_member_of_blog() ) {
- return;
+ return null;
}
$settings = '';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 0ab3b12bd9..1aa5779804 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-alpha-60360';
+$wp_version = '6.9-alpha-60361';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.