Changeset 23416 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 02/14/2013 10:51:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r23412 r23416 280 280 */ 281 281 function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { 282 $domain = addslashes( $domain );283 $weblog_title = addslashes( $weblog_title );284 285 282 if ( empty($path) ) 286 283 $path = '/'; … … 583 580 $blogname = apply_filters( 'newblogname', $blogname ); 584 581 585 $blog_title = stripslashes( $blog_title );582 $blog_title = $blog_title; 586 583 587 584 if ( empty( $blog_title ) ) … … 636 633 637 634 $key = substr( md5( time() . rand() . $domain ), 0, 16 ); 638 $meta = serialize($meta); 639 $domain = $wpdb->escape($domain); 640 $path = $wpdb->escape($path); 641 $title = $wpdb->escape($title); 635 $meta = serialize( $meta ); 642 636 643 637 $wpdb->insert( $wpdb->signups, array( … … 652 646 ) ); 653 647 654 wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta);648 wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ); 655 649 } 656 650 … … 842 836 843 837 $meta = maybe_unserialize($signup->meta); 844 $user_login = $ wpdb->escape($signup->user_login);845 $user_email = $ wpdb->escape($signup->user_email);838 $user_login = $signup->user_login; 839 $user_email = $signup->user_email; 846 840 $password = wp_generate_password( 12, false ); 847 841 … … 1160 1154 update_option( 'upload_path', get_blog_option( $current_site->blog_id, 'upload_path' ) ); 1161 1155 1162 update_option( 'blogname', stripslashes( $blog_title ));1156 update_option( 'blogname', $blog_title ); 1163 1157 update_option( 'admin_email', '' ); 1164 1158 … … 1217 1211 return false; 1218 1212 1219 $welcome_email = stripslashes( get_site_option( 'welcome_email' ));1213 $welcome_email = get_site_option( 'welcome_email' ); 1220 1214 if ( $welcome_email == false ) 1221 $welcome_email = stripslashes(__( 'Dear User,1215 $welcome_email = __( 'Dear User, 1222 1216 1223 1217 Your new SITE_NAME site has been successfully set up at: … … 1231 1225 We hope you enjoy your new site. Thanks! 1232 1226 1233 --The Team @ SITE_NAME' ) );1227 --The Team @ SITE_NAME' ); 1234 1228 1235 1229 $url = get_blogaddress_by_id($blog_id); … … 1255 1249 $current_site->site_name = 'WordPress'; 1256 1250 1257 $subject = apply_filters( 'update_welcome_subject', sprintf(__('New %1$s Site: %2$s'), $current_site->site_name, stripslashes( $title )) );1251 $subject = apply_filters( 'update_welcome_subject', sprintf(__('New %1$s Site: %2$s'), $current_site->site_name, $title ) ); 1258 1252 wp_mail($user->user_email, $subject, $message, $message_headers); 1259 1253 return true; … … 1510 1504 global $wpdb; 1511 1505 $user = get_userdata( (int) $user_id ); 1512 $wpdb->insert( $wpdb->registration_log, array('email' => $user->user_email, 'IP' => preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR']), 'blog_id' => $blog_id, 'date_registered' => current_time('mysql')) );1506 $wpdb->insert( $wpdb->registration_log, array('email' => $user->user_email, 'IP' => preg_replace( '/[^0-9., ]/', '', wp_unslash( $_SERVER['REMOTE_ADDR'] ) ), 'blog_id' => $blog_id, 'date_registered' => current_time('mysql')) ); 1513 1507 } 1514 1508
Note: See TracChangeset
for help on using the changeset viewer.