WordPress.org

Make WordPress Core

Changeset 30005


Ignore:
Timestamp:
10/24/2014 04:48:31 AM (7 years ago)
Author:
jeremyfelt
Message:

Deprecate admin_created_user_subject()

When admin_created_user_subjec() was merged from MU, the accompanying filter was left behind. As it has never been used by WordPress core, and is not an otherwise useful function, it can be deprecated.

Fixes #29915

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r29966 r30005  
    3232    }
    3333    add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' );
    34 
    35     function admin_created_user_subject( $text ) {
    36         return sprintf( __( '[%s] Your site invite' ), get_bloginfo( 'name' ) );
    37     }
    3834}
    3935
  • trunk/src/wp-includes/ms-deprecated.php

    r27716 r30005  
    346346    return esc_url_raw( $url );
    347347}
     348
     349/**
     350 * Supply a subject for a site invitation email. Added via filter in MU.
     351 * Never used after the WPMU merge.
     352 *
     353 * @since MU
     354 * @deprecated 4.1.0
     355 *
     356 * @return string
     357 */
     358function admin_created_user_subject() {
     359    _deprecated_function( __FUNCTION__, '4.1' );
     360
     361    return sprintf( __( '[%s] Your site invite' ), get_bloginfo( 'name' ) );
     362}
Note: See TracChangeset for help on using the changeset viewer.