Make WordPress Core


Ignore:
Timestamp:
09/02/2013 03:32:49 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Use an array as a default value for $meta in multisite signup-related functions. fixes #25149.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r25197 r25205  
    629629 * @param array $meta By default, contains the requested privacy setting and lang_id.
    630630 */
    631 function wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta = '') {
     631function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = array() ) {
    632632    global $wpdb;
    633633
     
    662662 * @param array $meta By default, this is an empty array.
    663663 */
    664 function wpmu_signup_user($user, $user_email, $meta = '') {
     664function wpmu_signup_user( $user, $user_email, $meta = array() ) {
    665665    global $wpdb;
    666666
     
    705705 * @param string $user The user's login name.
    706706 * @param string $user_email The user's email address.
     707 * @param string $key The activation key created in wpmu_signup_blog()
    707708 * @param array $meta By default, contains the requested privacy setting and lang_id.
    708  * @param string $key The activation key created in wpmu_signup_blog()
    709709 * @return bool
    710710 */
    711 function wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta = '') {
     711function wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta = array() ) {
    712712    global $current_site;
    713713
     
    766766 * @param string $user The user's login name.
    767767 * @param string $user_email The user's email address.
     768 * @param string $key The activation key created in wpmu_signup_user()
    768769 * @param array $meta By default, an empty array.
    769  * @param string $key The activation key created in wpmu_signup_user()
    770770 * @return bool
    771771 */
    772 function wpmu_signup_user_notification($user, $user_email, $key, $meta = '') {
     772function wpmu_signup_user_notification( $user, $user_email, $key, $meta = array() ) {
    773773    if ( !apply_filters('wpmu_signup_user_notification', $user, $user_email, $key, $meta) )
    774774        return false;
     
    938938 * @return mixed Returns WP_Error object on failure, int $blog_id on success
    939939 */
    940 function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = '', $site_id = 1 ) {
     940function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $site_id = 1 ) {
    941941    $defaults = array( 'public' => 0 );
    942942    $meta = wp_parse_args( $meta, $defaults );
     
    12021202 * @return bool
    12031203 */
    1204 function wpmu_welcome_notification($blog_id, $user_id, $password, $title, $meta = '') {
     1204function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
    12051205    global $current_site;
    12061206
     
    12661266 * @return bool
    12671267 */
    1268 function wpmu_welcome_user_notification($user_id, $password, $meta = '') {
     1268function wpmu_welcome_user_notification( $user_id, $password, $meta = array() ) {
    12691269    global $current_site;
    12701270
Note: See TracChangeset for help on using the changeset viewer.