Changeset 43571 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r43548 r43571 499 499 if ( is_array( $limited_email_domains ) && ! empty( $limited_email_domains ) ) { 500 500 $limited_email_domains = array_map( 'strtolower', $limited_email_domains ); 501 $emaildomain = strtolower( substr( $user_email, 1 + strpos( $user_email, '@' ) ) );501 $emaildomain = strtolower( substr( $user_email, 1 + strpos( $user_email, '@' ) ) ); 502 502 if ( ! in_array( $emaildomain, $limited_email_domains, true ) ) { 503 503 $errors->add( 'user_email', __( 'Sorry, that email address is not allowed!' ) ); … … 693 693 if ( $diff > 2 * DAY_IN_SECONDS ) { 694 694 $wpdb->delete( 695 $wpdb->signups, array( 695 $wpdb->signups, 696 array( 696 697 'domain' => $mydomain, 697 698 'path' => $path, … … 768 769 769 770 $wpdb->insert( 770 $wpdb->signups, array( 771 $wpdb->signups, 772 array( 771 773 'domain' => $domain, 772 774 'path' => $path, … … 833 835 834 836 $wpdb->insert( 835 $wpdb->signups, array( 837 $wpdb->signups, 838 array( 836 839 'domain' => '', 837 840 'path' => '', … … 939 942 'wpmu_signup_blog_notification_email', 940 943 __( "To activate your blog, please click the following link:\n\n%1\$s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your site here:\n\n%2\$s" ), 941 $domain, $path, $title, $user_login, $user_email, $key, $meta 944 $domain, 945 $path, 946 $title, 947 $user_login, 948 $user_email, 949 $key, 950 $meta 942 951 ), 943 952 $activate_url, … … 965 974 /* translators: New site notification email subject. 1: Network name, 2: New site URL */ 966 975 _x( '[%1$s] Activate %2$s', 'New site notification email subject' ), 967 $domain, $path, $title, $user_login, $user_email, $key, $meta 976 $domain, 977 $path, 978 $title, 979 $user_login, 980 $user_email, 981 $key, 982 $meta 968 983 ), 969 984 $from_name, … … 1043 1058 'wpmu_signup_user_notification_email', 1044 1059 __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ), 1045 $user_login, $user_email, $key, $meta 1060 $user_login, 1061 $user_email, 1062 $key, 1063 $meta 1046 1064 ), 1047 1065 site_url( "wp-activate.php?key=$key" ) … … 1064 1082 /* translators: New user notification email subject. 1: Network name, 2: New user login */ 1065 1083 _x( '[%1$s] Activate %2$s', 'New user notification email subject' ), 1066 $user_login, $user_email, $key, $meta 1084 $user_login, 1085 $user_email, 1086 $key, 1087 $meta 1067 1088 ), 1068 1089 $from_name, … … 1129 1150 if ( empty( $signup->domain ) ) { 1130 1151 $wpdb->update( 1131 $wpdb->signups, array( 1152 $wpdb->signups, 1153 array( 1132 1154 'active' => 1, 1133 1155 'activated' => $now, 1134 ), array( 'activation_key' => $key ) 1156 ), 1157 array( 'activation_key' => $key ) 1135 1158 ); 1136 1159 … … 1165 1188 $blog_id->add_data( $signup ); 1166 1189 $wpdb->update( 1167 $wpdb->signups, array( 1190 $wpdb->signups, 1191 array( 1168 1192 'active' => 1, 1169 1193 'activated' => $now, 1170 ), array( 'activation_key' => $key ) 1194 ), 1195 array( 'activation_key' => $key ) 1171 1196 ); 1172 1197 } … … 1175 1200 1176 1201 $wpdb->update( 1177 $wpdb->signups, array( 1202 $wpdb->signups, 1203 array( 1178 1204 'active' => 1, 1179 1205 'activated' => $now, 1180 ), array( 'activation_key' => $key ) 1206 ), 1207 array( 'activation_key' => $key ) 1181 1208 ); 1182 1209 /** … … 1386 1413 1387 1414 Disable these notifications: %4$s' 1388 ), $blogname, $siteurl, wp_unslash( $_SERVER['REMOTE_ADDR'] ), $options_site_url 1415 ), 1416 $blogname, 1417 $siteurl, 1418 wp_unslash( $_SERVER['REMOTE_ADDR'] ), 1419 $options_site_url 1389 1420 ); 1390 1421 /** … … 1434 1465 1435 1466 Disable these notifications: %3$s' 1436 ), $user->user_login, wp_unslash( $_SERVER['REMOTE_ADDR'] ), $options_site_url 1467 ), 1468 $user->user_login, 1469 wp_unslash( $_SERVER['REMOTE_ADDR'] ), 1470 $options_site_url 1437 1471 ); 1438 1472 … … 2002 2036 if ( $user ) { 2003 2037 $wpdb->insert( 2004 $wpdb->registration_log, array( 2038 $wpdb->registration_log, 2039 array( 2005 2040 'email' => $user->user_email, 2006 2041 'IP' => preg_replace( '/[^0-9., ]/', '', wp_unslash( $_SERVER['REMOTE_ADDR'] ) ), … … 2051 2086 if ( null == $used_global_id ) { 2052 2087 $wpdb->insert( 2053 $wpdb->sitecategories, array( 2088 $wpdb->sitecategories, 2089 array( 2054 2090 'cat_ID' => $term_id, 2055 2091 'cat_name' => $c->name, … … 2066 2102 $new_global_id = max( $max_global_id, $max_local_id ) + mt_rand( 100, 400 ); 2067 2103 $wpdb->insert( 2068 $wpdb->sitecategories, array( 2104 $wpdb->sitecategories, 2105 array( 2069 2106 'cat_ID' => $new_global_id, 2070 2107 'cat_name' => $c->name, … … 2891 2928 2892 2929 wp_mail( 2893 $email_change_email['to'], sprintf( 2930 $email_change_email['to'], 2931 sprintf( 2894 2932 $email_change_email['subject'], 2895 2933 $network_name 2896 ), $email_change_email['message'], $email_change_email['headers'] 2934 ), 2935 $email_change_email['message'], 2936 $email_change_email['headers'] 2897 2937 ); 2898 2938 }
Note: See TracChangeset
for help on using the changeset viewer.