Files
wordpress/wp-includes/class-wp-user.php
Sergey Biryukov 7a2c67c454 Coding Standards: Correct $site_id parameter default values in WP_User.
This commit corrects the default `$site_id` parameter values used throughout the `WP_User` class to bring them in line with their `int` doctypes (and the doctypes of the functions used internally by the affected class methods).

More specifically,
* `__construct()`: `$site_id = ''` changed to `$site_id = 0`
* `init()`: `$site_id = ''` changed to `$site_id = 0`
* `for_blog()`: `$blog_id = ''` changed to `$blog_id = 0`
* `for_site()`: `$site_id = ''` changed to `$site_id = 0`

Follow-up to [12796], [15566], [18597], [41624].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60174


git-svn-id: http://core.svn.wordpress.org/trunk@59510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-18 20:28:27 +00:00

22 KiB