Ticket #25149: 25149.patch
File 25149.patch, 3.6 KB (added by , 11 years ago) |
---|
-
src/wp-includes/ms-functions.php
625 625 * @param string $user_email The user's email address. 626 626 * @param array $meta By default, contains the requested privacy setting and lang_id. 627 627 */ 628 function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = ''){628 function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = array() ) { 629 629 global $wpdb; 630 630 631 631 $key = substr( md5( time() . rand() . $domain ), 0, 16 ); … … 658 658 * @param string $user_email The user's email address. 659 659 * @param array $meta By default, this is an empty array. 660 660 */ 661 function wpmu_signup_user( $user, $user_email, $meta = '') {661 function wpmu_signup_user( $user, $user_email, $meta = array() ) { 662 662 global $wpdb; 663 663 664 664 // Format data … … 701 701 * @param string $title The site title. 702 702 * @param string $user The user's login name. 703 703 * @param string $user_email The user's email address. 704 * @param string $key The activation key created in wpmu_signup_blog() 704 705 * @param array $meta By default, contains the requested privacy setting and lang_id. 705 * @param string $key The activation key created in wpmu_signup_blog()706 706 * @return bool 707 707 */ 708 function wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta = '') {708 function wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta = array() ) { 709 709 global $current_site; 710 710 711 711 if ( !apply_filters('wpmu_signup_blog_notification', $domain, $path, $title, $user, $user_email, $key, $meta) ) … … 762 762 * 763 763 * @param string $user The user's login name. 764 764 * @param string $user_email The user's email address. 765 * @param string $key The activation key created in wpmu_signup_user() 765 766 * @param array $meta By default, an empty array. 766 * @param string $key The activation key created in wpmu_signup_user()767 767 * @return bool 768 768 */ 769 function wpmu_signup_user_notification( $user, $user_email, $key, $meta = '') {769 function wpmu_signup_user_notification( $user, $user_email, $key, $meta = array() ) { 770 770 if ( !apply_filters('wpmu_signup_user_notification', $user, $user_email, $key, $meta) ) 771 771 return false; 772 772 … … 936 936 * @param int $site_id Optional. Only relevant on multi-network installs. 937 937 * @return mixed Returns WP_Error object on failure, int $blog_id on success 938 938 */ 939 function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = '', $site_id = 1 ) {939 function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $site_id = 1 ) { 940 940 $defaults = array( 'public' => 0 ); 941 941 $meta = wp_parse_args( $meta, $defaults ); 942 942 … … 1200 1200 * @param array $meta Optional. Not used in the default function, but is passed along to hooks for customization. 1201 1201 * @return bool 1202 1202 */ 1203 function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = '') {1203 function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) { 1204 1204 global $current_site; 1205 1205 1206 1206 if ( !apply_filters('wpmu_welcome_notification', $blog_id, $user_id, $password, $title, $meta) ) … … 1264 1264 * @param array $meta Optional. Not used in the default function, but is passed along to hooks for customization. 1265 1265 * @return bool 1266 1266 */ 1267 function wpmu_welcome_user_notification( $user_id, $password, $meta = '') {1267 function wpmu_welcome_user_notification( $user_id, $password, $meta = array() ) { 1268 1268 global $current_site; 1269 1269 1270 1270 if ( !apply_filters('wpmu_welcome_user_notification', $user_id, $password, $meta) )