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 git-svn-id: https://develop.svn.wordpress.org/trunk@30005 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
382871ad9d
commit
c7ad092b1d
@ -31,10 +31,6 @@ Please click the following link to activate your user account:
|
||||
%%s' ), get_bloginfo( 'name' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ) );
|
||||
}
|
||||
add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' );
|
||||
|
||||
function admin_created_user_subject( $text ) {
|
||||
return sprintf( __( '[%s] Your site invite' ), get_bloginfo( 'name' ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) {
|
||||
|
@ -345,3 +345,18 @@ function get_blogaddress_by_domain( $domain, $path ) {
|
||||
}
|
||||
return esc_url_raw( $url );
|
||||
}
|
||||
|
||||
/**
|
||||
* Supply a subject for a site invitation email. Added via filter in MU.
|
||||
* Never used after the WPMU merge.
|
||||
*
|
||||
* @since MU
|
||||
* @deprecated 4.1.0
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function admin_created_user_subject() {
|
||||
_deprecated_function( __FUNCTION__, '4.1' );
|
||||
|
||||
return sprintf( __( '[%s] Your site invite' ), get_bloginfo( 'name' ) );
|
||||
}
|
Loading…
Reference in New Issue
Block a user