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

Built from https://develop.svn.wordpress.org/trunk@30005


git-svn-id: http://core.svn.wordpress.org/trunk@30005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2014-10-24 04:49:20 +00:00
parent 40ec420689
commit fd149bb220
3 changed files with 16 additions and 5 deletions

View File

@ -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'] ) {

View File

@ -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' ) );
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30004';
$wp_version = '4.1-alpha-30005';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.