@@ -938,7 +938,16 @@ function wpmu_signup_user( $user, $user_email, $meta = array() ) {
938938 * @param array $meta Optional. Signup meta data. By default, contains the requested privacy setting and lang_id.
939939 * @return bool
940940 */
941- function wpmu_signup_blog_notification ( $ domain , $ path , $ title , $ user_login , $ user_email , $ key , $ meta = array () ) {
941+ function wpmu_signup_blog_notification (
942+ $ domain ,
943+ $ path ,
944+ $ title ,
945+ $ user_login ,
946+ $ user_email ,
947+ #[\SensitiveParameter]
948+ $ key ,
949+ $ meta = array ()
950+ ) {
942951 /**
943952 * Filters whether to bypass the new site email notification.
944953 *
@@ -1073,7 +1082,13 @@ function wpmu_signup_blog_notification( $domain, $path, $title, $user_login, $us
10731082 * @param array $meta Optional. Signup meta data. Default empty array.
10741083 * @return bool
10751084 */
1076- function wpmu_signup_user_notification ( $ user_login , $ user_email , $ key , $ meta = array () ) {
1085+ function wpmu_signup_user_notification (
1086+ $ user_login ,
1087+ $ user_email ,
1088+ #[\SensitiveParameter]
1089+ $ key ,
1090+ $ meta = array ()
1091+ ) {
10771092 /**
10781093 * Filters whether to bypass the email notification for new user sign-up.
10791094 *
@@ -1175,7 +1190,10 @@ function wpmu_signup_user_notification( $user_login, $user_email, $key, $meta =
11751190 * @param string $key The activation key provided to the user.
11761191 * @return array|WP_Error An array containing information about the activated user and/or blog.
11771192 */
1178- function wpmu_activate_signup ( $ key ) {
1193+ function wpmu_activate_signup (
1194+ #[\SensitiveParameter]
1195+ $ key
1196+ ) {
11791197 global $ wpdb ;
11801198
11811199 $ signup = $ wpdb ->get_row ( $ wpdb ->prepare ( "SELECT * FROM $ wpdb ->signups WHERE activation_key = %s " , $ key ) );
@@ -1327,7 +1345,12 @@ function wp_delete_signup_on_user_delete( $id, $reassign, $user ) {
13271345 * @param string $email The new user's email address.
13281346 * @return int|false Returns false on failure, or int $user_id on success.
13291347 */
1330- function wpmu_create_user ( $ user_name , $ password , $ email ) {
1348+ function wpmu_create_user (
1349+ $ user_name ,
1350+ #[\SensitiveParameter]
1351+ $ password ,
1352+ $ email
1353+ ) {
13311354 $ user_name = preg_replace ( '/\s+/ ' , '' , sanitize_user ( $ user_name , true ) );
13321355
13331356 $ user_id = wp_create_user ( $ user_name , $ password , $ email );
@@ -1611,7 +1634,14 @@ function domain_exists( $domain, $path, $network_id = 1 ) {
16111634 * @param array $meta Optional. Signup meta data. By default, contains the requested privacy setting and lang_id.
16121635 * @return bool Whether the email notification was sent.
16131636 */
1614- function wpmu_welcome_notification ( $ blog_id , $ user_id , $ password , $ title , $ meta = array () ) {
1637+ function wpmu_welcome_notification (
1638+ $ blog_id ,
1639+ $ user_id ,
1640+ #[\SensitiveParameter]
1641+ $ password ,
1642+ $ title ,
1643+ $ meta = array ()
1644+ ) {
16151645 $ current_network = get_network ();
16161646
16171647 /**
@@ -1845,7 +1875,12 @@ function wpmu_new_site_admin_notification( $site_id, $user_id ) {
18451875 * @param array $meta Optional. Signup meta data. Default empty array.
18461876 * @return bool
18471877 */
1848- function wpmu_welcome_user_notification ( $ user_id , $ password , $ meta = array () ) {
1878+ function wpmu_welcome_user_notification (
1879+ $ user_id ,
1880+ #[\SensitiveParameter]
1881+ $ password ,
1882+ $ meta = array ()
1883+ ) {
18491884 $ current_network = get_network ();
18501885
18511886 /**
@@ -2271,7 +2306,12 @@ function add_existing_user_to_blog( $details = false ) {
22712306 * @param string $password User password. Ignored.
22722307 * @param array $meta Signup meta data.
22732308 */
2274- function add_new_user_to_blog ( $ user_id , $ password , $ meta ) {
2309+ function add_new_user_to_blog (
2310+ $ user_id ,
2311+ #[\SensitiveParameter]
2312+ $ password ,
2313+ $ meta
2314+ ) {
22752315 if ( ! empty ( $ meta ['add_to_blog ' ] ) ) {
22762316 $ blog_id = $ meta ['add_to_blog ' ];
22772317 $ role = $ meta ['new_role ' ];
0 commit comments