Make WordPress Core

Ticket #25149: 25149.patch

File 25149.patch, 3.6 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/ms-functions.php

     
    625625 * @param string $user_email The user's email address.
    626626 * @param array $meta By default, contains the requested privacy setting and lang_id.
    627627 */
    628 function wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta = '') {
     628function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = array() ) {
    629629        global $wpdb;
    630630
    631631        $key = substr( md5( time() . rand() . $domain ), 0, 16 );
     
    658658 * @param string $user_email The user's email address.
    659659 * @param array $meta By default, this is an empty array.
    660660 */
    661 function wpmu_signup_user($user, $user_email, $meta = '') {
     661function wpmu_signup_user( $user, $user_email, $meta = array() ) {
    662662        global $wpdb;
    663663
    664664        // Format data
     
    701701 * @param string $title The site title.
    702702 * @param string $user The user's login name.
    703703 * @param string $user_email The user's email address.
     704 * @param string $key The activation key created in wpmu_signup_blog()
    704705 * @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()
    706706 * @return bool
    707707 */
    708 function wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta = '') {
     708function wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta = array() ) {
    709709        global $current_site;
    710710
    711711        if ( !apply_filters('wpmu_signup_blog_notification', $domain, $path, $title, $user, $user_email, $key, $meta) )
     
    762762 *
    763763 * @param string $user The user's login name.
    764764 * @param string $user_email The user's email address.
     765 * @param string $key The activation key created in wpmu_signup_user()
    765766 * @param array $meta By default, an empty array.
    766  * @param string $key The activation key created in wpmu_signup_user()
    767767 * @return bool
    768768 */
    769 function wpmu_signup_user_notification($user, $user_email, $key, $meta = '') {
     769function wpmu_signup_user_notification( $user, $user_email, $key, $meta = array() ) {
    770770        if ( !apply_filters('wpmu_signup_user_notification', $user, $user_email, $key, $meta) )
    771771                return false;
    772772
     
    936936 * @param int $site_id Optional. Only relevant on multi-network installs.
    937937 * @return mixed Returns WP_Error object on failure, int $blog_id on success
    938938 */
    939 function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = '', $site_id = 1 ) {
     939function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $site_id = 1 ) {
    940940        $defaults = array( 'public' => 0 );
    941941        $meta = wp_parse_args( $meta, $defaults );
    942942
     
    12001200 * @param array $meta Optional. Not used in the default function, but is passed along to hooks for customization.
    12011201 * @return bool
    12021202 */
    1203 function wpmu_welcome_notification($blog_id, $user_id, $password, $title, $meta = '') {
     1203function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
    12041204        global $current_site;
    12051205
    12061206        if ( !apply_filters('wpmu_welcome_notification', $blog_id, $user_id, $password, $title, $meta) )
     
    12641264 * @param array $meta Optional. Not used in the default function, but is passed along to hooks for customization.
    12651265 * @return bool
    12661266 */
    1267 function wpmu_welcome_user_notification($user_id, $password, $meta = '') {
     1267function wpmu_welcome_user_notification( $user_id, $password, $meta = array() ) {
    12681268        global $current_site;
    12691269
    12701270        if ( !apply_filters('wpmu_welcome_user_notification', $user_id, $password, $meta) )